This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Re: Many new math failures


On Sun, Jun 30, 2002 at 08:48:42AM -0700, Ulrich Drepper wrote:
> On Sun, 2002-06-30 at 04:34, Stephen L Moshier wrote:
> 
> > I don't see a large error in this case.
> > Do you need to put 'L' after the the compiled constant
> > BUILD_COMPLEX (0.667... here?
> 
> Correct. I've made the change.  Thanks,

Some other places need fixing too:

2002-07-01  Jakub Jelinek  <jakub@redhat.com>

	* math/libm-test.inc (acos_test): Add missing L suffix for
	expected result.
	(cpow_test): Likewise.
	* sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
	error for acos (0.0625).

--- libc/math/libm-test.inc.jj	Mon Jul  1 12:32:05 2002
+++ libc/math/libm-test.inc	Mon Jul  1 14:39:11 2002
@@ -735,7 +735,7 @@ acos_test (void)
   TEST_f_f (acos, -0.5, M_PI_6l*4.0);
   TEST_f_f (acos, 0.75L, 0.722734247813415611178377352641333362L);
   TEST_f_f (acos, 2e-17L, 1.57079632679489659923132169163975144L);
-  TEST_f_f (acos, 0.0625L, 1.50825556499840522843072005474337068);
+  TEST_f_f (acos, 0.0625L, 1.50825556499840522843072005474337068L);
   END (acos);
 }
 
@@ -1959,10 +1959,10 @@ cpow_test (void)
 
   TEST_cc_c (cpow, nan_value, nan_value, nan_value, nan_value, nan_value, nan_value);
 
-  TEST_cc_c (cpow, 0.75L, 1.25L, 0.75L, 1.25L, 0.117506293914473555420279832210420483, 0.346552747708338676483025352060418001L);
-  TEST_cc_c (cpow, 0.75L, 1.25L, 1.0L, 1.0L, 0.0846958290317209430433805274189191353, 0.513285749182902449043287190519090481L);
+  TEST_cc_c (cpow, 0.75L, 1.25L, 0.75L, 1.25L, 0.117506293914473555420279832210420483L, 0.346552747708338676483025352060418001L);
+  TEST_cc_c (cpow, 0.75L, 1.25L, 1.0L, 1.0L, 0.0846958290317209430433805274189191353L, 0.513285749182902449043287190519090481L);
   TEST_cc_c (cpow, 0.75L, 1.25L, 1.0L, 0.0L, 0.75L, 1.25L);
-  TEST_cc_c (cpow, 0.75L, 1.25L, 0.0L, 1.0L, 0.331825439177608832276067945276730566, 0.131338600281188544930936345230903032L);
+  TEST_cc_c (cpow, 0.75L, 1.25L, 0.0L, 1.0L, 0.331825439177608832276067945276730566L, 0.131338600281188544930936345230903032L);
 
   END (cpow, complex);
 }
--- libc/sysdeps/i386/fpu/libm-test-ulps.jj	Mon Jul  1 12:32:27 2002
+++ libc/sysdeps/i386/fpu/libm-test-ulps	Mon Jul  1 14:56:40 2002
@@ -1,9 +1,6 @@
 # Begin of automatic generation
 
 # acos
-Test "acos (0.0625) == 1.50825556499840522843072005474337068":
-ildouble: 622
-ldouble: 622
 Test "acos (0.75) == 0.722734247813415611178377352641333362":
 ildouble: 1
 ldouble: 1
@@ -284,16 +281,16 @@ ildouble: 1
 Test "Real part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i":
 float: 1
 ifloat: 1
-ildouble: 588
-ldouble: 588
+ildouble: 1
+ldouble: 1
 Test "Imaginary part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i":
 ildouble: 1
 ldouble: 1
 Test "Real part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i) == 0.117506293914473555420279832210420483 + 0.346552747708338676483025352060418001 i":
 float: 3
 ifloat: 3
-ildouble: 763
-ldouble: 763
+ildouble: 6
+ldouble: 6
 Test "Imaginary part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i) == 0.117506293914473555420279832210420483 + 0.346552747708338676483025352060418001 i":
 float: 1
 ifloat: 1
@@ -310,8 +307,8 @@ double: 1
 float: 3
 idouble: 1
 ifloat: 3
-ildouble: 370
-ldouble: 370
+ildouble: 3
+ldouble: 3
 Test "Real part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
 double: 1
 float: 4


	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]