The OpenD Programming Language

__simd

For instructions: CMPPD, CMPSS, CMPSD, CMPPS, PSHUFD, PSHUFHW, PSHUFLW, BLENDPD, BLENDPS, DPPD, DPPS, MPSADBW, PBLENDW, ROUNDPD, ROUNDPS, ROUNDSD, ROUNDSS

  1. void16 __simd(XMM opcode, void16 op1, void16 op2)
  2. void16 __simd(XMM opcode, void16 op1)
  3. void16 __simd(XMM opcode, void16 op1, void16 op2, ubyte imm8)
    version(!LDC && D_SIMD)
    pure nothrow @safe @nogc pure @safe
    void16
    __simd
    (,
    void16 op1
    ,
    void16 op2
    ,
    ubyte imm8
    )

Parameters

opcode XMM

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

op1 void16

first operand

op2 void16

second operand

imm8 ubyte

third operand; must be a compile time constant

Return Value

Type: void16

result of opcode

Examples

float4 a;
a = cast(float4)__simd(XMM.CMPPD, a, a, 0x7A);

Meta