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
xan integer
nan 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