[libc-commits] [libc] [libc][math] Reduce code and table size for embedded targets (PR #223907)

via libc-commits libc-commits at lists.llvm.org
Wed Sep 16 05:50:01 PDT 2026


================
@@ -125,22 +120,16 @@ LIBC_INLINE double atan2(double y, double x) {
     unsigned x_except = x == 0.0 ? 0 : (FPBits(x_abs).is_inf() ? 2 : 1);
     unsigned y_except = y == 0.0 ? 0 : (FPBits(y_abs).is_inf() ? 2 : 1);
 
-    // Exceptional cases:
-    //   EXCEPT[y_except][x_except][x_is_neg]
-    // with x_except & y_except:
-    //   0: zero
-    //   1: finite, non-zero
-    //   2: infinity
----------------
zhangweize9-cyber wrote:

Please keep this comment.

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


More information about the libc-commits mailing list