IEEE floating point routines

Burkhardt, Glenn Glenn.Burkhardt@goodrich.com
Wed Oct 17 15:07:00 GMT 2007


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x87FPUcmds.c
Type: application/octet-stream
Size: 3062 bytes
Desc: x87FPUcmds.c
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20071017/1decbd86/attachment.obj>


More information about the Cygwin-developers mailing list