Handbook
Glossary
vlshift ( v n -- w )
Factor handbook
»
The language
»
Numbers
»
Vector operations
»
Vector component- and bit-wise logic
Prev:
vbitnot ( v -- w )
Next:
vrshift ( v n -- 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 left by
n
bits.
Notes
Undefined behavior will result if
n
is negative.
Definition
IN:
math.vectors
GENERIC#:
vlshift
1
( v n -- w )
Methods
USING:
kernel
math.vectors
sequences.cords
;
M:
cord
vlshift
[
vlshift
]
curry
cord-map
;
inline
USING:
kernel
math
math.vectors
sequences
;
M:
object
vlshift
[
shift
]
curry
map
;
inline
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vlshift
over
simd-rep
[
(simd-vlshift)
]
[
M\
simd-128
vlshift
(call-next-method)
]
vn->v-op
;
inline