Skip to content

Commit bbc612b

Browse files
committed
Rename ONE_OVER_F to ONE_OVER_F_F
1 parent 77cbc5d commit bbc612b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/math/generic/log10f16.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ LLVM_LIBC_FUNCTION(float16, log10f16, (float16 x)) {
122122
// log10(1.mant) = log10(f) + log10(1.mant / f)
123123
// = log10(f) + log10(1 + d/f)
124124
// since d/f is sufficiently small.
125-
// We store log10(f) and 1/f in the lookup tables LOG10F_F and ONE_OVER_F
125+
// We store log10(f) and 1/f in the lookup tables LOG10F_F and ONE_OVER_F_F
126126
// respectively.
127127

128128
int m = -FPBits::EXP_BIAS;
@@ -146,7 +146,7 @@ LLVM_LIBC_FUNCTION(float16, log10f16, (float16 x)) {
146146
x_bits.set_biased_exponent(FPBits::EXP_BIAS);
147147
float mant_f = x_bits.get_val();
148148
// v = 1.mant * 1/f - 1 = d/f
149-
float v = fputil::multiply_add(mant_f, ONE_OVER_F[f], -1.0f);
149+
float v = fputil::multiply_add(mant_f, ONE_OVER_F_F[f], -1.0f);
150150

151151
// Degree-3 minimax polynomial generated by Sollya with the following
152152
// commands:

0 commit comments

Comments
 (0)