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

Hoàng Minh Thiên via libc-commits libc-commits at lists.llvm.org
Wed Jun 10 20:53:22 PDT 2026


================
@@ -190,6 +202,10 @@ template <size_t Bits> struct DyadicFloat {
         raise_except_if_required(FE_OVERFLOW | FE_INEXACT);
       }
 
+#ifdef LIBC_MATH_HAS_ASSUME_ROUND_NEAREST_ONLY
+      return FPBits::inf(sign).get_val();
+#endif // LIBC_MATH_HAS_ASSUME_ROUND_NEAREST_ONLY
----------------
hmthien050209 wrote:

Done

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


More information about the libc-commits mailing list