[PATCH][BZ 4997] Fix erroneous corner cases in PowerPC lround implementations

Ryan S. Arnold rsa@us.ibm.com
Thu Nov 29 20:50:00 GMT 2007


Regarding Bugzilla 4997:

http://sourceware.org/bugzilla/show_bug.cgi?id=4997

The following patch fixes erroneous corner cases in the PowerPC
implementations of lround and llround for generic PowerPC, POWER4,
POWER5 and PowerPC 970.

The POWER5+ and POWER6[x] architectures are not affected by the bug due
to their use of the newly available 'frin' instruction).

I added a few new test cases to libm-test.inc and I've tested the patch
on POWER5, PowerPC 970, and POWER6 with success.

Ryan S. Arnold
IBM Linux Technology Center
Linux Toolchain Development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: powerpc_lround.patch
Type: text/x-patch
Size: 16022 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20071129/2b03e8f8/attachment.bin>


More information about the Libc-alpha mailing list