[PATCH 1/3] Optimize trunc() and truncf().

Florian Weimer fweimer@redhat.com
Wed May 25 10:39:00 GMT 2016


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



More information about the Libc-alpha mailing list