about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-03-15 17:23:43 +0100
committerAndreas Jaeger <aj@suse.de>2012-03-15 17:23:43 +0100
commit8c0247db324000ab1281b3091ab4cdfd167a1c52 (patch)
tree41a0d868d3a44258df328aa81e968799991cf02b /math
parent81c64153841a516059ea3c950b9ba20380a90a54 (diff)
downloadglibc-8c0247db324000ab1281b3091ab4cdfd167a1c52.tar.gz
glibc-8c0247db324000ab1281b3091ab4cdfd167a1c52.tar.xz
glibc-8c0247db324000ab1281b3091ab4cdfd167a1c52.zip
[BZ #13852]
	* sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
	ieee754/flt-32 implementation.
	* sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
	* sysdeps/i386/fpu/s_cosf.S: Likewise.
	* sysdeps/i386/fpu/s_sincosf.S: Likewise.
	* sysdeps/i386/fpu/s_sinf.S: Likewise.

	* math/libm-test.inc (cos_test): Enable some large input tests for
	float as well
	(sin_test): Likewise.
	(sincos_test): Likewise.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc24
1 files changed, 18 insertions, 6 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 0337b60d65..760ec6b7ef 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -2112,11 +2112,15 @@ cos_test (void)
 
   TEST_f_f (cos, 0.75L, 0.731688868873820886311838753000084544L);
 
+#ifndef TEST_LDOUBLE
+  /* Enable for long double once x86 and x86-64 implementation is fixed.  */
+  TEST_f_f (cos, 0x1p65, 0.998886220660580136106421721793L);
+  TEST_f_f (cos, -0x1p65, 0.998886220660580136106421721793L);
+#endif
+
 #ifdef TEST_DOUBLE
   TEST_f_f (cos, 0.80190127184058835, 0.69534156199418473);
   TEST_f_f (cos, 1e22, 0.5232147853951389454975944733847);
-  TEST_f_f (cos, 0x1p65, 0.998886220660580136106421721793);
-  TEST_f_f (cos, -0x1p65, 0.998886220660580136106421721793);
   TEST_f_f (cos, 0x1p1023, -0.8263698346141479945007856808117);
 #endif
 
@@ -6391,12 +6395,16 @@ sin_test (void)
   TEST_f_f (sin, -M_PI_2l, -1);
   TEST_f_f (sin, 0.75L, 0.681638760023334166733241952779893935L);
 
+#ifndef TEST_LDOUBLE
+  /* Enable for long double once x86 and x86-64 implementation is fixed.  */
+  TEST_f_f (sin, 0x1p65, -0.0471838762123546738051061498057L);
+  TEST_f_f (sin, -0x1p65, 0.0471838762123546738051061498057L);
+#endif
+
 #ifdef TEST_DOUBLE
   TEST_f_f (sin, 0.80190127184058835, 0.71867942238767868);
   TEST_f_f (sin, 2.522464e-1, 2.4957989804940911e-1);
   TEST_f_f (sin, 1e22, -0.8522008497671888017727058937530);
-  TEST_f_f (sin, 0x1p65, -0.0471838762123546738051061498057);
-  TEST_f_f (sin, -0x1p65, 0.0471838762123546738051061498057);
   TEST_f_f (sin, 0x1p1023, 0.5631277798508840248814522055909);
 #endif
 
@@ -6567,11 +6575,15 @@ sincos_test (void)
   TEST_extra (sincos, M_PI_6l*2.0, 0.86602540378443864676372317075293616L, 0.5);
   TEST_extra (sincos, 0.75L, 0.681638760023334166733241952779893935L, 0.731688868873820886311838753000084544L);
 
+#ifndef TEST_LDOUBLE
+  /* Enable for long double once x86 and x86-64 implementation is fixed.  */
+  TEST_extra (sincos, 0x1p65, -0.0471838762123546738051061498057L, 0.998886220660580136106421721793L);
+  TEST_extra (sincos, -0x1p65, 0.0471838762123546738051061498057L, 0.998886220660580136106421721793L);
+#endif
+
 #ifdef TEST_DOUBLE
   TEST_extra (sincos, 0.80190127184058835, 0.71867942238767868, 0.69534156199418473);
   TEST_extra (sincos, 1e22, -0.8522008497671888017727058937530, 0.5232147853951389454975944733847);
-  TEST_extra (sincos, 0x1p65, -0.0471838762123546738051061498057, 0.998886220660580136106421721793);
-  TEST_extra (sincos, -0x1p65, 0.0471838762123546738051061498057, 0.998886220660580136106421721793);
   TEST_extra (sincos, 0x1p1023, 0.5631277798508840248814522055909, -0.8263698346141479945007856808117);
 #endif