Ignore:
Timestamp:
Jun 7, 2018, 5:16:10 PM (17 months ago)
Author:
cameron
Message:

S2P_21 kernel for transposition of UTF-32; steps toward little-endian bit numbering throughout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.cpp

    r5962 r6069  
    224224    llvm::report_fatal_error(std::string("Invalid Character Set Range: [") + std::to_string(lo) + "," + std::to_string(hi) + "]");
    225225}
     226//#define LITTLE_ENDIAN_BIT_NUMBERING
    226227
    227228inline PabloAST * Parabix_CC_Compiler::getBasisVar(const unsigned i) const {
    228229    assert (i < mEncodingBits);
     230#ifndef LITTLE_ENDIAN_BIT_NUMBERING
    229231    const unsigned index = mEncodingBits - i - 1; assert (index < mEncodingBits);
     232#else
     233    const unsigned index = i;
     234#endif
    230235    assert (mBasisBit[index]);
    231236    return mBasisBit[index];
Note: See TracChangeset for help on using the changeset viewer.