Skip to content

Commit 0979c7a

Browse files
committed
fix: critical bug where 0x0f was used instead of 0x0.0p0f
Signed-off-by: Krishna Pandey <[email protected]>
1 parent 2ae6254 commit 0979c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/math/generic/log_bf16.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static constexpr float LOGF_2 = 0x1.62e43p-1f;
2626
// > display = hexadecimal;
2727
// > for i from 0 to 127 do print(round(log(1 + i * 2^-7), SG, RN));
2828
static constexpr float LOG_1_PLUS_M[128] = {
29-
0x0f, 0x1.fe02a6p-8f, 0x1.fc0a8cp-7f, 0x1.7b91bp-6f,
29+
0x0.0p0f, 0x1.fe02a6p-8f, 0x1.fc0a8cp-7f, 0x1.7b91bp-6f,
3030
0x1.f829bp-6f, 0x1.39e87cp-5f, 0x1.77459p-5f, 0x1.b42dd8p-5f,
3131
0x1.f0a30cp-5f, 0x1.16536ep-4f, 0x1.341d7ap-4f, 0x1.51b074p-4f,
3232
0x1.6f0d28p-4f, 0x1.8c345ep-4f, 0x1.a926d4p-4f, 0x1.c5e548p-4f,

0 commit comments

Comments
 (0)