This is the mail archive of the cygwin-developers mailing list for the Cygwin 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] |
I recommend that the standard Cygwin DLL include the standard routines that query/control the FPU, such as fpsetmask() fpsetround() fpsetsticky() These are available as a package at http://www.macaulay.ac.uk/fearlus/floating-point/download.html I've made a modification to use inline assembly instructions for the control/status register access (attached). I find these routines to be useful. I'm not sure why they're not in libc, but are defined in ieeefp.h.
Attachment:
x87FPUcmds.c
Description: x87FPUcmds.c
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |