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

/freebsd-13-stable/contrib/llvm-project/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;
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DScaledNumber.h240 /// \c L is higher than that of \c R by \c ScaleDiff, compare them. Return -1,
243 /// \pre 0 <= ScaleDiff < 64.
244 int compareImpl(uint64_t L, uint64_t R, int ScaleDiff);
299 int32_t ScaleDiff = int32_t(LScale) - RScale;
300 if (ScaleDiff >= 2 * getWidth<DigitsT>()) {
307 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff);
310 int32_t ShiftR = ScaleDiff - ShiftL;

Completed in 51 milliseconds