Node:Bitwise operations, Next:Numeric comparison, Previous:Double precision, Up:Arithmetic
and
w1 w2 -- w core ``and''
or
w1 w2 -- w core ``or''
xor
w1 w2 -- w core ``x-or''
invert
w1 -- w2 core ``invert''
lshift
u1 n -- u2 core ``l-shift''
rshift
u1 n -- u2 core ``r-shift''
Logical shift right by n bits.
2*
n1 -- n2 core ``two-star''
Shift left by 1; also works on unsigned numbers
d2*
d1 -- d2 double ``d-two-star''
Shift left by 1; also works on unsigned numbers
2/
n1 -- n2 core ``two-slash''
Arithmetic shift right by 1. For signed numbers this is a floored
division by 2 (note that /
not necessarily floors).
d2/
d1 -- d2 double ``d-two-slash''
Arithmetic shift right by 1. For signed numbers this is a floored
division by 2.