Skip to content

Commit c029ff4

Browse files
committed
Rename ONE_OVER_F to ONE_OVER_F_F
1 parent 7689120 commit c029ff4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libc/src/math/generic/log2f16.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ LLVM_LIBC_FUNCTION(float16, log2f16, (float16 x)) {
108108
// log2(1.mant) = log2(f) + log2(1.mant / f)
109109
// = log2(f) + log2(1 + d/f)
110110
// since d/f is sufficiently small.
111-
// We store log2(f) and 1/f in the lookup tables LOG2F_F and ONE_OVER_F
111+
// We store log2(f) and 1/f in the lookup tables LOG2F_F and ONE_OVER_F_F
112112
// respectively.
113113

114114
int m = -FPBits::EXP_BIAS;
@@ -132,7 +132,7 @@ LLVM_LIBC_FUNCTION(float16, log2f16, (float16 x)) {
132132
x_bits.set_biased_exponent(FPBits::EXP_BIAS);
133133
float mant_f = x_bits.get_val();
134134
// v = 1.mant * 1/f - 1 = d/f
135-
float v = fputil::multiply_add(mant_f, ONE_OVER_F[f], -1.0f);
135+
float v = fputil::multiply_add(mant_f, ONE_OVER_F_F[f], -1.0f);
136136

137137
// Degree-3 minimax polynomial generated by Sollya with the following
138138
// commands:

libc/src/math/generic/logf16.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ LLVM_LIBC_FUNCTION(float16, logf16, (float16 x)) {
115115
// log(1.mant) = log(f) + log(1.mant / f)
116116
// = log(f) + log(1 + d/f)
117117
// since d/f is sufficiently small.
118-
// We store log(f) and 1/f in the lookup tables LOGF_F and ONE_OVER_F
118+
// We store log(f) and 1/f in the lookup tables LOGF_F and ONE_OVER_F_F
119119
// respectively.
120120

121121
int m = -FPBits::EXP_BIAS;

0 commit comments

Comments
 (0)