Lines Matching refs:pow10
489 For n != 0, returns k, such that pow10 := 10^(k-1) <= n < 10^k.
490 For n == 0, returns 1 and sets pow10 := 1.
492 inline int find_largest_pow10(const std::uint32_t n, std::uint32_t& pow10)
497 pow10 = 1000000000;
503 pow10 = 100000000;
508 pow10 = 10000000;
513 pow10 = 1000000;
518 pow10 = 100000;
523 pow10 = 10000;
528 pow10 = 1000;
533 pow10 = 100;
538 pow10 = 10;
542 pow10 = 1;
629 std::uint32_t pow10{};
630 const int k = find_largest_pow10(p1, pow10);
632 // 10^(k-1) <= p1 < 10^k, pow10 = 10^(k-1)
655 // pow10 = 10^(n-1) <= p1 < 10^n
657 const std::uint32_t d = p1 / pow10; // d = p1 div 10^(n-1)
658 const std::uint32_t r = p1 % pow10; // r = p1 mod 10^(n-1)
672 // pow10 = 10^n
693 // pow10 = 10^n is now 1 ulp in the decimal representation V.
699 const std::uint64_t ten_n = std::uint64_t{pow10} << -one.e;
705 pow10 /= 10;
707 // pow10 = 10^(n-1) <= p1 < 10^n