D Programming Language 2.0

- Comments
- D
- Search
- Home

Last update Tue Feb 14 02:46:03 2012

# core.simd

Builtin SIMD intrinsics

Source:
core/simd.d

License:
Boost License 1.0.

Authors:
Walter Bright,

template Vector(T)
  Create a vector type.

  Parameters:
  T = one of double[2], float[4], void[16], byte[16], ubyte[16], short[8], ushort[8], int[4], uint[4], long[2], ulong[2]

alias void16;

alias double2;

alias float4;

alias byte16;

alias ubyte16;

alias short8;

alias ushort8;

alias int4;

alias uint4;

alias long2;

alias ulong2;

enum XMM;
  XMM opcodes that conform to the following:

  opcode xmm1,xmm2/mem

  and do not have side effects (i.e. do not write to memory).

pure nothrow @safe void16 __simd(XMM opcode, void16 op1, void16 op2);
  Generate two operand instruction with XMM 128 bit operands.

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

  Parameters:
  opcode any of the XMM opcodes; it must be a compile time constant op1 first operand op2 second operand

  Returns:
  result of opcode

Copyright Digital Mars 2012. | Page generated by Ddoc.