Skip to content
Snippets Groups Projects
Commit c0428524 authored by Raymond Toy's avatar Raymond Toy
Browse files

Support FP exceptions on NetBSD without feraiseexcept.

Not quite fully working on NetBSD, but using this approach on Darwin
does the right thing and all the tests pass. (Could these failures be
due to NetBSD not compiling with just sse2 and thus uses x87 for the
operations?)

 * setexception.c:
   * Add support for NetBSD. Instead of using feraiseexcept, try to
     generate the appropriate operations to generate the desired
     exceptions.
 * double-values.c:
   * Helper functions for setexception to return appropriate float
     values. These are in a different file so that the compiler can't
     optimize the values away when used in fdlibm_setexceptions.
 * GNUmakefile:
   * Compue double-values.c everywhere. Should be harmless since only
     NetBSD uses these functions.
parent 9b83625d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment