simd

Generate two operand instruction with XMM 128 bit operands.

This is a compiler magic function - it doesn't behave like regular D functions.

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

Parameters

opcode

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

op1 V1

first operand

op2 V2

second operand

Return Value

Type: V1

result of opcode

Meta

Suggestion Box / Bug Report