From ea9bf219c625f0742dddb0cae7ab424c72f3a036 Mon Sep 17 00:00:00 2001 From: bassiounix Date: Sat, 2 Aug 2025 23:25:28 +0300 Subject: [PATCH] [libc] fix build errors caused by atanhf16. --- libc/src/__support/math/atanhf16.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; FPBits xbits(x);