nl_tokens: Peg a value to either the min or max depending on sign .
pl_tokens: static protected long minmax ( long value , long <mask> , long max ) { if ( value < min ) return min ; if ( value > max ) return max ; return value ; }