Lines Matching refs:pow10
17272 For n != 0, returns k, such that pow10 := 10^(k-1) <= n < 10^k.
17273 For n == 0, returns 1 and sets pow10 := 1.
17275 inline int find_largest_pow10(const std::uint32_t n, std::uint32_t& pow10)
17280 pow10 = 1000000000;
17286 pow10 = 100000000;
17291 pow10 = 10000000;
17296 pow10 = 1000000;
17301 pow10 = 100000;
17306 pow10 = 10000;
17311 pow10 = 1000;
17316 pow10 = 100;
17321 pow10 = 10;
17325 pow10 = 1;
17412 std::uint32_t pow10{};
17413 const int k = find_largest_pow10(p1, pow10);
17415 // 10^(k-1) <= p1 < 10^k, pow10 = 10^(k-1)
17438 // pow10 = 10^(n-1) <= p1 < 10^n
17440 const std::uint32_t d = p1 / pow10; // d = p1 div 10^(n-1)
17441 const std::uint32_t r = p1 % pow10; // r = p1 mod 10^(n-1)
17455 // pow10 = 10^n
17476 // pow10 = 10^n is now 1 ulp in the decimal representation V.
17482 const std::uint64_t ten_n = std::uint64_t{pow10} << -one.e;
17488 pow10 /= 10;
17490 // pow10 = 10^(n-1) <= p1 < 10^n