Ignore:
Timestamp:
Jun 14, 2018, 10:41:45 AM (13 months ago)
Author:
cameron
Message:

Little-endian/big-endian bit number options, default to little-endian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/alphabet.h

    r5823 r6089  
    1313
    1414namespace cc {
     15   
     16// Set of parallel bit streams may be numbered using either the
     17// LittleEndian (right-to-left) or BigEndian (left-to-right) conventions.
     18enum class BitNumbering {LittleEndian, BigEndian};
     19
     20inline std::string numberingSuffix(BitNumbering numbering) {
     21    return (numbering == BitNumbering::LittleEndian) ? "-LE" : "-BE";
     22}
     23
    1524//
    1625// An Alphabet is the universe of characters used to form strings in
Note: See TracChangeset for help on using the changeset viewer.