The OpenD Programming Language

__simd_ib

For instructions with the imm8 version: PSLLD, PSLLQ, PSLLW, PSRAD, PSRAW, PSRLD, PSRLQ, PSRLW, PSRLDQ, PSLLDQ

version(!LDC && D_SIMD)
pure nothrow @safe @nogc pure @safe
void16
__simd_ib
(,
void16 op1
,
ubyte imm8
)

Parameters

opcode XMM

any of the XMM opcodes; it must be a compile time constant

op1 void16

first operand

imm8 ubyte

second operand; must be a compile time constant

Return Value

Type: void16

result of opcode

Examples

float4 a;
a = cast(float4) __simd_ib(XMM.PSRLQ, a, 0x7A);

Meta