mask-byte ( x -- y )
Vocabulary
io.binary
Inputs and outputs
x
an
integer
y
a non-negative integer
Word description
Masks off the least significant 8 bits of an integer.
Definition
USING:
math
;
IN:
io.binary
:
mask-byte
( x -- y )
255
bitand
;
inline