This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/3] Optimize trunc() and truncf().
- From: Florian Weimer <fweimer at redhat dot com>
- To: Matt Turner <mattst88 at gmail dot com>, libc-alpha at sourceware dot org
- Cc: Joseph Myers <joseph at codesourcery dot com>
- Date: Wed, 25 May 2016 11:02:07 +0200
- Subject: Re: [PATCH 1/3] Optimize trunc() and truncf().
- Authentication-results: sourceware.org; auth=none
- References: <1464139950-31943-1-git-send-email-mattst88 at gmail dot com>
On 05/25/2016 03:32 AM, Matt Turner wrote:
> + int64_t exp = (i0 >> 52) & 0x7ff;
> + int64_t mask = UINT64_C(-1) << max(52 - (exp - 1023), 0);
I think it will help GCC if you make exp an int and change the max
function accordingly.
You should use spaces in front of the parenthesis in a function call,
and also for most macro calls.
Thanks,
Florian