Handbook
Glossary
mask-bit ( m n -- m' )
Vocabulary
math
.
bitwise
Inputs
m
an
integer
n
an
integer
Outputs
m'
an
integer
Word description
Turns off all bits besides the
n
th bit.
Examples
USING: math.bitwise kernel prettyprint ; 0xff 2 mask-bit .b
0b100
Definition
USING:
math
;
IN:
math.bitwise
:
mask-bit
( m n -- m' )
2^
mask
;
inline