Handbook
Glossary
^(sum-vector) ( src rep -- dst )
Vocabulary
compiler
.
cfg
.
intrinsics
.
simd
Inputs
src
an
object
rep
an
object
Outputs
dst
an
object
Definition
USING:
combinators
compiler.cfg.hats
cpu.architecture
kernel
;
IN:
compiler.cfg.intrinsics.simd
:
^(sum-vector)
( src rep -- dst )
[
dup
rep-length
{
{
2
[
^(sum-vector-2)
]
}
{
4
[
^(sum-vector-4)
]
}
{
8
[
^(sum-vector-8)
]
}
{
16
[
^(sum-vector-16)
]
}
}
case
]
[
^^vector>scalar
]
bi
;