Searched refs:ScaleDiff (Results 1 – 2 of 2) sorted by relevance
125 int ScaledNumbers::compareImpl(uint64_t L, uint64_t R, int ScaleDiff) { in compareImpl() argument126 assert(ScaleDiff >= 0 && "wrong argument order"); in compareImpl()127 assert(ScaleDiff < 64 && "numbers too far apart"); in compareImpl()129 uint64_t L_adjusted = L >> ScaleDiff; in compareImpl()135 return L > L_adjusted << ScaleDiff ? 1 : 0; in compareImpl()
245 int compareImpl(uint64_t L, uint64_t R, int ScaleDiff);300 int32_t ScaleDiff = int32_t(LScale) - RScale; in matchScales() local301 if (ScaleDiff >= 2 * getWidth<DigitsT>()) { in matchScales()308 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff); in matchScales()311 int32_t ShiftR = ScaleDiff - ShiftL; in matchScales()