Skip to content

Commit 9450748

Browse files
committed
Rename ONE_OVER_F to ONE_OVER_F_F
1 parent 3d279ee commit 9450748

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/src/math/generic/expxf16.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ constexpr cpp::array<float, 32> LOGF_F = {
305305
// Generated by Sollya with the following commands:
306306
// > display = hexadecimal;
307307
// > for i from 0 to 31 do print(round(1 / (1 + i * 2^-5), SG, RN));
308-
constexpr cpp::array<float, 32> ONE_OVER_F = {
308+
constexpr cpp::array<float, 32> ONE_OVER_F_F = {
309309
0x1p+0f, 0x1.f07c2p-1f, 0x1.e1e1e2p-1f, 0x1.d41d42p-1f,
310310
0x1.c71c72p-1f, 0x1.bacf92p-1f, 0x1.af286cp-1f, 0x1.a41a42p-1f,
311311
0x1.99999ap-1f, 0x1.8f9c18p-1f, 0x1.861862p-1f, 0x1.7d05f4p-1f,

libc/src/math/generic/logf16.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ LLVM_LIBC_FUNCTION(float16, logf16, (float16 x)) {
139139
x_bits.set_biased_exponent(FPBits::EXP_BIAS);
140140
float mant_f = x_bits.get_val();
141141
// v = 1.mant * 1/f - 1 = d/f
142-
float v = fputil::multiply_add(mant_f, ONE_OVER_F[f], -1.0f);
142+
float v = fputil::multiply_add(mant_f, ONE_OVER_F_F[f], -1.0f);
143143

144144
// Degree-3 minimax polynomial generated by Sollya with the following
145145
// commands:

0 commit comments

Comments
 (0)