Skip to content
  • Raymond Toy's avatar
    Support FP exceptions on NetBSD without feraiseexcept. · c0428524
    Raymond Toy authored
    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.
    c0428524