Searched refs:DigitsT (Results 1 – 1 of 1) sorted by relevance
43 template <class DigitsT> inline int getWidth() { return sizeof(DigitsT) * 8; } in getWidth()52 template <class DigitsT>53 inline std::pair<DigitsT, int16_t> getRounded(DigitsT Digits, int16_t Scale, in getRounded()55 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getRounded()60 return std::make_pair(DigitsT(1) << (getWidth<DigitsT>() - 1), Scale + 1); in getRounded()79 template <class DigitsT>80 inline std::pair<DigitsT, int16_t> getAdjusted(uint64_t Digits,82 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned");84 const int Width = getWidth<DigitsT>();85 if (Width == 64 || Digits <= std::numeric_limits<DigitsT>::max())[all …]