Handbook
Glossary
%select-vector-32 ( dst src n rep -- )
Vocabulary
cpu
.
x86
.
sse
Inputs
dst
an
object
src
an
object
n
an
object
rep
an
object
Outputs
None
Definition
USING:
combinators
cpu.architecture
cpu.x86.assembler
cpu.x86.assembler.operands
kernel
;
IN:
cpu.x86.sse
::
%select-vector-32
( dst src n rep -- )
rep
{
{
char-16-rep
[
dst
32-bit-version-of
src n
PEXTRB
dst dst
8-bit-version-of
MOVSX
]
}
{
uchar-16-rep
[
dst
32-bit-version-of
src n
PEXTRB
]
}
{
short-8-rep
[
dst
32-bit-version-of
src n
PEXTRW
dst dst
16-bit-version-of
MOVSX
]
}
{
ushort-8-rep
[
dst
32-bit-version-of
src n
PEXTRW
]
}
{
int-4-rep
[
dst
32-bit-version-of
src n
PEXTRD
dst dst
32-bit-version-of
2dup
=
[
2drop
]
[
MOVSX
]
if
]
}
{
uint-4-rep
[
dst
32-bit-version-of
src n
PEXTRD
]
}
}
case
;