Handbook
Glossary
(vshuffle2) ( a b elts rep -- c )
Vocabulary
math
.
vectors
.
simd
.
intrinsics
.
private
Inputs
a
an
object
b
an
object
elts
an
object
rep
an
object
Outputs
c
an
object
Definition
USING:
accessors
cpu.architecture
kernel
math
sequences.cords
sequences.private
sequences.unrolled.private
;
IN:
math.vectors.simd.intrinsics.private
::
(vshuffle2)
( a b elts rep -- c )
a rep
byte>rep-array
:>
a' b rep
byte>rep-array
:>
b' a' b'
cord-append
:>
ab' rep
<rep-array>
:>
c' elts rep
rep-length
[|
from to
|
from rep
rep-length
dup
+
1
-
bitand
ab'
nth-unsafe
to c'
set-nth-unsafe
]
unrolled-each-index-unsafe
c'
underlying>>
;
inline