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

Prev:bitroll-32 ( m s -- n )
Next:w+ ( x y -- z )


Vocabulary
math.bitwise

Inputs
man integer
sa shift integer


Outputs
nan integer


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

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

USING: math.bitwise prettyprint ; 0x1 -10 bitroll-64 .h
0x40000000000000


See also
bitroll, bitroll-32

Definition