Handbook
Glossary
short-8
Vocabulary
math
.
vectors
.
simd
Definition
IN:
math.vectors.simd
TUPLE:
short-8
<
simd-128
;
final
Methods
USING:
classes
kernel
math.vectors.simd
math.vectors.simd.cords
sequences.cords
;
M:
short-8
cord-append
2dup
[
short-8
instance?
]
both?
[
short-16
boa
]
[
generic-cord
boa
]
if
;
inline
USING:
kernel
math.vectors.simd
sequences
;
M:
short-8
length
drop
8
;
inline
USING:
classes
kernel
math.vectors.simd
sequences
;
M:
short-8
like
drop
dup
\
short-8
instance?
[
>short-8
]
unless
;
inline
USING:
kernel
math.vectors.simd
math.vectors.simd.private
;
M:
short-8
new-underlying
drop
\
short-8
boa
;
inline
USING:
cpu.architecture
generic
kernel
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
sequences.private
;
M:
short-8
nth-unsafe
swap
\
short-8-rep
[
(simd-select)
]
[
M\
short-8
nth-unsafe
(call-next-method)
]
vx->x-op
;
inline
USING:
kernel
math.vectors.simd
prettyprint.custom
;
M:
short-8
pprint-delims
drop
\
short-8{
\
}
;
USING:
accessors
alien.c-types
math.vectors.simd
math.vectors.simd.private
sequences.private
;
M:
short-8
set-nth-unsafe
underlying>>
short
set-vector-element
;
inline
USING:
alien.c-types
kernel
math.vectors.simd
;
M:
short-8
simd-element-type
drop
short
;
inline
USING:
cpu.architecture
kernel
math.vectors.simd
;
M:
short-8
simd-rep
drop
short-8-rep
;
inline
USING:
kernel
math.vectors.simd
;
M:
short-8
simd-with
drop
short-8-with
;
inline
USING:
cpu.architecture
generic
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
short-8
v*hs+
short-8-rep
[
(simd-v*hs+)
]
[
M\
short-8
v*hs+
(call-next-method)
]
vv->v-op
int-4-cast
;
inline
USING:
accessors
cpu.architecture
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
;
M::
short-8
vabsdiff
( a b -- w )
a
short-8?
[
a
underlying>>
b
underlying>>
"absdiff"
short-8-rep
(simd-binary)
ushort-8
boa
]
[
a
bad-simd-vector
]
if
;
inline
USING:
accessors
cpu.architecture
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
;
M::
short-8
vmul-wide
( a b -- lo hi )
a
short-8?
[
a
underlying>>
b
underlying>>
short-8-rep
(simd-mul-wide-head)
int-4
boa
a
underlying>>
b
underlying>>
short-8-rep
(simd-mul-wide-tail)
int-4
boa
]
[
a
bad-simd-vector
]
if
;
inline
USING:
accessors
cpu.architecture
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
;
M::
short-8
vshift
( a counts -- w )
a
short-8?
[
a
underlying>>
counts
underlying>>
"shift"
short-8-rep
(simd-binary)
short-8
boa
]
[
a
ushort-8?
[
a
underlying>>
counts
underlying>>
"shift"
ushort-8-rep
(simd-binary)
ushort-8
boa
]
[
a
bad-simd-vector
]
if
]
if
;
inline