From patchwork Wed Apr 8 21:14:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 459498 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6AB2F140082 for ; Thu, 9 Apr 2015 07:14:23 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=EbvWDik2; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=FZg21IAKT7jsuusVSNgKGiAIoBO2y OkXpe1GyupD8fJlYA6AyxRGkT1kHtvBG16yRX34Fqf7lOoWUnalKuxRgey+oYMKs aLakEDcnlfmWKPOFG57SjLPROOgVzuP4JJV1X+f27T78tSxhlLTVmUk8H2CJLe1t giriNAtYt2KxWk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=RCvZcG2TQZh4ECECAt+GbLFCILo=; b=Ebv WDik2EButDZkT0lnWJQbFr0k8yGzRYrLXjWuD1zQZuIY9945Bpb9u96xsaEhtGzX 0A6kZiBCbVBKz38kZQSPNO1BdYfVd5QnqPncOgJkemwHg3zbR+UsInHCVvHLyPC+ CBRlJXSzjZrmUz/VeP7TVhSPMKb1hBGp8ad7DEfg= Received: (qmail 72757 invoked by alias); 8 Apr 2015 21:14:17 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 72748 invoked by uid 89); 8 Apr 2015 21:14:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_50, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Wed, 8 Apr 2015 21:14:10 +0000 From: Joseph Myers To: Subject: Add more tests of atanh [committed] Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 This patch adds some randomly-generated tests of atanh that are observed to increase ulps on x86_64. Tested for x86_64 and x86 and ulps updated accordingly. Committed. (auto-libm-test-out diffs omitted below.) 2015-04-08 Joseph Myers * math/auto-libm-test-in: Add more tests of atanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in index 0fa1f97..433742a 100644 --- a/math/auto-libm-test-in +++ b/math/auto-libm-test-in @@ -373,6 +373,8 @@ atanh -0x2.084568p-4 atanh -0x3.e0a5d8p-4 atanh 0x3.dfb1f5db0ceccp-4 atanh 0x2.251b2a64c85dep-4 +atanh -0x2.e3458cp-4 +atanh 0x3.91d9f3c80c72d7acp-4 # Bug 16352: underflow exception may be missing. atanh 0x1p-500 missing-underflow atanh 0x1p-5000 missing-underflow diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps index e3554ed..6a036f5 100644 --- a/sysdeps/i386/fpu/libm-test-ulps +++ b/sysdeps/i386/fpu/libm-test-ulps @@ -135,14 +135,14 @@ ldouble: 1 Function: "atanh": ildouble: 3 -ldouble: 2 +ldouble: 3 Function: "atanh_downward": double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 2 +ildouble: 3 ldouble: 4 Function: "atanh_towardzero": @@ -156,7 +156,7 @@ ldouble: 3 Function: "atanh_upward": idouble: 1 ifloat: 1 -ildouble: 4 +ildouble: 5 ldouble: 4 Function: "cabs": diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps index 33e597a..5d9bc9b 100644 --- a/sysdeps/x86_64/fpu/libm-test-ulps +++ b/sysdeps/x86_64/fpu/libm-test-ulps @@ -190,8 +190,8 @@ double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 2 -ldouble: 2 +ildouble: 3 +ldouble: 3 Function: "atanh_downward": double: 2 @@ -202,9 +202,9 @@ ildouble: 5 ldouble: 5 Function: "atanh_towardzero": -double: 1 +double: 2 float: 2 -idouble: 1 +idouble: 2 ifloat: 2 ildouble: 4 ldouble: 4