mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
more constexpr.
This commit is contained in:
parent
3dd3712782
commit
f3c60527d5
@ -79,7 +79,7 @@ from_chars_result_t<UC>
|
|||||||
* It is the default on most system. This function is meant to be inexpensive.
|
* It is the default on most system. This function is meant to be inexpensive.
|
||||||
* Credit : @mwalcott3
|
* Credit : @mwalcott3
|
||||||
*/
|
*/
|
||||||
fastfloat_really_inline bool rounds_to_nearest() noexcept {
|
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 bool rounds_to_nearest() noexcept {
|
||||||
// https://lemire.me/blog/2020/06/26/gcc-not-nearest/
|
// https://lemire.me/blog/2020/06/26/gcc-not-nearest/
|
||||||
#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
|
#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user