[libc-commits] [libc] 3e52096 - [libc][NFC] fix variable name
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Thu Dec 23 10:42:35 PST 2021
Author: Michael Jones
Date: 2021-12-23T10:42:30-08:00
New Revision: 3e52096809eb6d8689f6a8130cd0ee7f80ac4acf
URL: https://github.com/llvm/llvm-project/commit/3e52096809eb6d8689f6a8130cd0ee7f80ac4acf
DIFF: https://github.com/llvm/llvm-project/commit/3e52096809eb6d8689f6a8130cd0ee7f80ac4acf.diff
LOG: [libc][NFC] fix variable name
A variable was named in a way that doesn't match the format. This patch
renames it to match the format.
Differential Revision: https://reviews.llvm.org/D116228
Added:
Modified:
libc/src/math/generic/logf.cpp
Removed:
################################################################################
diff --git a/libc/src/math/generic/logf.cpp b/libc/src/math/generic/logf.cpp
index 523045ffa684..e85c030a02ec 100644
--- a/libc/src/math/generic/logf.cpp
+++ b/libc/src/math/generic/logf.cpp
@@ -167,20 +167,20 @@ LLVM_LIBC_FUNCTION(float, logf, (float x)) {
m += xbits.get_exponent();
// Set bits to 1.m
xbits.set_unbiased_exponent(0x7F);
- int fIndex = xbits.get_mantissa() >> 16;
+ int f_index = xbits.get_mantissa() >> 16;
FPBits f(xbits.val);
f.bits &= ~0x0000'FFFF;
double d = static_cast<float>(xbits) - static_cast<float>(f);
- d *= ONE_OVER_F[fIndex];
+ d *= ONE_OVER_F[f_index];
double r = __llvm_libc::fputil::polyeval(
d, 0x1.0000000008169p+0, -0x1.0000004f78405p-1, 0x1.555654d2bc769p-2,
-0x1.00a570d090322p-2, 0x1.e158d823f89cap-3);
double extra_factor =
- __llvm_libc::fputil::fma(static_cast<double>(m), LOG_2, LOG_F[fIndex]);
+ __llvm_libc::fputil::fma(static_cast<double>(m), LOG_2, LOG_F[f_index]);
switch (FPBits(x).uintval()) {
case 0x3f80d19f:
return 0x1.a1e82cp-8f;
More information about the libc-commits
mailing list