[libc-commits] [libc] [libc][math] Adding LIBC_MATH_ALWAYS_ROUND_NEAREST option (PR #201154)
via libc-commits
libc-commits at lists.llvm.org
Wed Jun 3 08:04:58 PDT 2026
=?utf-8?q?Ho=C3=A0ng_Minh_Thi=C3=AAn?=,=?utf-8?q?Ho=C3=A0ng_Minh_Thi=C3=AAn?=,
=?utf-8?q?Ho=C3=A0ng_Minh_Thi=C3=AAn?=,=?utf-8?q?Ho=C3=A0ng_Minh_Thi=C3=AAn?=
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/201154 at github.com>
================
@@ -1146,6 +1146,9 @@ strtofloatingpoint(const CharType *__restrict src) {
}
RoundDirection round_direction = RoundDirection::Nearest;
+#ifdef LIBC_MATH_HAS_ALWAYS_ROUNDING_NEAREST
+ round_direction = RoundDirection::Nearest;
+#else
----------------
Sukumarsawant wrote:
```suggestion
#ifndef LIBC_MATH_HAS_ALWAYS_ROUNDING_NEAREST
```
https://github.com/llvm/llvm-project/pull/201154
More information about the libc-commits
mailing list