Changeset 343 for trunk


Ignore:
Timestamp:
Dec 4, 2009, 11:58:55 AM (10 years ago)
Author:
ksherdy
Message:

Add shuffle 8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/sse_simd_t.h

    r342 r343  
    114114        static inline SIMD_type splat(SIMD_type r);
    115115  /* Move mask */
    116   static inline int movemask(SIMD_type r);
     116  static inline int movemask(SIMD_type r); 
     117  /* Shuffle */
     118  static inline SIMD_type shuffle(SIMD_type r, SIMD_type s);
    117119
    118120       
     
    217219}
    218220
     221// Shuffle 8-bit
     222template <> inline SIMD_type simd<8>::shuffle(SIMD_type r, SIMD_type s) {
     223  return _mm_shuffle_epi8(r,s);
     224}
    219225
    220226/* Shift immediate operations with direct implementation by built-ins. */
Note: See TracChangeset for help on using the changeset viewer.