On 08/03/11 2:50 PM, Matthew Dempsky wrote:
The diff below adds support for C99's<fenv.h> to libm. It's based on
NetBSD's implementation with minimal changes to work on OpenBSD.
Currently, the diff only supports amd64, i386, and sparc64 (the only
arches that NetBSD supports fenv.h on), but I've only tested on amd64
so far. Using this diff, I was able to successfully build and run
OpenSCAD.
I'd appreciate some feedback on what still needs to be done before
committing this. I'm unsure what to do about NetBSD's _DIAGASSERTs,
and I suspect the man pages might need some cleanups, but maybe those
can be further fixed up in tree?
Thoughts? I'd particularly appreciate test reports on i386 and
sparc64.
2 things I noticed right away...
You should be using __sparc64__ instead of __sparc__ and _NETBSD_SOURCE
should be replaced with __BSD_VISIBLE.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.