This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] improves exp() and expf() performance on Sparc.
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: Patrick McGehearty <patrick dot mcgehearty at oracle dot com>, libc-alpha at sourceware dot org
- Cc: nd at arm dot com
- Date: Mon, 04 Sep 2017 12:43:35 +0100
- Subject: Re: [PATCH] improves exp() and expf() performance on Sparc.
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs dot Nagy at arm dot com;
- Nodisclaimer: True
- References: <1504306749-46787-1-git-send-email-patrick.mcgehearty@oracle.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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.