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


Outputs
yan 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