Handbook
Glossary
unmask? ( x n -- ? )
Factor handbook
»
The language
»
Numbers
»
Arithmetic
»
Bitwise arithmetic
»
Additional bitwise arithmetic
Prev:
mask? ( x n -- ? )
Next:
on-bits ( m -- n )
Vocabulary
math
.
bitwise
Inputs
x
an
integer
n
an
integer
Outputs
?
a
boolean
Word description
Tests whether unmasking the bits in
x
would return an integer greater than zero.
Examples
USING: math.bitwise kernel prettyprint ; 0xff 0x0f unmask? .
t
Definition
USING:
kernel
math
;
IN:
math.bitwise
:
unmask?
( x n -- ? )
unmask
zero?
not
;
inline