mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
# clang format
This commit is contained in:
parent
097800a609
commit
384fcec12d
@ -59,9 +59,11 @@ from_chars_advanced(UC const *first, UC const *last, T &value,
|
|||||||
* `new` or `malloc`).
|
* `new` or `malloc`).
|
||||||
*/
|
*/
|
||||||
FASTFLOAT_CONSTEXPR20 inline double
|
FASTFLOAT_CONSTEXPR20 inline double
|
||||||
integer_times_pow10(uint64_t const mantissa, int const decimal_exponent) noexcept;
|
integer_times_pow10(uint64_t const mantissa,
|
||||||
|
int const decimal_exponent) noexcept;
|
||||||
FASTFLOAT_CONSTEXPR20 inline double
|
FASTFLOAT_CONSTEXPR20 inline double
|
||||||
integer_times_pow10(int64_t const mantissa, int const decimal_exponent) noexcept;
|
integer_times_pow10(int64_t const mantissa,
|
||||||
|
int const decimal_exponent) noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* from_chars for integer types.
|
* from_chars for integer types.
|
||||||
|
|||||||
@ -254,8 +254,7 @@ clinger_fast_path_impl(uint64_t const mantissa, int64_t const exponent,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
value = T(mantissa) *
|
value = T(mantissa) * binary_format<T>::exact_power_of_ten(exponent);
|
||||||
binary_format<T>::exact_power_of_ten(exponent);
|
|
||||||
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
||||||
if (is_negative) {
|
if (is_negative) {
|
||||||
value = -value;
|
value = -value;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user