[libc-commits] [libc] [libc] Modify `atan2f128` to use emulated Float128 type (PR #216508)

via libc-commits libc-commits at lists.llvm.org
Tue Aug 18 01:11:07 PDT 2026


================
@@ -151,7 +150,8 @@ LIBC_INLINE float128 atan2f128(float128 y, float128 x) {
       DFloat128 r = EXCEPTS[y_except][x_except][x_sign];
       if (y_sign)
         r.sign = r.sign.negate();
-      return static_cast<float128>(r);
+      return r.template as<Float128, /*ShouldSignalExceptions=*/false>();
+      (r);
----------------
Sukumarsawant wrote:

I missed the exception one, though the (r) and (result) were left over from the previous return, my bad.

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


More information about the libc-commits mailing list