mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-01 18:05:49 +00:00
Fix typo (and thus bug)
This commit is contained in:
parent
0c8ffe9b0f
commit
6f81ea151a
@ -2081,7 +2081,7 @@ template <> struct cache_accessor<double> {
|
|||||||
"k is out of range");
|
"k is out of range");
|
||||||
|
|
||||||
#if FMT_USE_FULL_CACHE_DRAGONBOX
|
#if FMT_USE_FULL_CACHE_DRAGONBOX
|
||||||
return data::dragonbox_pow10_significands_128[k - float_info<float>::min_k];
|
return data::dragonbox_pow10_significands_128[k - float_info<double>::min_k];
|
||||||
#else
|
#else
|
||||||
static const int compression_ratio = 27;
|
static const int compression_ratio = 27;
|
||||||
|
|
||||||
@ -2131,12 +2131,12 @@ template <> struct cache_accessor<double> {
|
|||||||
recovered_cache = {recovered_cache.high(), recovered_cache.low() + error};
|
recovered_cache = {recovered_cache.high(), recovered_cache.low() + error};
|
||||||
|
|
||||||
return recovered_cache;
|
return recovered_cache;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static carrier_uint
|
static carrier_uint compute_mul(carrier_uint u,
|
||||||
compute_mul(carrier_uint u, const cache_entry_type& cache) FMT_NOEXCEPT {
|
const cache_entry_type& cache) FMT_NOEXCEPT {
|
||||||
return umul192_upper64(u, cache);
|
return umul192_upper64(u, cache);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2530,7 +2530,7 @@ small_divisor_case_label:
|
|||||||
}
|
}
|
||||||
return ret_value;
|
return ret_value;
|
||||||
}
|
}
|
||||||
} // namespace detail
|
} // namespace dragonbox
|
||||||
|
|
||||||
// Formats value using a variation of the Fixed-Precision Positive
|
// Formats value using a variation of the Fixed-Precision Positive
|
||||||
// Floating-Point Printout ((FPP)^2) algorithm by Steele & White:
|
// Floating-Point Printout ((FPP)^2) algorithm by Steele & White:
|
||||||
|
Loading…
Reference in New Issue
Block a user