Handbook
Glossary
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
d
a 64-bit integer
Outputs
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:
math.bitwise
:
d>w/w
( d -- w1 w2 )
[
4294967295
bitand
]
[
-32
shift
4294967295
bitand
]
bi
;