[libc][math] Remove static from log1pf implementation (#190042)

Reflecting changes according to
823e3e0017
This commit is contained in:
Zorojuro 2026-04-02 04:31:44 +05:30 committed by GitHub
parent e87ea848b7
commit 52fb23eef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@
#include "src/__support/macros/properties/cpu_features.h"
#include "src/__support/math/acoshf_utils.h"
// This is an algorithm for log10(x) in single precision which is
// This is an algorithm for log(1+x) in single precision which is
// correctly rounded for all rounding modes.
// - An exhaustive test show that when x >= 2^45, log1pf(x) == logf(x)
// for all rounding modes.
@ -37,7 +37,7 @@ namespace LIBC_NAMESPACE_DECL {
namespace math {
LIBC_INLINE static float log1pf(float x) {
LIBC_INLINE float log1pf(float x) {
using FPBits = typename fputil::FPBits<float>;
FPBits xbits(x);
uint32_t x_u = xbits.uintval();
@ -62,7 +62,7 @@ LIBC_INLINE static float log1pf(float x) {
}
#endif // !LIBC_MATH_HAS_SKIP_ACCURATE_PASS
// Polymial generated by Sollya with:
// Polynomial generated by Sollya with:
// > P = fpminimax(log(1 + x)/x, 7, [|D...|], [-2^-6; 2^-6]);
// > dirtyinfnorm((log(1 + x) - x*P)/log(1 + x), [-2^-6, 2^-6]);
// 0x1.1447755e54a327941f7db7316f8dcd7cf33d15ffp-58