Ignore:
Timestamp:
Sep 21, 2017, 3:10:34 PM (21 months ago)
Author:
nmedfort
Message:

Minor clean up. Bug fix for object cache when the same cached kernel is used twice in a single run. Improvement to RE Minimizer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/interface.cpp

    r5611 r5646  
    8585}
    8686
    87 unsigned ProcessingRate::calculateMaxReferenceItems(unsigned outputItems, bool doFinal) const {
     87unsigned ProcessingRate::calculateMaxReferenceItems(const unsigned outputItems, const bool doFinal) const {
    8888    if (mKind == ProcessingRate::ProcessingRateKind::FixedRatio || mKind == ProcessingRate::ProcessingRateKind::MaxRatio) {
    8989        if (mRatioNumerator == mRatioDenominator) {
     
    9696    }
    9797    if (mKind == ProcessingRate::ProcessingRateKind::Add1) {
    98         return doFinal ? outputItems - 1 : outputItems;
     98        return outputItems - (doFinal ? 1 : 0);
    9999    }
    100100    report_fatal_error("Inverse processing rate calculation attempted for unknown rate.");
Note: See TracChangeset for help on using the changeset viewer.