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

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


Author: Muhammad Bassiouni
Date: 2025-08-02T23:43:09+03:00
New Revision: 5f8338749aa2fab742960b013809e1e0a8fbcfdd

URL: https://github.com/llvm/llvm-project/commit/5f8338749aa2fab742960b013809e1e0a8fbcfdd
DIFF: https://github.com/llvm/llvm-project/commit/5f8338749aa2fab742960b013809e1e0a8fbcfdd.diff

LOG: [libc] fix build errors caused by atanhf16. (#151838)

Added: 
    

Modified: 
    libc/src/__support/math/atanhf16.h

Removed: 
    


################################################################################
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);


        


More information about the libc-commits mailing list