From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46093 invoked by alias); 22 Mar 2018 22:13:51 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 46081 invoked by uid 89); 22 Mar 2018 22:13:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=billion, million X-HELO: relay1.mentorg.com Date: Thu, 22 Mar 2018 22:13:00 -0000 From: Joseph Myers To: Wilco Dijkstra CC: "libc-alpha@sourceware.org" , nd Subject: Re: [PATCH 1/7] sin/cos slow paths: avoid slow paths for small inputs In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-SW-Source: 2018-03/txt/msg00522.txt.bz2 On Wed, 21 Mar 2018, Wilco Dijkstra wrote: > This series of patches removes the slow patchs from sin, cos and sincos. > Besides greatly simplifying the implementation, the new version is also much > faster for inputs up to PI (41% faster) and for large inputs needing range > reduction (27% faster). > > ULP is ~0.55 with no errors found after testing 1.6 billion inputs across most > of the range with mpsin and mpcos. The number of incorrectly rounded results > (ie. ULP >0.5) is at most ~2750 per million inputs between 0.125 and 0.5, > the average is ~850 per million between 0 and PI. > > Tested on AArch64 and x86_64 with no regressions. > > The first patch removes the slow paths for the cases where the input is small > and doesn't require range reduction. Update ULP tables for sin, cos and sincos > on AArch64 and x86_64. OK. -- Joseph S. Myers joseph@codesourcery.com