added missing inline specifiers

This commit is contained in:
Pavel Novikov 2025-09-02 13:30:40 +03:00
parent 7b8f04500a
commit a134561e4b
No known key found for this signature in database
GPG Key ID: F2C305CAE4167D14
2 changed files with 30 additions and 23 deletions

View File

@ -58,12 +58,14 @@ from_chars_advanced(UC const *first, UC const *last, T &value,
* The implementation does not throw and does not allocate memory (e.g., with
* `new` or `malloc`).
*/
FASTFLOAT_CONSTEXPR20
typename std::enable_if<is_supported_float_type<double>::value, double>::type
FASTFLOAT_CONSTEXPR20 inline
typename std::enable_if<is_supported_float_type<double>::value,
double>::type
multiply_integer_and_power_of_10(uint64_t mantissa,
int decimal_exponent) noexcept;
FASTFLOAT_CONSTEXPR20
typename std::enable_if<is_supported_float_type<double>::value, double>::type
FASTFLOAT_CONSTEXPR20 inline
typename std::enable_if<is_supported_float_type<double>::value,
double>::type
multiply_integer_and_power_of_10(int64_t mantissa,
int decimal_exponent) noexcept;

View File

@ -344,8 +344,9 @@ from_chars(UC const *first, UC const *last, T &value, int base) noexcept {
return from_chars_advanced(first, last, value, options);
}
FASTFLOAT_CONSTEXPR20
typename std::enable_if<is_supported_float_type<double>::value, double>::type
FASTFLOAT_CONSTEXPR20 inline
typename std::enable_if<is_supported_float_type<double>::value,
double>::type
multiply_integer_and_power_of_10(uint64_t mantissa,
int decimal_exponent) noexcept {
double value;
@ -358,8 +359,9 @@ multiply_integer_and_power_of_10(uint64_t mantissa,
return value;
}
FASTFLOAT_CONSTEXPR20
typename std::enable_if<is_supported_float_type<double>::value, double>::type
FASTFLOAT_CONSTEXPR20 inline
typename std::enable_if<is_supported_float_type<double>::value,
double>::type
multiply_integer_and_power_of_10(int64_t mantissa,
int decimal_exponent) noexcept {
const bool is_negative = mantissa < 0;
@ -377,17 +379,20 @@ multiply_integer_and_power_of_10(int64_t mantissa,
// the following overloads are here to avoid surprising ambiguity for int,
// unsigned, etc.
FASTFLOAT_CONSTEXPR20
typename std::enable_if<is_supported_float_type<double>::value, double>::type
FASTFLOAT_CONSTEXPR20 inline
typename std::enable_if<is_supported_float_type<double>::value,
double>::type
multiply_integer_and_power_of_10(unsigned mantissa,
int decimal_exponent) noexcept {
return multiply_integer_and_power_of_10(static_cast<uint64_t>(mantissa),
decimal_exponent);
}
FASTFLOAT_CONSTEXPR20
typename std::enable_if<is_supported_float_type<double>::value, double>::type
multiply_integer_and_power_of_10(int mantissa, int decimal_exponent) noexcept {
FASTFLOAT_CONSTEXPR20 inline
typename std::enable_if<is_supported_float_type<double>::value,
double>::type
multiply_integer_and_power_of_10(int mantissa,
int decimal_exponent) noexcept {
return multiply_integer_and_power_of_10(static_cast<int64_t>(mantissa),
decimal_exponent);
}