From b1c21c80091e22d496203526ac3b42d491520d80 Mon Sep 17 00:00:00 2001 From: OverMighty Date: Fri, 18 Oct 2024 22:47:04 +0200 Subject: [PATCH] Rename ONE_OVER_F to ONE_OVER_F_F --- libc/src/math/generic/log10f16.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/src/math/generic/log10f16.cpp b/libc/src/math/generic/log10f16.cpp index 65e91f05c3d819..990bcabaf68718 100644 --- a/libc/src/math/generic/log10f16.cpp +++ b/libc/src/math/generic/log10f16.cpp @@ -122,7 +122,7 @@ LLVM_LIBC_FUNCTION(float16, log10f16, (float16 x)) { // log10(1.mant) = log10(f) + log10(1.mant / f) // = log10(f) + log10(1 + d/f) // since d/f is sufficiently small. - // We store log10(f) and 1/f in the lookup tables LOG10F_F and ONE_OVER_F + // We store log10(f) and 1/f in the lookup tables LOG10F_F and ONE_OVER_F_F // respectively. int m = -FPBits::EXP_BIAS; @@ -146,7 +146,7 @@ LLVM_LIBC_FUNCTION(float16, log10f16, (float16 x)) { x_bits.set_biased_exponent(FPBits::EXP_BIAS); float mant_f = x_bits.get_val(); // v = 1.mant * 1/f - 1 = d/f - float v = fputil::multiply_add(mant_f, ONE_OVER_F[f], -1.0f); + float v = fputil::multiply_add(mant_f, ONE_OVER_F_F[f], -1.0f); // Degree-3 minimax polynomial generated by Sollya with the following // commands: