[libc-commits] [libc] [libc][math] Fix -Wc++23-extensions warnings in erfcf16 and erff16. (PR #215613)

via libc-commits libc-commits at lists.llvm.org
Wed Aug 12 08:58:51 PDT 2026


================
@@ -134,17 +134,20 @@ LIBC_INLINE float16 erff16(float16 x) {
         return x;
       }
       // Inf -> returns 1.0 or -1.0
-      return is_neg ? -1.0f16 : 1.0f16;
+      static constexpr float16 ONE_F16 = fputil::cast<float16>(1.0f);
----------------
lntue wrote:

remove `static`

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


More information about the libc-commits mailing list