Skip to content

Commit 03fc016

Browse files
committed
[libc] Update comments.
1 parent 822f672 commit 03fc016

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/src/math/generic/common_constants.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const double ONE_OVER_F[128] = {
9898
0x1.05197f7d73404p-1, 0x1.0410410410410p-1, 0x1.03091b51f5e1ap-1,
9999
0x1.0204081020408p-1, 0x1.0101010101010p-1};
100100

101-
// Lookup table for (1/f) where f = 1 + n*2^(-7), n = 0..127,
101+
// Lookup table for log(f) = log(1 + n*2^(-7)) where n = 0..127,
102102
// computed and stored as float precision constants.
103103
// Generated by Sollya with the following commands:
104104
// display = hexadecimal;

libc/src/math/generic/explogxf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ LIBC_INLINE static float log_eval_f(float x) {
310310
// p1 * 2^(-7) <= m_x < (p1 + 1) * 2^(-7).
311311
int p1 = static_cast<int>(xbits.get_mantissa() >> (FPBits::FRACTION_LEN - 7));
312312

313-
// Set bs to (1 + (mx - p1*2^(-7))
313+
// Set bits to (1 + (mx - p1*2^(-7))
314314
xbits.set_uintval(xbits.uintval() & (FPBits::FRACTION_MASK >> 7));
315315
xbits.set_biased_exponent(FPBits::EXP_BIAS);
316316
// dx = (mx - p1*2^(-7)) / (1 + p1*2^(-7)).

0 commit comments

Comments
 (0)