Handbook
Glossary
vround-to-even ( v -- w )
Vocabulary
math
.
vectors
Inputs
v
a
sequence
Outputs
w
a
sequence
Word description
Rounds each lane to the nearest integer, with halfway cases rounded to even.
Definition
IN:
math.vectors
GENERIC:
vround-to-even
( v -- w )
Methods
USING:
kernel
math.functions
math.vectors
sequences
;
M:
object
vround-to-even
[
round-to-even
]
map
;
inline
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vround-to-even
"round-even"
over
simd-rep
[
(simd-unary)
]
[
M\
simd-128
vround-to-even
(call-next-method)
]
vx->v-op
;
inline