Changeset 337


Ignore:
Timestamp:
Nov 18, 2009, 12:54:52 PM (10 years ago)
Author:
ksherdy
Message:

Add a 64 bit splat method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/sse_simd_t.h

    r336 r337  
    195195}
    196196
     197// Splat the first 64-bit int into all positions.
     198template <> inline SIMD_type simd<64>::splat(SIMD_type x) {
     199  return _mm_shuffle_epi32(x,_MM_SHUFFLE(1,0,1,0));
     200}
     201
    197202/* Shift immediate operations with direct implementation by built-ins. */
    198203
Note: See TracChangeset for help on using the changeset viewer.