Handbook
Glossary
emit-simd-vavg ( node -- )
Vocabulary
compiler
.
cfg
.
intrinsics
.
simd
Inputs
node
an
object
Outputs
None
Definition
USING:
compiler.cfg.hats
compiler.cfg.intrinsics.simd.backend
cpu.architecture
locals.backend
;
IN:
compiler.cfg.intrinsics.simd
:
emit-simd-vavg
( node -- )
{
[
^^avg-vector
]
{
float-vector-rep
[
3
load-locals
-2
get-local
-1
get-local
0
get-local
^^add-vector
0
get-local
^load-half-vector
0
get-local
^^mul-vector
3
drop-locals
]
}
}
emit-vv-vector-op
;