bitroll-32 ( m s -- n )
Factor handbook » The language » Numbers » Arithmetic » Bitwise arithmetic » Additional bitwise arithmetic

Prev:bitroll ( x s w -- y )
Next:bitroll-64 ( m s -- n )


Vocabulary
math.bitwise

Inputs
man integer
san integer


Outputs
nan integer


Word description
Rolls the number m by s bits to the left, wrapping around after 32 bits.

Examples
USING: math.bitwise prettyprint ; 0x1 10 bitroll-32 .h
0x400

USING: math.bitwise prettyprint ; 0x1 -10 bitroll-32 .h
0x400000


See also
bitroll, bitroll-64

Definition