[libc-commits] [libc] [libc] fix build errors caused by atanhf16. (PR #151838)

via libc-commits libc-commits at lists.llvm.org
Sat Aug 2 13:27:05 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Muhammad Bassiouni (bassiounix)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/151838.diff


1 Files Affected:

- (modified) libc/src/__support/math/atanhf16.h (+1-1) 


``````````diff
diff --git a/libc/src/__support/math/atanhf16.h b/libc/src/__support/math/atanhf16.h
index 9146e1e31b815..80929dd30fa34 100644
--- a/libc/src/__support/math/atanhf16.h
+++ b/libc/src/__support/math/atanhf16.h
@@ -109,7 +109,7 @@ static constexpr float LOG_F_FLOAT[128] = {
 // x should be positive, normal finite value
 // TODO: Simplify range reduction and polynomial degree for float16.
 //       See issue #137190.
-LIBC_INLINE static constexpr float log_eval_f(float x) {
+LIBC_INLINE static float log_eval_f(float x) {
   // For x = 2^ex * (1 + mx), logf(x) = ex * logf(2) + logf(1 + mx).
   using FPBits = fputil::FPBits<float>;
   FPBits xbits(x);

``````````

</details>


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


More information about the libc-commits mailing list