Changeset 611 for proto


Ignore:
Timestamp:
Sep 13, 2010, 9:52:58 AM (9 years ago)
Author:
lindanl
Message:

put s2p into the lib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/template.c

    r609 r611  
    2222
    2323#include "../lib/perflib/perfsec.h"
     24#include "../lib/s2p.h"
    2425
    2526#include "tag_matcher.cpp"
     
    270271}
    271272
    272 #define s2p_step(s0,s1,hi_mask,shift,p0,p1)  \
    273 { \
    274 BitBlock t0,t1; \
    275 t0= simd_pack_16_hh(s0,s1) ; \
    276 t1= simd_pack_16_ll(s0,s1) ; \
    277 p0= simd_if(hi_mask,t0,simd_srli_16(t1,shift) ) ; \
    278 p1= simd_if(hi_mask,simd_slli_16(t0,shift) ,t1) ; \
    279 } \
    280 
    281 #define s2p_bytepack(s0,s1,s2,s3,s4,s5,s6,s7,p0,p1,p2,p3,p4,p5,p6,p7)  \
    282 {BitBlock bit00224466_0,bit00224466_1,bit00224466_2,bit00224466_3; \
    283 BitBlock bit11335577_0,bit11335577_1,bit11335577_2,bit11335577_3; \
    284 BitBlock bit00004444_0,bit22226666_0,bit00004444_1,bit22226666_1; \
    285 BitBlock bit11115555_0,bit33337777_0,bit11115555_1,bit33337777_1; \
    286 s2p_step(s0,s1,simd_himask_2,1,bit00224466_0,bit11335577_0)  \
    287 s2p_step(s2,s3,simd_himask_2,1,bit00224466_1,bit11335577_1)  \
    288 s2p_step(s4,s5,simd_himask_2,1,bit00224466_2,bit11335577_2)  \
    289 s2p_step(s6,s7,simd_himask_2,1,bit00224466_3,bit11335577_3)  \
    290 s2p_step(bit00224466_0,bit00224466_1,simd_himask_4,2,bit00004444_0,bit22226666_0)  \
    291 s2p_step(bit00224466_2,bit00224466_3,simd_himask_4,2,bit00004444_1,bit22226666_1)  \
    292 s2p_step(bit11335577_0,bit11335577_1,simd_himask_4,2,bit11115555_0,bit33337777_0)  \
    293 s2p_step(bit11335577_2,bit11335577_3,simd_himask_4,2,bit11115555_1,bit33337777_1)  \
    294 s2p_step(bit00004444_0,bit00004444_1,simd_himask_8,4,p0,p4)  \
    295 s2p_step(bit11115555_0,bit11115555_1,simd_himask_8,4,p1,p5)  \
    296 s2p_step(bit22226666_0,bit22226666_1,simd_himask_8,4,p2,p6)  \
    297 s2p_step(bit33337777_0,bit33337777_1,simd_himask_8,4,p3,p7)  \
    298 } \
    299273
    300274#define p2s_step(p0,p1,hi_mask,shift,s0,s1)  \
Note: See TracChangeset for help on using the changeset viewer.