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]

[PATCH] atan2_test


On Tue, Apr 17, 2001 at 12:00:25PM -0700, Ulrich Drepper wrote:
> Jakub Jelinek <jakub@redhat.com> writes:
> 
> > e_logl.c was not raising exceptions as it should, plus a bunch of constants
> > were not precise enough (I've computed only those needed for sparc64 make
> > check to succeed in the math subdir).
> 
> Thanks, I've checked in the patch.  But you'll have a bit more work to
> do since we have a few more tests for atan2 which have to be
> converted.

Here they are:

--- libc/math/libm-test.inc.jj	Tue Apr 17 23:57:15 2001
+++ libc/math/libm-test.inc	Wed Apr 18 00:17:22 2001
@@ -920,10 +920,10 @@ atan2_test (void)
 
   TEST_ff_f (atan2, 0.7L, 1, 0.61072596438920861654375887649023613L);
   TEST_ff_f (atan2, -0.7L, 1.0L, -0.61072596438920861654375887649023613L);
-  TEST_ff_f (atan2, 0.7L, -1.0L, 2.5308666892005846219L);
-  TEST_ff_f (atan2, -0.7L, -1.0L, -2.5308666892005846219L);
+  TEST_ff_f (atan2, 0.7L, -1.0L, 2.530866689200584621918884506789267L);
+  TEST_ff_f (atan2, -0.7L, -1.0L, -2.530866689200584621918884506789267L);
   TEST_ff_f (atan2, 0.4L, 0.0003L, 1.5700463269355215717704032607580829L);
-  TEST_ff_f (atan2, 1.4L, -0.93L, 2.1571487668237843755L);
+  TEST_ff_f (atan2, 1.4L, -0.93L, 2.1571487668237843754887415992772736L);
 
   END (atan2);
 }

	Jakub


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