diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-02-02 16:57:49 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-02-03 09:40:39 -0300 |
| commit | 09e7f4d594b4308fbea18e3044148d67b59757c9 (patch) | |
| tree | aa8473f1cf69e7af6d363542f88e1f65cdd4a3b7 /sysdeps/ieee754 | |
| parent | fc058b46c78f090580c1ca5b785b54ae4092f0c1 (diff) | |
| download | glibc-09e7f4d594b4308fbea18e3044148d67b59757c9.tar.xz glibc-09e7f4d594b4308fbea18e3044148d67b59757c9.zip | |
math: Fix tanf for some inputs (BZ 32630)
The logic was copied wrong from CORE-MATH.
Diffstat (limited to 'sysdeps/ieee754')
| -rw-r--r-- | sysdeps/ieee754/flt-32/s_tanf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/flt-32/s_tanf.c b/sysdeps/ieee754/flt-32/s_tanf.c index dfe56fc2a0..5ee1d6f35e 100644 --- a/sysdeps/ieee754/flt-32/s_tanf.c +++ b/sysdeps/ieee754/flt-32/s_tanf.c @@ -166,7 +166,7 @@ __tanf (float x) uint32_t sgn = t >> 31; for (int j = 0; j < array_length (st); j++) { - if (__glibc_unlikely (asfloat (st[j].arg) == ax)) + if (__glibc_unlikely (asuint (st[j].arg) == ax)) { if (sgn) return -st[j].rh - st[j].rl; |
