about summary refs log tree commit diff
path: root/sysdeps/x86/fpu/test-fenv-x87.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-12-20 14:37:26 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-12-21 08:56:12 -0800
commitd3e4f5a1014db09ff1c62c6506f92cba469e193d (patch)
tree9015d06eab7d2ebb2180b716bad1ca0aa9f6905b /sysdeps/x86/fpu/test-fenv-x87.c
parente0fc721ce600038dd390e77cfe52440707ef574d (diff)
downloadglibc-d3e4f5a1014db09ff1c62c6506f92cba469e193d.tar.gz
glibc-d3e4f5a1014db09ff1c62c6506f92cba469e193d.tar.xz
glibc-d3e4f5a1014db09ff1c62c6506f92cba469e193d.zip
s_sincosf.h: Change pio4 type to float [BZ #28713]
s_cosf.c and s_sinf.c have

  if (abstop12 (y) < abstop12 (pio4))

where abstop12 takes a float argument, but pio4 is static const double.
pio4 is used only in calls to abstop12 and never in arithmetic.  Apply

-static const double pio4 = 0x1.921FB54442D18p-1;
+static const float pio4 = 0x1.921FB6p-1f;

to fix:

FAIL: math/test-float-cos
FAIL: math/test-float-sin
FAIL: math/test-float-sincos
FAIL: math/test-float32-cos
FAIL: math/test-float32-sin
FAIL: math/test-float32-sincos

when compiling with GCC 12.

Reviewed-by: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Diffstat (limited to 'sysdeps/x86/fpu/test-fenv-x87.c')
0 files changed, 0 insertions, 0 deletions