Commit b2f0b6e4 authored by Victor Zverovich's avatar Victor Zverovich

Tweak comment

parent 3d9f3c16
...@@ -451,8 +451,8 @@ FMT_FUNC fp operator*(fp x, fp y) { ...@@ -451,8 +451,8 @@ FMT_FUNC fp operator*(fp x, fp y) {
#endif #endif
} }
// Returns cached power (of 10) c_k = c_k.f * pow(2, c_k.e) such that its // Returns a cached power of 10 `c_k = c_k.f * pow(2, c_k.e)` such that its
// (binary) exponent satisfies min_exponent <= c_k.e <= min_exponent + 28. // (binary) exponent satisfies `min_exponent <= c_k.e <= min_exponent + 28`.
FMT_FUNC fp get_cached_power(int min_exponent, int& pow10_exponent) { FMT_FUNC fp get_cached_power(int min_exponent, int& pow10_exponent) {
const double one_over_log2_10 = 0.30102999566398114; // 1 / log2(10) const double one_over_log2_10 = 0.30102999566398114; // 1 / log2(10)
int index = static_cast<int>( int index = static_cast<int>(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment