[PATCH] Some sparc{,v9,64} glibc fixes

Andreas Jaeger aj@suse.de
Thu Dec 16 20:04:00 GMT 2004


Jakub Jelinek <jakub@redhat.com> writes:

> Hi!
>
> I have done 3 sparc builds this morning and this is the result of that.
>
> BTW, Andreas, can you please recompute:
> Failure: Test: atan2 (-0.00756827042671106339, -.001792735857538728036) == -1.80338464113663849327153994380
> Result:
>  is:         -1.80338464113663849327e+00  -0x1.cdaa9da7ca620c5349dcp+0
>  should be:  -1.80338464113663849327e+00  -0x1.cdaa9da7ca620c5349dcp+0
>  difference:  3.60900012278724126504e-30   0x1.24cc0000000000000000p-98
>  ulp       :  18739.0000
>  max.ulp   :  0.0000
> with additional precision?  This is something I haven't included in
> libm-test-ulps patch, as that is not atan2 ldbl-128 bug, but testcase.
> 30 digits aren't enough, all other numbers have at least 36.  Thanks.

the result with 36 digits is:
-1.80338464113663849327153994379639112

Ok to commit?

Andreas

2004-12-16  Andreas Jaeger  <aj@suse.de>

	* math/libm-test.inc (atan2_test): Compute value with 36 digits.



============================================================
Index: math/libm-test.inc
--- math/libm-test.inc	21 Nov 2004 19:55:57 -0000	1.63
+++ math/libm-test.inc	16 Dec 2004 18:46:59 -0000
@@ -943,7 +943,7 @@ atan2_test (void)
   TEST_ff_f (atan2, 0.390625L, .00029L, 1.57005392693128974780151246612928941L);
   TEST_ff_f (atan2, 1.390625L, 0.9296875L, 0.981498387184244311516296577615519772L);
 
-  TEST_ff_f (atan2, -0.00756827042671106339L, -.001792735857538728036L, -1.80338464113663849327153994380L);
+  TEST_ff_f (atan2, -0.00756827042671106339L, -.001792735857538728036L, -1.80338464113663849327153994379639112L);
 
   END (atan2);
 }

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20041216/4200e99c/attachment.sig>


More information about the Libc-hacker mailing list