simd

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

  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)
    version(D_SIMD)
    pure @safe
    V1
    simd
    (
    XMM opcode
    ubyte imm8
    V1
    V2
    )
    (
    V1 op1
    ,
    V2 op2
    )
    if (
    is(V1 == __vector) &&
    is(V2 == __vector)
    )
  6. V1 simd(V1 op1)

Parameters

opcode

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

op1 V1

first operand

op2 V2

second operand

imm8

third operand; must be a compile time constant

Return Value

Type: V1

result of opcode

Meta

Suggestion Box / Bug Report