[Mesa-dev] [PATCH 5/8] PowerPC: clear Altivec NJ bit

Adhemerval Zanella azanella at linux.vnet.ibm.com
Thu Nov 22 12:34:58 PST 2012


Mostly PowerPC system sets the Altivec NJ bit to 1 so denormal number
are handled as 0. Initially it was a performance configuration, since
denormal handling tended to be costly. However it is not the case on
more recent PowerPC chips (POWER6 and onwards).

This patch enforces the clear of NJ bit in VSCR Altivec register so
denormal numbers are handles as expected by IEEE standards
(more information on PowerISA 2.06 - Section 6.3). This make the
half-float to float transformation and some rounding work correctly
on an Altivec enabled machine.

Any tips, advices, comments?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-PowerPC-clear-Altivec-NJ-bit.patch
Type: text/x-patch
Size: 1447 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121122/4dd4872e/attachment.bin>


More information about the mesa-dev mailing list