diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2023-02-21 12:30:19 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2023-02-21 12:30:19 +0300 |
commit | 4943c51a6236220e9621f0e9036ed4119e1d2f92 (patch) | |
tree | c204ef025c30f731b43d2ee92bb1ce7bac8d275b | |
parent | f693cb52d2b30cfce40dd0f94cdf4bfa2db01b5e (diff) | |
download | ydb-4943c51a6236220e9621f0e9036ed4119e1d2f92.tar.gz |
Update contrib/restricted/fast_float to 3.10.0
-rw-r--r-- | contrib/restricted/fast_float/include/fast_float/parse_number.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/restricted/fast_float/include/fast_float/parse_number.h b/contrib/restricted/fast_float/include/fast_float/parse_number.h index 2493b02f2c..3284443e9b 100644 --- a/contrib/restricted/fast_float/include/fast_float/parse_number.h +++ b/contrib/restricted/fast_float/include/fast_float/parse_number.h @@ -66,6 +66,10 @@ from_chars_result parse_infnan(const char *first, const char *last, T &value) n * Credit : @mwalcott3 */ fastfloat_really_inline bool rounds_to_nearest() noexcept { + // https://lemire.me/blog/2020/06/26/gcc-not-nearest/ +#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0) + return false; +#endif // See // A fast function to check your floating-point rounding mode // https://lemire.me/blog/2022/11/16/a-fast-function-to-check-your-floating-point-rounding-mode/ |