public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: "Joseph S. Myers" <joseph@codesourcery.com>
To: libc-ports@sourceware.org
Subject: Remove sqrt ulps for MIPS
Date: Thu, 31 May 2012 21:31:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.64.1205312128590.19630@digraph.polyomino.org.uk> (raw)

Now that M_SQRT2l has been adjusted so it rounds to 113 bits to the same 
value as the exact square root of 2 does, I've applied this patch to the 
MIPS libm-test-ulps to remove ulps for sqrt.  The same should be done for 
alpha (and in libc, sparc and s390).  If you find ulps for sqrt appearing 
when you regenerate ulps, they should be investigated further since sqrt 
is meant always to give a correctly rounded result.

diff --git a/ChangeLog.mips b/ChangeLog.mips
index 54e1f26..f72dc4e 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,5 +1,7 @@
 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
 
+	* sysdeps/mips/mips64/libm-test-ulps: Remove sqrt ulps.
+
 	* sysdeps/mips/mips32/libm-test-ulps: Regenerate.
 	* sysdeps/mips/mips64/libm-test-ulps: Likewise.
 
diff --git a/sysdeps/mips/mips64/libm-test-ulps b/sysdeps/mips/mips64/libm-test-ulps
index c21b077..bc9464e 100644
--- a/sysdeps/mips/mips64/libm-test-ulps
+++ b/sysdeps/mips/mips64/libm-test-ulps
@@ -1932,11 +1932,6 @@ Test "sinh_towardzero (24) == 13244561064.92173614705070540368454568168":
 float: 1
 ifloat: 1
 
-# sqrt
-Test "sqrt (2) == M_SQRT2l":
-ildouble: 1
-ldouble: 1
-
 # tan_downward
 Test "tan_downward (1) == 1.5574077246549022305069748074583601730873":
 float: 1
@@ -2680,10 +2675,6 @@ Function: "sinh_towardzero":
 float: 1
 ifloat: 1
 
-Function: "sqrt":
-ildouble: 1
-ldouble: 1
-
 Function: "tan":
 double: 1
 idouble: 1

-- 
Joseph S. Myers
joseph@codesourcery.com

                 reply	other threads:[~2012-05-31 21:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.1205312128590.19630@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=libc-ports@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).