shr - luxembourg/muxcode-clm GitHub Wiki

SHR()

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

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

Example: > think shr(1309,5) 40

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