d>w/w ( d -- w1 w2 )
Factor handbook » The language » Numbers » Arithmetic » Bitwise arithmetic » Additional bitwise arithmetic

Prev:W* ( x y -- z )
Next:w>h/h ( w -- h1 h2 )


Vocabulary
math.bitwise

Inputs
da 64-bit integer


Outputs
w1a 32-bit integer
w2a 32-bit integer


Word description
Outputs two integers, the least followed by the most significant 32 bits of the input.

Definition


: d>w/w ( d -- w1 w2 )
[ 4294967295 bitand ] [ -32 shift 4294967295 bitand ] bi ;