shl - luxembourg/muxcode-clm GitHub Wiki

SHL()

FUNCTION: shl(<number>,<count>)

Performs a leftwards bit-shift on <number>, shifting it <count> times. This is equivalent to imul(<number>,pow(2,<count>), but much faster.

Example: > think shl(2,10) 2048

Related Topics: shr, band, bnand, bor, bxor