Handbook
Glossary
hrshift ( v n -- w )
Factor handbook
»
The language
»
Numbers
»
Vector operations
»
Vector shuffling, packing, and unpacking
Prev:
hlshift ( v n -- w )
Next:
vmerge ( u v -- w )
Vocabulary
math
.
vectors
Inputs
v
a SIMD array
n
a non-negative integer
Outputs
w
a SIMD array
Word description
Shifts the entire SIMD array to the right by
n
bytes, filling the vacated left-hand bits with zeroes. This word may only be used in a context where the compiler can statically infer that the input is a SIMD array.
Definition
IN:
math.vectors
GENERIC#:
hrshift
1
( v n -- w )
Methods
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
hrshift
over
simd-rep
[
(simd-hrshift)
]
[
M\
simd-128
hrshift
(call-next-method)
]
vn->v-op
;
inline