Handbook
Glossary
hlshift ( v n -- w )
Factor handbook
»
The language
»
Numbers
»
Vector operations
»
Vector shuffling, packing, and unpacking
Prev:
vbroadcast ( u n -- v )
Next:
hrshift ( v n -- 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 left by
n
bytes, filling the vacated right-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#:
hlshift
1
( v n -- w )
Methods
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
hlshift
over
simd-rep
[
(simd-hlshift)
]
[
M\
simd-128
hlshift
(call-next-method)
]
vn->v-op
;
inline