simd

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

  1. V1 simd(V1 op1, V2 op2)
  2. V1 simd(V1 op1)
  3. V1 simd(double d)
  4. V1 simd(float f)
  5. V1 simd(V1 op1, V2 op2)
  6. V1 simd(V1 op1)
    version(D_SIMD)
    pure @safe
    V1
    simd
    (
    XMM opcode
    ubyte imm8
    V1
    )
    (
    V1 op1
    )
    if (
    is(V1 == __vector)
    )

Parameters

opcode

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

op1 V1

first operand

imm8

second operand; must be a compile time constant

Return Value

Type: V1

result of opcode

Meta

Suggestion Box / Bug Report