Changeset 936 for proto


Ignore:
Timestamp:
Mar 11, 2011, 10:24:36 AM (9 years ago)
Author:
cameron
Message:

Add s2p_do_final_block

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/pablo_template.cpp

    r913 r936  
    209209}
    210210
     211static inline void s2p_do_final_block(BytePack U8[], Basis_bits & basis_bits, BitBlock EOF_mask) {
     212  s2p_do_block(U8, basis_bits);
     213  basis_bits.bit_0 = simd_and(basis_bits.bit_0, EOF_mask);
     214  basis_bits.bit_1 = simd_and(basis_bits.bit_1, EOF_mask);
     215  basis_bits.bit_2 = simd_and(basis_bits.bit_2, EOF_mask);
     216  basis_bits.bit_3 = simd_and(basis_bits.bit_3, EOF_mask);
     217  basis_bits.bit_4 = simd_and(basis_bits.bit_4, EOF_mask);
     218  basis_bits.bit_5 = simd_and(basis_bits.bit_5, EOF_mask);
     219  basis_bits.bit_6 = simd_and(basis_bits.bit_6, EOF_mask);
     220  basis_bits.bit_7 = simd_and(basis_bits.bit_7, EOF_mask);
     221}
     222
    211223static inline void postprocess_do_block(Lex & lex, CtCDPI_Callouts & ctCDPI_Callouts, Ref_Callouts & ref_Callouts, Check_streams & check_streams, int chars_avail){
    212224            tracker.StoreNewlines(lex.LF);
     
    329341                        }
    330342
    331                         s2p_do_block((BytePack *) &srcbuf[block_pos], basis_bits);
    332 
    333                         basis_bits.bit_0 = simd_and(basis_bits.bit_0, EOF_mask);
    334                         basis_bits.bit_1 = simd_and(basis_bits.bit_1, EOF_mask);
    335                         basis_bits.bit_2 = simd_and(basis_bits.bit_2, EOF_mask);
    336                         basis_bits.bit_3 = simd_and(basis_bits.bit_3, EOF_mask);
    337                         basis_bits.bit_4 = simd_and(basis_bits.bit_4, EOF_mask);
    338                         basis_bits.bit_5 = simd_and(basis_bits.bit_5, EOF_mask);
    339                         basis_bits.bit_6 = simd_and(basis_bits.bit_6, EOF_mask);
    340                         basis_bits.bit_7 = simd_and(basis_bits.bit_7, EOF_mask);
     343                        s2p_do_final_block((BytePack *) &srcbuf[block_pos], basis_bits, EOF_mask);
    341344
    342345                        @block_stmts
Note: See TracChangeset for help on using the changeset viewer.