ΒΆtemplate <class DigitsT>
inline std::pair<int32_t, int> getLgImpl(
DigitsT Digits,
int16_t Scale)
template <class DigitsT>
inline std::pair<int32_t, int> getLgImpl(
DigitsT Digits,
int16_t Scale)
Description
Implementation of getLg() and friends. Returns the rounded lg of \c Digits*2^Scale and an int specifying whether this was rounded up (1), down (-1), or exact (0). Returns \c INT32_MIN when \c Digits is zero.
Declared at: llvm/include/llvm/Support/ScaledNumber.h:188
Templates
- DigitsT
Parameters
- DigitsT Digits
- int16_t Scale