diff --git a/include/fast_float/digit_comparison.h b/include/fast_float/digit_comparison.h index 2e8f2fd..475bf29 100644 --- a/include/fast_float/digit_comparison.h +++ b/include/fast_float/digit_comparison.h @@ -345,9 +345,8 @@ parse_mantissa(bigint &result, const parsed_number_string_t &num) noexcept { } template -fastfloat_really_inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa -positive_digit_comp( - bigint &bigmant, adjusted_mantissa& am, am_pow_t const exponent) noexcept { +inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa positive_digit_comp( + bigint &bigmant, adjusted_mantissa am, am_pow_t const exponent) noexcept { FASTFLOAT_ASSERT(bigmant.pow10(exponent)); bool truncated; am.mantissa = bigmant.hi64(truncated); @@ -374,9 +373,8 @@ positive_digit_comp( // we then need to scale by `2^(f- e)`, and then the two significant digits // are of the same magnitude. template -fastfloat_really_inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa -negative_digit_comp( - bigint &bigmant, adjusted_mantissa& am, am_pow_t const exponent) noexcept { +inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa negative_digit_comp( + bigint &bigmant, adjusted_mantissa am, am_pow_t const exponent) noexcept { bigint &real_digits = bigmant; am_pow_t const &real_exp = exponent; @@ -385,9 +383,8 @@ negative_digit_comp( adjusted_mantissa am_b = am; // gcc7 bug: use a lambda to remove the noexcept qualifier bug with // -Wnoexcept-type. - round(am_b, [](adjusted_mantissa &a, am_pow_t shift) { - round_down(a, shift); - }); + round(am_b, + [](adjusted_mantissa &a, am_pow_t shift) { round_down(a, shift); }); T b; to_float( #ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN @@ -445,7 +442,7 @@ negative_digit_comp( // of both, and use that to direct rounding. template inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa digit_comp( - parsed_number_string_t const &num, adjusted_mantissa& am) noexcept { + parsed_number_string_t const &num, adjusted_mantissa am) noexcept { // remove the invalid exponent bias am.power2 -= invalid_am_bias; diff --git a/include/fast_float/fast_float.h b/include/fast_float/fast_float.h index c1201e5..8d1d137 100644 --- a/include/fast_float/fast_float.h +++ b/include/fast_float/fast_float.h @@ -73,11 +73,13 @@ integer_times_pow10(int64_t const mantissa, template FASTFLOAT_CONSTEXPR20 typename std::enable_if::value, T>::type - integer_times_pow10(uint64_t const mantissa, int const decimal_exponent) noexcept; + integer_times_pow10(uint64_t const mantissa, + int const decimal_exponent) noexcept; template FASTFLOAT_CONSTEXPR20 typename std::enable_if::value, T>::type - 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. diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index e34c4e0..078717f 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -213,16 +213,12 @@ using parse_options = parse_options_t; #ifndef FASTFLOAT_ASSERT #define FASTFLOAT_ASSERT(x) \ - { \ - ((void)(x)); \ - } + { ((void)(x)); } #endif #ifndef FASTFLOAT_DEBUG_ASSERT #define FASTFLOAT_DEBUG_ASSERT(x) \ - { \ - ((void)(x)); \ - } + { ((void)(x)); } #endif // rust style `try!()` macro, or `?` operator diff --git a/include/fast_float/parse_number.h b/include/fast_float/parse_number.h index fd76eda..e527dad 100644 --- a/include/fast_float/parse_number.h +++ b/include/fast_float/parse_number.h @@ -410,7 +410,8 @@ FASTFLOAT_CONSTEXPR20 template FASTFLOAT_CONSTEXPR20 typename std::enable_if::value, T>::type - integer_times_pow10(int64_t const mantissa, int const decimal_exponent) noexcept { + integer_times_pow10(int64_t const mantissa, + int const decimal_exponent) noexcept { #ifdef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN FASTFLOAT_ASSUME(mantissa > 0); const uint64_t m = static_cast(mantissa); @@ -443,7 +444,8 @@ integer_times_pow10(uint64_t const mantissa, } 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 { return integer_times_pow10(mantissa, decimal_exponent); }