Handbook
Glossary
(simd-unary) ( a op rep -- c )
Vocabulary
math
.
vectors
.
simd
.
intrinsics
Inputs
a
an
object
op
an
object
rep
an
object
Outputs
c
an
object
Definition
USING:
alien.c-types
combinators
cpu.architecture
math
math.bitwise
math.functions
math.vectors.simd.intrinsics.private
;
IN:
math.vectors.simd.intrinsics
::
(simd-unary)
( a op rep -- c )
rep
rep-component-type
heap-size
8
*
:>
width op
{
{
"floor"
[
a rep
[
floor
]
components-map
]
}
{
"ceiling"
[
a rep
[
ceiling
]
components-map
]
}
{
"truncate"
[
a rep
[
truncate
]
components-map
]
}
{
"round"
[
a rep
[
f
round-vector-lane
]
components-map
]
}
{
"round-even"
[
a rep
[
t
round-vector-lane
]
components-map
]
}
{
"bit-count"
[
a rep
[
width
bits
bit-count
]
components-map
]
}
{
"clz"
[
a rep
[
width
bits
width
lane-leading-zeros
]
components-map
]
}
{
"ctz"
[
a rep
[
width
bits
width
lane-trailing-zeros
]
components-map
]
}
{
"bit-reverse"
[
a rep
[
width
reverse-lane-bits
]
components-map
]
}
}
case
;