This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/6411] PowerPC: Extend fpu fenv operations to operate on 64-bit FPSCR


------- Additional Comments From rsa at us dot ibm dot com  2008-08-21 17:20 -------
Created an attachment (id=2917)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2917&action=view)
Implements dynamic check for hwcap decimal feature to preserve the ABI.

The attached patch implements a dynamic check for PPC_FEATURE_HAS_DFP in the
_[GS]ET_FPUCW macros and only if it finds it will it operate on the 64-bit
FPSCR.

This method necessitates that some of the hwcap information be exposed.  When
libc is loaded it will query the hwcap for the dfp feature bit and set an
exported variable.  Users who include fpu_control and use _[GS]ET_FPUCW will
have these macros inlined into their code and will therefore reference the libc
provided symbol.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #2893 is|0                           |1
           obsolete|                            |
Attachment #2909 is|0                           |1
           obsolete|                            |


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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