Ignore:
Timestamp:
Dec 15, 2015, 7:47:23 AM (3 years ago)
Author:
cameron
Message:

hi_mask in s2p, lo_mask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IDISA/s2p_gen.cpp

    r4891 r4895  
    1919    Value * bit00224466_0,bit00224466_1,bit00224466_2,bit00224466_3;
    2020    Value * bit11335577_0,bit11335577_1,bit11335577_2,bit11335577_3;
    21     Value *  bit00004444_0,bit22226666_0,bit00004444_1,bit22226666_1;
    22     Value *  bit11115555_0,bit33337777_0,bit11115555_1,bit33337777_1;
    23     s2p_step(iBuilder, s0,s1,simd<2>::himask(),1,bit00224466_0,bit11335577_0);
    24     s2p_step(iBuilder, s2,s3,simd<2>::himask(),1,bit00224466_1,bit11335577_1);
    25     s2p_step(iBuilder, s4,s5,simd<2>::himask(),1,bit00224466_2,bit11335577_2);
    26     s2p_step(iBuilder, s6,s7,simd<2>::himask(),1,bit00224466_3,bit11335577_3);
    27     s2p_step(iBuilder, bit00224466_0,bit00224466_1,simd<4>::himask(),2,bit00004444_0,bit22226666_0);
    28     s2p_step(iBuilder, bit00224466_2,bit00224466_3,simd<4>::himask(),2,bit00004444_1,bit22226666_1);
    29     s2p_step(iBuilder, bit11335577_0,bit11335577_1,simd<4>::himask(),2,bit11115555_0,bit33337777_0);
    30     s2p_step(iBuilder, bit11335577_2,bit11335577_3,simd<4>::himask(),2,bit11115555_1,bit33337777_1);
    31     s2p_step(iBuilder, bit00004444_0,bit00004444_1,simd<8>::himask(),4,p0,p4);
    32     s2p_step(iBuilder, bit11115555_0,bit11115555_1,simd<8>::himask(),4,p1,p5);
    33     s2p_step(iBuilder, bit22226666_0,bit22226666_1,simd<8>::himask(),4,p2,p6);
    34     s2p_step(iBuilder, bit33337777_0,bit33337777_1,simd<8>::himask(),4,p3,p7);
     21    Value * bit00004444_0,bit22226666_0,bit00004444_1,bit22226666_1;
     22    Value * bit11115555_0,bit33337777_0,bit11115555_1,bit33337777_1;
     23    Value * hi_mask2 = iBuilder->simd_himask(2);
     24    Value * hi_mask4 = iBuilder->simd_himask(4);
     25    Value * hi_mask8 = iBuilder->simd_himask(8);
     26    s2p_step(iBuilder, s0,s1,hi_mask2,1,bit00224466_0,bit11335577_0);
     27    s2p_step(iBuilder, s2,s3,hi_mask2,1,bit00224466_1,bit11335577_1);
     28    s2p_step(iBuilder, s4,s5,hi_mask2,1,bit00224466_2,bit11335577_2);
     29    s2p_step(iBuilder, s6,s7,hi_mask2,1,bit00224466_3,bit11335577_3);
     30    s2p_step(iBuilder, bit00224466_0,bit00224466_1,hi_mask4,2,bit00004444_0,bit22226666_0);
     31    s2p_step(iBuilder, bit00224466_2,bit00224466_3,hi_mask4,2,bit00004444_1,bit22226666_1);
     32    s2p_step(iBuilder, bit11335577_0,bit11335577_1,hi_mask4,2,bit11115555_0,bit33337777_0);
     33    s2p_step(iBuilder, bit11335577_2,bit11335577_3,hi_mask4,2,bit11115555_1,bit33337777_1);
     34    s2p_step(iBuilder, bit00004444_0,bit00004444_1,hi_mask8,4,p0,p4);
     35    s2p_step(iBuilder, bit11115555_0,bit11115555_1,hi_mask8,4,p1,p5);
     36    s2p_step(iBuilder, bit22226666_0,bit22226666_1,hi_mask8,4,p2,p6);
     37    s2p_step(iBuilder, bit33337777_0,bit33337777_1,hi_mask8,4,p3,p7);
    3538}
Note: See TracChangeset for help on using the changeset viewer.