Changeset 183 for trunk/src/bitplex.c


Ignore:
Timestamp:
Jul 10, 2008, 6:17:58 PM (11 years ago)
Author:
cameron
Message:

SIMD templated library - restructuring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bitplex.c

    r179 r183  
    2424{\
    2525  BitBlock t0, t1;\
    26   t0 = simd_pack<16,h,h>(s0, s1);\
    27   t1 = simd_pack<16,l,l>(s0, s1);\
    28   p0 = simd_if(hi_mask, t0, simd_srli<16>(t1, shift));\
    29   p1 = simd_if(hi_mask, simd_slli<16>(t0, shift), t1);\
     26  t0 = simd<16>::pack<h,h>(s0, s1);\
     27  t1 = simd<16>::pack<l,l>(s0, s1);\
     28  p0 = simd_if(hi_mask, t0, simd<16>::srli<shift>(t1));\
     29  p1 = simd_if(hi_mask, simd<16>::slli<shift>(t0), t1);\
    3030}
    3131#endif
     
    4343static inline void s2p_bytepack(BytePack s[], BitBlock p[]) {
    4444#ifdef TEMPLATED_SIMD_LIB
    45     BitBlock mask_2 = simd_himask<2>();
    46     BitBlock mask_4 = simd_himask<4>();
    47     BitBlock mask_8 = simd_himask<8>();
     45    BitBlock mask_2 = simd<2>::himask();
     46    BitBlock mask_4 = simd<4>::himask();
     47    BitBlock mask_8 = simd<8>::himask();
    4848#endif
    4949#ifndef TEMPLATED_SIMD_LIB
Note: See TracChangeset for help on using the changeset viewer.