Searched refs:ScaleDiff (Results 1 - 2 of 2) sorted by relevance

/external/llvm/lib/Support/
H A DScaledNumber.cpp124 int ScaledNumbers::compareImpl(uint64_t L, uint64_t R, int ScaleDiff) { argument
125 assert(ScaleDiff >= 0 && "wrong argument order");
126 assert(ScaleDiff < 64 && "numbers too far apart");
128 uint64_t L_adjusted = L >> ScaleDiff;
134 return L > L_adjusted << ScaleDiff ? 1 : 0;
/external/llvm/include/llvm/Support/
H A DScaledNumber.h242 /// \c L is higher than that of \c R by \c ScaleDiff, compare them. Return -1,
245 /// \pre 0 <= ScaleDiff < 64.
246 int compareImpl(uint64_t L, uint64_t R, int ScaleDiff);
301 int32_t ScaleDiff = int32_t(LScale) - RScale;
302 if (ScaleDiff >= 2 * getWidth<DigitsT>()) {
309 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff);
312 int32_t ShiftR = ScaleDiff - ShiftL;

Completed in 334 milliseconds