Changeset 905


Ignore:
Timestamp:
Feb 12, 2011, 3:33:41 PM (8 years ago)
Author:
cameron
Message:

s2p_do_block

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/pablo_template.c

    r889 r905  
    197197}
    198198
     199
     200
    199201@global
     202
     203static inline void s2p_do_block(BytePack U8[], Basis_bits & basis_bits) {
     204  s2p(U8[0], U8[1], U8[2], U8[3], U8[4], U8[5], U8[6], U8[7],
     205        basis_bits.bit_0, basis_bits.bit_1, basis_bits.bit_2, basis_bits.bit_3, basis_bits.bit_4, basis_bits.bit_5, basis_bits.bit_6, basis_bits.bit_7);
     206}
     207
     208
    200209
    201210void do_process(FILE *infile, FILE *outfile) {
     
    284293        BytePack * U8 = (BytePack *) &srcbuf[block_pos];
    285294
    286         s2p(U8[0], U8[1], U8[2], U8[3], U8[4], U8[5], U8[6], U8[7],
    287         basis_bits.bit_0, basis_bits.bit_1, basis_bits.bit_2, basis_bits.bit_3, basis_bits.bit_4, basis_bits.bit_5, basis_bits.bit_6, basis_bits.bit_7);
     295        s2p_do_block(U8, basis_bits);
    288296
    289297        basis_bits.bit_0 = simd_and(basis_bits.bit_0, masks.EOF_mask);
     
    347355        BytePack * U8 = (BytePack *) &srcbuf[block_pos];
    348356
    349         s2p(U8[0], U8[1], U8[2], U8[3], U8[4], U8[5], U8[6], U8[7],
    350         basis_bits.bit_0, basis_bits.bit_1, basis_bits.bit_2, basis_bits.bit_3, basis_bits.bit_4, basis_bits.bit_5, basis_bits.bit_6, basis_bits.bit_7);
     357        s2p_do_block(U8, basis_bits);
     358
    351359
    352360        @block_stmts
Note: See TracChangeset for help on using the changeset viewer.