mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
Compare commits
2 Commits
f98c5e5f88
...
aac9975007
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aac9975007 | ||
|
|
3d46d99cdf |
@ -67,7 +67,7 @@ to_extended(T const &value) noexcept {
|
|||||||
constexpr am_pow_t bias = binary_format<T>::mantissa_explicit_bits() -
|
constexpr am_pow_t bias = binary_format<T>::mantissa_explicit_bits() -
|
||||||
binary_format<T>::minimum_exponent();
|
binary_format<T>::minimum_exponent();
|
||||||
|
|
||||||
equiv_uint const bits = bit_cast<T, equiv_uint>(value);
|
equiv_uint const bits = bit_cast<equiv_uint, T>(value);
|
||||||
|
|
||||||
adjusted_mantissa am;
|
adjusted_mantissa am;
|
||||||
if ((bits & exponent_mask) == 0) {
|
if ((bits & exponent_mask) == 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user