[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:40 PDT 2026
================
@@ -109,7 +109,7 @@ LIBC_INLINE float16 erfcf16(float16 x) {
if (fputil::fenv_is_round_up())
return FPBits::min_subnormal().get_val();
#endif
- return 0.0f16;
+ return fputil::cast<float16>(0.0f);
----------------
lntue wrote:
you can use `FPBits::zero().getval()` for this.
https://github.com/llvm/llvm-project/pull/215613
More information about the libc-commits
mailing list