Home
last modified time | relevance | path

Searched refs:twoPow (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/flang/lib/Decimal/
Dbinary-to-decimal.cpp28 int twoPow{x.UnbiasedExponent()}; local
29 twoPow -= x.bits - 1;
31 ++twoPow;
34 if (twoPow <= -lshift) {
35 twoPow += lshift;
37 } else if (twoPow < 0) {
38 lshift += twoPow;
39 twoPow = 0;
54 for (; twoPow > 0 && IsDivisibleBy<5>(); --twoPow) {
60 for (; twoPow >= 9; twoPow -= 9) {
[all …]
Dbig-radix-floating-point.h224 void DivideByPowerOfTwo(int twoPow) { // twoPow <= log10Radix in RemoveLeastOrderZeroDigits() argument
226 auto mask{(Digit{1} << twoPow) - 1}; in RemoveLeastOrderZeroDigits()
227 auto coeff{radix >> twoPow}; in RemoveLeastOrderZeroDigits()
230 digit_[j] = (digit_[j] >> twoPow) + coeff * remainder; in RemoveLeastOrderZeroDigits()
236 bool DivideByPowerOfTwoInPlace(int twoPow) { in RemoveLeastOrderZeroDigits() argument
238 while (twoPow > 0) { in RemoveLeastOrderZeroDigits()
239 int chunk{twoPow > log10Radix ? log10Radix : twoPow}; in RemoveLeastOrderZeroDigits()
242 twoPow -= chunk; in RemoveLeastOrderZeroDigits()
245 twoPow -= chunk; in RemoveLeastOrderZeroDigits()
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/
DMultiwayPathsCoveredCheck.cpp69 static std::size_t twoPow(std::size_t Bits) { in twoPow() function
87 return twoPow(Context.getTypeSize(T)); in getNumberOfPossibleValues()
165 return twoPow(BitfieldDecl->getBitWidthValue(*Result.Context)); in handleSwitchWithoutDefault()