Changeset 1581 for proto


Ignore:
Timestamp:
Oct 23, 2011, 9:49:54 AM (8 years ago)
Author:
cameron
Message:

Use bitblock::sll, srl

Location:
proto/parabix2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/pablo_template_stl.cpp

    r1561 r1581  
    459459    block_base = block_pos;
    460460    if (remaining > 0 || @any_carry) {
    461           EOF_mask = simd<sizeof(BitBlock)*8>::srl(simd<1>::constant<1>(), convert(BLOCK_SIZE-remaining));
     461          EOF_mask = bitblock::srl(simd<1>::constant<1>(), convert(BLOCK_SIZE-remaining));
    462462          s2p_do_final_block((BytePack *) &srcbuf[block_pos], basis_bits, EOF_mask);
    463463          @final_block_stmts
  • proto/parabix2/src/LineColTracker.hpp

    r1575 r1581  
    7373void LineColTracker::get_Line_and_Column(int pos_in_block, int & line, int & column) {
    7474
    75   cur_newline = simd_andc(cur_newline, simd<BLOCK_SIZE>::sll(mvmd<1>::fill(1), mvmd<BLOCK_SIZE>::fill(pos_in_block)));
     75  cur_newline = simd_andc(cur_newline, bitblock::sll(mvmd<1>::fill(1), mvmd<BLOCK_SIZE>::fill(pos_in_block)));
    7676  if (bitblock::any(cur_newline))
    7777    column = pos_in_block - (BLOCK_SIZE-count_backward_zeroes(cur_newline))+1;
Note: See TracChangeset for help on using the changeset viewer.