Handbook
Glossary
vrshift ( v n -- w )
Factor handbook
»
The language
»
Numbers
»
Vector operations
»
Vector component- and bit-wise logic
Prev:
vlshift ( v n -- w )
Next:
vand ( u v -- w )
Vocabulary
math
.
vectors
Inputs
v
a
sequence
of
integer
s
n
a non-negative integer
Outputs
w
a
sequence
of
integer
s
Word description
Shifts each element of
v
to the right by
n
bits.
Notes
Undefined behavior will result if
n
is negative.
Definition
IN:
math.vectors
GENERIC#:
vrshift
1
( v n -- w )
Methods
USING:
kernel
math.vectors
sequences.cords
;
M:
cord
vrshift
[
vrshift
]
curry
cord-map
;
inline
USING:
kernel
math
math.vectors
sequences
;
M:
object
vrshift
neg
[
shift
]
curry
map
;
inline
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vrshift
over
simd-rep
[
(simd-vrshift)
]
[
M\
simd-128
vrshift
(call-next-method)
]
vn->v-op
;
inline