From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16201 invoked by alias); 6 Sep 2017 20:31:18 -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 13787 invoked by uid 89); 6 Sep 2017 20:31:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*u:6.3, H*UA:6.3, H*M:48c0 X-HELO: userp1040.oracle.com Subject: Re: [PATCH] improves exp() and expf() performance on Sparc. To: libc-alpha@sourceware.org References: <1504306749-46787-1-git-send-email-patrick.mcgehearty@oracle.com> <59AD3C67.3070203@arm.com> From: Patrick McGehearty Message-ID: Date: Wed, 06 Sep 2017 20:31:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <59AD3C67.3070203@arm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-09/txt/msg00274.txt.bz2 On 9/4/2017 6:43 AM, Szabolcs Nagy wrote: > On 01/09/17 23:59, Patrick McGehearty wrote: >> --- /dev/null >> +++ b/sysdeps/sparc/fpu/libm_endian.h > is this header useful? > >> +#define XBIASED_EXP(x) ((((int *)&x)[HIXWORD] & 0x7fffffff) >> 16) >> +#define ISZEROL(x) (((((int *)&x)[0] & ~XSGNMSK) | ((int *)&x)[1] | \ >> + ((int *)&x)[2] | ((int *)&x)[3]) == 0) > i don't see these used and such aliasing violation > is not acceptable anyway. > These definitions are not used in the new exp routines. I will remove them from my next submission as well as HIXWORD and XSGNMSK. If later porting of other math routines suggests they might be useful, we can discuss what to do at that time. - patrick