Ignore:
Timestamp:
Feb 13, 2011, 3:30:21 PM (9 years ago)
Author:
cameron
Message:

Make EOF_mask global to avoid masks.EOF_mask hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/pablo_template.cpp

    r911 r913  
    4747LineColTracker tracker;
    4848TagMatcher matcher;
     49BitBlock EOF_mask = simd_const_1(1);
    4950
    5051
     
    254255@decl
    255256
    256   masks.EOF_mask = simd_const_1(1);
    257   BitBlock EOF_mask = simd_const_1(1);
    258 
    259257  int buf_pos = 0;
    260258  int block_pos = 0;
     
    328326
    329327                        if(bytes < BLOCK_SIZE){
    330                           masks.EOF_mask = sisd_srl(simd_const_1(1),sisd_from_int(BLOCK_SIZE-bytes));
    331328                          EOF_mask = sisd_srl(simd_const_1(1),sisd_from_int(BLOCK_SIZE-bytes));
    332329                        }
     
    334331                        s2p_do_block((BytePack *) &srcbuf[block_pos], basis_bits);
    335332
    336                         basis_bits.bit_0 = simd_and(basis_bits.bit_0, masks.EOF_mask);
    337                         basis_bits.bit_1 = simd_and(basis_bits.bit_1, masks.EOF_mask);
    338                         basis_bits.bit_2 = simd_and(basis_bits.bit_2, masks.EOF_mask);
    339                         basis_bits.bit_3 = simd_and(basis_bits.bit_3, masks.EOF_mask);
    340                         basis_bits.bit_4 = simd_and(basis_bits.bit_4, masks.EOF_mask);
    341                         basis_bits.bit_5 = simd_and(basis_bits.bit_5, masks.EOF_mask);
    342                         basis_bits.bit_6 = simd_and(basis_bits.bit_6, masks.EOF_mask);
    343                         basis_bits.bit_7 = simd_and(basis_bits.bit_7, masks.EOF_mask);
     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);
    344341
    345342                        @block_stmts
Note: See TracChangeset for help on using the changeset viewer.