glibc/sysdeps/ieee754
H.J. Lu c5c666f349 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>
(cherry picked from commit d3e4f5a101)
2023-01-11 15:29:37 +01:00
..
dbl-64 Use GCC builtins for roundeven functions if desired. 2021-06-27 07:56:57 -07:00
float128 Use GCC builtins for roundeven functions if desired. 2021-06-27 07:56:57 -07:00
flt-32 s_sincosf.h: Change pio4 type to float [BZ #28713] 2023-01-11 15:29:37 +01:00
ldbl-64-128 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ldbl-96 math: redirect roundeven function 2021-06-27 07:56:57 -07:00
ldbl-128 Use GCC builtins for roundeven functions if desired. 2021-06-27 07:56:57 -07:00
ldbl-128ibm Update math: redirect roundeven function 2021-06-27 07:56:57 -07:00
ldbl-128ibm-compat stdio-common: Remove _IO_vfwscanf 2021-06-01 16:00:52 +02:00
ldbl-opt configure: Replaced obsolete AC_TRY_COMPILE 2021-06-04 10:16:00 -03:00
soft-fp Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ieee754.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
k_standard.c Use copysign functions not __copysign functions in glibc libm. 2018-09-27 20:04:48 +00:00
k_standardf.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
k_standardl.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-alias-finite.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Avoid -Wno-write-strings for k_standard.c. 2015-02-26 22:50:54 +00:00
s_lib_version.c Simplify math-svid-compat code. 2017-08-28 15:19:52 +00:00
s_matherr.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
s_signgam.c Remove unnecessary math_private.h includes. 2018-09-28 21:53:33 +00:00