Vocabularymath.
bitwiseInputsx | an integer |
s | a shift integer |
w | a wrap integer |
OutputsWord descriptionRoll
n by
s bits to the left, wrapping around after
w bits.
ExamplesUSING: math.bitwise prettyprint ;
1 -1 32 bitroll .b
0b10000000000000000000000000000000
USING: math.bitwise prettyprint ;
0xffff0000 8 32 bitroll .h
0xff0000ff
See alsobitroll-32,
bitroll-64Definition