Ignore:
Timestamp:
Mar 3, 2016, 9:02:22 AM (4 years ago)
Author:
cameron
Message:

Removing compile-time BLOCK_SIZE from pablo compiler/carry manager

File:
1 edited

Legend:

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

    r4942 r4951  
    4848public:
    4949
    50     CarryData(PabloBlock * b, unsigned PACK_SIZE, unsigned ITEMS_PER_PACK):
    51        mPackSize(PACK_SIZE),
    52        mItemsPerPack(ITEMS_PER_PACK),
    53        mPositionsPerBlock(mItemsPerPack * (BLOCK_SIZE/mPackSize)),
     50    CarryData(PabloBlock * b, unsigned packSize, unsigned itemsPerPack, unsigned blockSize):
     51       mPackSize(packSize),
     52       mItemsPerPack(itemsPerPack),
     53       mBlockSize(blockSize),
     54       mPositionsPerBlock(mItemsPerPack * (blockSize/mPackSize)),
    5455       theScope(b),
    5556       framePosition(0),
     
    103104   
    104105    unsigned longAdvanceEntries(unsigned shift_amount) const {
    105         return fullOrPartialBlocks(shift_amount, BLOCK_SIZE);
     106        return fullOrPartialBlocks(shift_amount, mBlockSize);
    106107    }
    107108   
     
    132133protected:
    133134
    134     unsigned mPackSize, mItemsPerPack, mPositionsPerBlock;
     135    unsigned mPackSize, mItemsPerPack, mBlockSize, mPositionsPerBlock;
    135136   
    136137    PabloBlock * theScope;
Note: See TracChangeset for help on using the changeset viewer.