Ignore:
Timestamp:
Jul 24, 2015, 11:47:14 AM (4 years ago)
Author:
cameron
Message:

Further progress on Carry Manager with bit packing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/carry_data.h

    r4696 r4697  
    9292    }
    9393   
    94     unsigned longAdvanceCarryDataOffset(unsigned advanceIndex)  const {
    95         return fullOrPartialBlocks(longAdvance.frameOffsetinBits, BLOCK_SIZE) + advanceIndex;
    96     }
    97    
    9894    unsigned longAdvanceEntries(unsigned shift_amount) const {
    9995        return fullOrPartialBlocks(shift_amount, BLOCK_SIZE);
     
    105101   
    106102    bool blockHasLongAdvances() const { return longAdvance.entries > 0;}
    107    
    108     unsigned shortAdvanceCarryDataOffset(unsigned advanceIndex)  const {
    109         return fullOrPartialBlocks(shortAdvance.frameOffsetinBits, PACK_SIZE) + advanceIndex;
    110     }
    111    
    112     unsigned unitAdvanceCarryDataOffset(unsigned advanceIndex)  const {
    113         return fullOrPartialBlocks(advance1.frameOffsetinBits, PACK_SIZE) + advanceIndex;
    114     }
    115    
    116     unsigned carryOpCarryDataOffset(unsigned idx)  const {
    117         return fullOrPartialBlocks(addWithCarry.frameOffsetinBits, PACK_SIZE) + idx;
    118     }
    119    
    120     unsigned summaryCarryDataIndex()  const {
    121         return fullOrPartialBlocks(summary.frameOffsetinBits, PACK_SIZE);
    122     }
    123103   
    124104    unsigned getLocalCarryPackIndex () { return shortAdvance.frameOffsetinBits / PACK_SIZE; }
Note: See TracChangeset for help on using the changeset viewer.