Handbook
Glossary
unmask ( x n -- y )
Factor handbook
»
The language
»
Numbers
»
Arithmetic
»
Bitwise arithmetic
»
Additional bitwise arithmetic
Prev:
mask ( x n -- y )
Next:
mask? ( x n -- ? )
Vocabulary
math
.
bitwise
Inputs
x
an
integer
n
an
integer
Outputs
y
an
integer
Word description
Clears the bits in
x
if they are set in the mask
n
.
Examples
USING: math.bitwise kernel prettyprint ; 0xff 0x0f unmask .h
0xf0
Definition
USING:
math
;
IN:
math.bitwise
:
unmask
( x n -- y )
bitnot
bitand
;
inline