Handbook
Glossary
mask>count ( n rep -- n' )
Vocabulary
math
.
vectors
.
simd
.
private
Inputs
n
an
object
rep
an
object
Outputs
n'
an
object
Definition
USING:
combinators
cpu.architecture
kernel
math
math.bitwise
;
IN:
math.vectors.simd.private
:
mask>count
( n rep -- n' )
[
bit-count
]
dip
{
{
float-4-rep
[
]
}
{
double-2-rep
[
-1
shift
]
}
{
uchar-16-rep
[
]
}
{
char-16-rep
[
]
}
{
ushort-8-rep
[
-1
shift
]
}
{
short-8-rep
[
-1
shift
]
}
{
ushort-8-rep
[
-1
shift
]
}
{
int-4-rep
[
-2
shift
]
}
{
uint-4-rep
[
-2
shift
]
}
{
longlong-2-rep
[
-3
shift
]
}
{
ulonglong-2-rep
[
-3
shift
]
}
}
case
;
inline