Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
rename simd() to __simd()
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jan 17, 2012
1 parent 83d59d8 commit c01fa56
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/core/simd.d
Expand Up @@ -355,28 +355,29 @@ enum XMM

/**
* 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
* opcode any of the XMM opcodes; it must be a compile time constant
* op1 first operand
* op2 second operand
* Returns:
* result of opcode
*/
void16 simd(XMM opcode, void16 op1, void16 op2);
void16 __simd(XMM opcode, void16 op1, void16 op2);

/* The following use overloading to ensure correct typing.
* Compile with inlining on for best performance.
*/

short8 pcmpeq()(short8 v1, short8 v2)
{
return simd(XMM.PCMPEQW, v1, v2);
return __simd(XMM.PCMPEQW, v1, v2);
}

ushort8 pcmpeq()(ushort8 v1, ushort8 v2)
{
return simd(XMM.PCMPEQW, v1, v2);
return __simd(XMM.PCMPEQW, v1, v2);
}



0 comments on commit c01fa56

Please sign in to comment.