Handbook
Glossary
shift-mod ( m s w -- n )
Vocabulary
math
.
bitwise
Inputs
m
an
integer
s
an
integer
w
an
integer
Outputs
n
an
integer
Word description
Calls
shift
on
n
and
s
, wrapping the result to
w
bits.
Definition
USING:
kernel
math
;
IN:
math.bitwise
:
shift-mod
( m s w -- n )
[
shift
]
dip
2^
wrap
;
inline