Ignore:
Timestamp:
Oct 16, 2018, 2:29:44 PM (7 months ago)
Author:
nmedfort
Message:

Added RE_Inspector.

Migrated RE passes to RE_Transformer.

Incorporated Memoizer functionality into RE_Transformer/Inspector.

Removed Memoizer.

Bug fix for unicode_set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/UCD/unicode_set.cpp

    r5935 r6173  
    183183            const auto m = lengthOf(r) * QUAD_BITS;
    184184            if (LLVM_UNLIKELY(remaining < m)) {
    185                 return (base * QUAD_BITS) + remaining;
     185                return base + remaining;
    186186            }
    187187            base += m;
    188             remaining -= m * QUAD_BITS;
     188            remaining -= m;
    189189        } else { // if (typeOf(r) == Mixed) {
    190190            for (auto l = lengthOf(r); l; --l, ++qi) {
     
    197197                        const bitquad_t k = scan_forward_zeroes<bitquad_t>(q);
    198198                        if (remaining == 0) {
    199                             return (base * QUAD_BITS) + k;
     199                            return base + k;
    200200                        }
    201201                        q ^= static_cast<bitquad_t>(1) << k;
     
    203203                    }
    204204                }
    205                 ++base;
     205                base += QUAD_BITS;
    206206                remaining -= c;
    207207            }
Note: See TracChangeset for help on using the changeset viewer.