aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/flt-32
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-01-31 10:34:32 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-01-31 13:05:41 -0300
commit04588633cff835db7d838aa57c3def90d2621b76 (patch)
treef60680886e58df9af1d759619895df459eb1c8d3 /sysdeps/ieee754/flt-32
parentc79277a16785c8ae96d821414f4d31d654a0177c (diff)
downloadglibc-04588633cff835db7d838aa57c3def90d2621b76.tar.xz
glibc-04588633cff835db7d838aa57c3def90d2621b76.zip
math: Fix sinhf for some inputs (BZ 32627)
The logic was copied wrong from CORE-MATH.
Diffstat (limited to 'sysdeps/ieee754/flt-32')
-rw-r--r--sysdeps/ieee754/flt-32/e_sinhf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/flt-32/e_sinhf.c b/sysdeps/ieee754/flt-32/e_sinhf.c
index c007c7d174..dee96fc7cb 100644
--- a/sysdeps/ieee754/flt-32/e_sinhf.c
+++ b/sysdeps/ieee754/flt-32/e_sinhf.c
@@ -83,7 +83,7 @@ __ieee754_sinhf (float x)
{ /* |x| <= 0x1.250bfep-11 */
if (__glibc_unlikely (ux < 0x66000000u)) /* |x| < 0x1p-24 */
return fmaf (x, fabsf (x), x);
- if (__glibc_unlikely (st.uarg == asuint (ux)))
+ if (__glibc_unlikely (st.uarg == ux))
{
float sgn = copysignf (1.0f, x);
return sgn * st.rh + sgn * st.rl;