public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] math: Fix log10f on some ABIs
@ 2024-11-07 11:22 Adhemerval Zanella
0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2024-11-07 11:22 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=12b8dd77182420917a8efdaca03a5e3d77a127f5
commit 12b8dd77182420917a8efdaca03a5e3d77a127f5
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Nov 7 07:51:27 2024 -0300
math: Fix log10f on some ABIs
The commit 9247f53219 triggered some regressions on loongarch and
riscv:
math/test-float-log10
math/test-float32-log10
And it is due a wrong sync with CORE-MATH for special 0.0/-0.0
inputs.
Checked on aarch64-linux-gnu and loongarch64-linux-gnu-lp64d.
Diff:
---
sysdeps/ieee754/flt-32/e_log10f.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sysdeps/ieee754/flt-32/e_log10f.c b/sysdeps/ieee754/flt-32/e_log10f.c
index 058ce31f09..03d9e281f3 100644
--- a/sysdeps/ieee754/flt-32/e_log10f.c
+++ b/sysdeps/ieee754/flt-32/e_log10f.c
@@ -37,9 +37,8 @@ as_special (float x)
return x; /* +inf */
uint32_t ax = ux << 1;
if (ax == 0u)
- { /* -0.0 */
- __math_divzerof (1);
- }
+ /* -0.0 */
+ return __math_divzerof (1);
if (ax > 0xff000000u)
return x + x; /* nan */
return __math_invalidf (x);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-07 11:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-07 11:22 [glibc] math: Fix log10f on some ABIs Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).