Ignore:
Timestamp:
Dec 26, 2015, 12:09:11 PM (3 years ago)
Author:
cameron
Message:

Dynamic generation of s2p code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/do_grep.cpp

    r4883 r4900  
    273273
    274274        for (size_t blk = 0; blk != SEGMENT_BLOCKS; ++blk) {
    275             s2p_do_block(reinterpret_cast<BytePack *>(mFileBuffer + (blk * BLOCK_SIZE) + (segment * SEGMENT_SIZE)), basis_bits);
     275            mTransposeFcn(reinterpret_cast<BytePack *>(mFileBuffer + (blk * BLOCK_SIZE) + (segment * SEGMENT_SIZE)), basis_bits);
    276276            Output output;
    277277            mProcessBlockFcn(basis_bits, output);
     
    315315    /* Full Blocks */
    316316    for (; remaining >= BLOCK_SIZE; remaining -= BLOCK_SIZE, ++blk) {
    317         s2p_do_block(reinterpret_cast<BytePack *>(mFileBuffer + (blk * BLOCK_SIZE) + (segment * SEGMENT_SIZE)), basis_bits);
     317        mTransposeFcn(reinterpret_cast<BytePack *>(mFileBuffer + (blk * BLOCK_SIZE) + (segment * SEGMENT_SIZE)), basis_bits);
    318318        Output output;
    319319        mProcessBlockFcn(basis_bits, output);
     
    348348    }
    349349    else { // At least 1 byte, so we are not at a page boundary yet, safe to access a full block.
    350         s2p_do_final_block(reinterpret_cast<BytePack *>(mFileBuffer + (blk * BLOCK_SIZE) + (segment * SEGMENT_SIZE)), basis_bits, EOF_mask);
     350        mTransposeFcn(reinterpret_cast<BytePack *>(mFileBuffer + (blk * BLOCK_SIZE) + (segment * SEGMENT_SIZE)), basis_bits);
    351351    }
    352352
Note: See TracChangeset for help on using the changeset viewer.