[PATCH][4.3] Expand lround inline for x86_64/i?86 SSE math

Geert Bosch bosch@adacore.com
Wed Oct 18 16:57:00 GMT 2006


On Oct 18, 2006, at 12:10, Andrew Haley wrote:
> Geert Bosch writes:
>>
>> For case of round-to-even and operations that are strictly
>> IEEE-conformant, you can do replace the 0.5 constant by its
>> predecessor (which I gave in my previous mail) and the rounding of
>> the addition will ensure right answers in all cases.
>
> Mmm, but hold on: lround is explicitly _not_ round-to-even.

Understood, I'm talking about the hardware doing round to even.

   -Geert



More information about the Gcc-patches mailing list