openbsd-ports/math/octave/patches/patch-src_sysdep_cc

17 lines
498 B
Plaintext

$OpenBSD: patch-src_sysdep_cc,v 1.2 2004/06/07 14:43:39 naddy Exp $
--- src/sysdep.cc.orig 1999-10-21 09:04:08.000000000 +0200
+++ src/sysdep.cc 2004-06-05 21:08:03.000000000 +0200
@@ -110,8 +110,12 @@ BSD_init (void)
{
#if defined (HAVE_FLOATINGPOINT_H)
// Disable trapping on common exceptions.
+#if defined(__alpha__)
+ fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_UFL|FP_X_IMP));
+#else
fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_DNML|FP_X_UFL|FP_X_IMP));
#endif
+#endif
}
#endif