[libc-commits] [libc] [libc][math] Adding LIBC_MATH_ALWAYS_ROUND_NEAREST option (PR #201154)

Hoàng Minh Thiên via libc-commits libc-commits at lists.llvm.org
Wed Jun 3 08:48:17 PDT 2026


================
@@ -1146,6 +1146,9 @@ strtofloatingpoint(const CharType *__restrict src) {
     }
 
     RoundDirection round_direction = RoundDirection::Nearest;
+#ifdef LIBC_MATH_HAS_ALWAYS_ROUND_NEAREST
+    round_direction = RoundDirection::Nearest;
+#else
----------------
hmthien050209 wrote:

Got it, fix incoming.

https://github.com/llvm/llvm-project/pull/201154


More information about the libc-commits mailing list