From patchwork Wed Apr 8 21:00:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 459494 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 E6AA11401E7 for ; Thu, 9 Apr 2015 07:00:45 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=WJEwmh+O; 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=lBwTlkPiUQnfkgUmB1ehXm1gwv7gf RAKeKm5kvdKVlraQ7D3Tz3qZkTYiQV3582DxrG9kzzXby2aXRBhu4UPhdNffqwhQ 9oxf+B060PmC+yDogPGlx3uf1PezRSBwaZswDAfeSD82IbvH8jDQmo+t+u45DfeW uEfxZfcNVmOfRs= 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=Wlbna5a/EHQ0WX+Ek205THNrpr0=; b=WJE wmh+O0V6ni6sD+gG2tsh0h5ZFptZAmSzqTz4SDeIXnuqhKyzTLCTDh6aAwWjnb72 t3/ABCx8s4wlEvpj6ZDaBqlgEi76RyrahCSAUxsn3dlz5yHzUSw9RvA0mGziKCU0 wLjzwaSY606WN7Z021Jn20DkxY3AlP8M3zly4wlY= Received: (qmail 55684 invoked by alias); 8 Apr 2015 21:00:39 -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 55672 invoked by uid 89); 8 Apr 2015 21:00:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_20, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Wed, 8 Apr 2015 21:00:31 +0000 From: Joseph Myers To: Subject: Add more tests of atan [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 atan 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 atan. * 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 9cf1f58..0fa1f97 100644 --- a/math/auto-libm-test-in +++ b/math/auto-libm-test-in @@ -242,6 +242,9 @@ atan 0x1p-600 atan 0x1p-10000 atan -0x3.b02d84p-4 atan -0x3.3fb708p-4 +atan -0x2.3249ap+0 +atan -0x1.363f46p+0 +atan -0x1.ad4c0ap+0 atan min atan -min atan min_subnorm diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps index 924abc9..e3554ed 100644 --- a/sysdeps/i386/fpu/libm-test-ulps +++ b/sysdeps/i386/fpu/libm-test-ulps @@ -77,6 +77,10 @@ ifloat: 1 ildouble: 5 ldouble: 4 +Function: "atan": +ildouble: 1 +ldouble: 1 + Function: "atan2": ildouble: 1 ldouble: 1 diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps index deac26f..33e597a 100644 --- a/sysdeps/x86_64/fpu/libm-test-ulps +++ b/sysdeps/x86_64/fpu/libm-test-ulps @@ -125,6 +125,12 @@ ifloat: 3 ildouble: 4 ldouble: 4 +Function: "atan": +float: 1 +ifloat: 1 +ildouble: 1 +ldouble: 1 + Function: "atan2": float: 1 ifloat: 1 @@ -173,9 +179,9 @@ ldouble: 1 Function: "atan_upward": double: 1 -float: 1 +float: 2 idouble: 1 -ifloat: 1 +ifloat: 2 ildouble: 1 ldouble: 1