This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]