rint/nearbyint long-double

David Miller davem@davemloft.net
Mon Feb 27 22:40:00 GMT 2012


From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Mon, 27 Feb 2012 22:33:41 +0000 (UTC)

> On Mon, 27 Feb 2012, David Miller wrote:
> 
>>  	if(j0<48) {
> [...]
>>  	} else if (j0>111) {
> 
> the code would look simpler (and more similar to the float case) if 
> written with "j0 < 112" (i.e. the value might not already be an integer) 
> for the first conditional and just "else" for the second (the case where 
> if finite it's so large it's already an integer).

I'll commit the fix with this change after I test it out, thanks Joseph.



More information about the Libc-alpha mailing list