This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: rint/nearbyint long-double
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.