Changeset 614 for proto/parabix2


Ignore:
Timestamp:
Sep 13, 2010, 10:43:40 AM (9 years ago)
Author:
lindanl
Message:

delete p2s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/template.c

    r611 r614  
    270270        return 0;
    271271}
    272 
    273 
    274 #define p2s_step(p0,p1,hi_mask,shift,s0,s1)  \
    275 { \
    276 BitBlock t0,t1; \
    277 t0= simd_if(hi_mask,p0,simd_srli_16(p1,shift) ) ; \
    278 t1= simd_if(hi_mask,simd_slli_16(p0,shift) ,p1) ; \
    279 s0= simd_mergeh_8(t0,t1) ; \
    280 s1= simd_mergel_8(t0,t1) ; \
    281 } \
    282 
    283 #define p2s_bytemerge(p0,p1,p2,p3,p4,p5,p6,p7,s0,s1,s2,s3,s4,s5,s6,s7)  \
    284 { \
    285 BitBlock bit00004444_0,bit22226666_0,bit00004444_1,bit22226666_1; \
    286 BitBlock bit11115555_0,bit33337777_0,bit11115555_1,bit33337777_1; \
    287 BitBlock bit00224466_0,bit00224466_1,bit00224466_2,bit00224466_3; \
    288 BitBlock bit11335577_0,bit11335577_1,bit11335577_2,bit11335577_3; \
    289 p2s_step(p0,p4,simd_himask_8,4,bit00004444_0,bit00004444_1)  \
    290 p2s_step(p1,p5,simd_himask_8,4,bit11115555_0,bit11115555_1)  \
    291 p2s_step(p2,p6,simd_himask_8,4,bit22226666_0,bit22226666_1)  \
    292 p2s_step(p3,p7,simd_himask_8,4,bit33337777_0,bit33337777_1)  \
    293 p2s_step(bit00004444_0,bit22226666_0,simd_himask_4,2,bit00224466_0,bit00224466_1)  \
    294 p2s_step(bit11115555_0,bit33337777_0,simd_himask_4,2,bit11335577_0,bit11335577_1)  \
    295 p2s_step(bit00004444_1,bit22226666_1,simd_himask_4,2,bit00224466_2,bit00224466_3)  \
    296 p2s_step(bit11115555_1,bit33337777_1,simd_himask_4,2,bit11335577_2,bit11335577_3)  \
    297 p2s_step(bit00224466_0,bit11335577_0,simd_himask_2,1,s0,s1)  \
    298 p2s_step(bit00224466_1,bit11335577_1,simd_himask_2,1,s2,s3)  \
    299 p2s_step(bit00224466_2,bit11335577_2,simd_himask_2,1,s4,s5)  \
    300 p2s_step(bit00224466_3,bit11335577_3,simd_himask_2,1,s6,s7)  \
    301 } \
    302272
    303273
Note: See TracChangeset for help on using the changeset viewer.