d>w/w ( d -- w1 w2 )
Factor documentation
>
Factor handbook
>
Input and output
>
Working with binary data
Prev:
>le ( x n -- byte-array )
Next:
w>h/h ( w -- h1 h2 )
Vocabulary
io.binary
Inputs and outputs
d
a 64-bit integer
w1
a 32-bit integer
w2
a 32-bit integer
Word description
Outputs two integers, the least followed by the most significant 32 bits of the input.
Definition
USING:
kernel
math
;
IN:
io.binary
:
d>w/w
( d -- w1 w2 )
[
4294967295
bitand
]
[
-32
shift
4294967295
bitand
]
bi
;