Searched refs:tempDifference (Results 1 – 3 of 3) sorted by relevance
636 long tempDifference; in findFractionRuleSetRule() local646 tempDifference = numerator * rules[i].getBaseValue() % leastCommonMultiple; in findFractionRuleSetRule()651 if (leastCommonMultiple - tempDifference < tempDifference) { in findFractionRuleSetRule()652 tempDifference = leastCommonMultiple - tempDifference; in findFractionRuleSetRule()659 if (tempDifference < difference) { in findFractionRuleSetRule()660 difference = tempDifference; in findFractionRuleSetRule()
637 long tempDifference; in findFractionRuleSetRule() local647 tempDifference = numerator * rules[i].getBaseValue() % leastCommonMultiple; in findFractionRuleSetRule()652 if (leastCommonMultiple - tempDifference < tempDifference) { in findFractionRuleSetRule()653 tempDifference = leastCommonMultiple - tempDifference; in findFractionRuleSetRule()660 if (tempDifference < difference) { in findFractionRuleSetRule()661 difference = tempDifference; in findFractionRuleSetRule()
595 int64_t tempDifference; in findFractionRuleSetRule() local605 tempDifference = numerator * rules[i]->getBaseValue() % leastCommonMultiple; in findFractionRuleSetRule()611 if (leastCommonMultiple - tempDifference < tempDifference) { in findFractionRuleSetRule()612 tempDifference = leastCommonMultiple - tempDifference; in findFractionRuleSetRule()619 if (tempDifference < difference) { in findFractionRuleSetRule()620 difference = tempDifference; in findFractionRuleSetRule()