Skip to content

Commit 2606bcd

Browse files
committed
A few inlines
1 parent 8514abe commit 2606bcd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/fast_float/parse_number.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ clinger_fast_path_impl(uint64_t mantissa, int64_t exponent, bool is_negative,
251251
* parsing options or other parsing custom function implemented by user.
252252
*/
253253
template <typename T, typename UC>
254-
FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
254+
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
255255
from_chars_advanced(parsed_number_string_t<UC> &pns, T &value) noexcept {
256256
static_assert(is_supported_float_type<T>::value,
257257
"only some floating-point types are supported");
@@ -290,7 +290,7 @@ from_chars_advanced(parsed_number_string_t<UC> &pns, T &value) noexcept {
290290
}
291291

292292
template <typename T, typename UC>
293-
FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
293+
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
294294
from_chars_float_advanced(UC const *first, UC const *last, T &value,
295295
parse_options_t<UC> options) noexcept {
296296

@@ -456,6 +456,7 @@ template <size_t TypeIx> struct from_chars_advanced_caller {
456456

457457
template <> struct from_chars_advanced_caller<1> {
458458
template <typename T, typename UC>
459+
fastfloat_really_inline
459460
FASTFLOAT_CONSTEXPR20 static from_chars_result_t<UC>
460461
call(UC const *first, UC const *last, T &value,
461462
parse_options_t<UC> options) noexcept {
@@ -465,15 +466,15 @@ template <> struct from_chars_advanced_caller<1> {
465466

466467
template <> struct from_chars_advanced_caller<2> {
467468
template <typename T, typename UC>
468-
FASTFLOAT_CONSTEXPR20 static from_chars_result_t<UC>
469+
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 static from_chars_result_t<UC>
469470
call(UC const *first, UC const *last, T &value,
470471
parse_options_t<UC> options) noexcept {
471472
return from_chars_int_advanced(first, last, value, options);
472473
}
473474
};
474475

475476
template <typename T, typename UC>
476-
FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
477+
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
477478
from_chars_advanced(UC const *first, UC const *last, T &value,
478479
parse_options_t<UC> options) noexcept {
479480
return from_chars_advanced_caller<

0 commit comments

Comments
 (0)