[libc-commits] [libc] [libc] Modify `atan2f128` to use emulated Float128 type (PR #216508)
via libc-commits
libc-commits at lists.llvm.org
Sun Aug 16 00:29:01 PDT 2026
================
@@ -203,13 +202,11 @@ LIBC_INLINE float128 atan2f128(float128 y, float128 x) {
if (final_sign)
r.sign = r.sign.negate();
- return static_cast<float128>(r);
+ return static_cast<Float128>(r);
----------------
Sukumarsawant wrote:
Leaving it up to static cast causes test failures due to rounding up
And leaving it up to futil::cast doesn't really support it due to is_floating_point.h
https://github.com/llvm/llvm-project/pull/216508
More information about the libc-commits
mailing list