summaryrefslogtreecommitdiff
path: root/math/scilab/files/patch-ai
blob: e166faf57a461c687033ee2d4abf5e57eb04c5c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- ./routines/default/scimem.c.orig	Mon Jul 20 07:50:29 1998
+++ ./routines/default/scimem.c	Sat Aug  8 13:13:30 1998
@@ -8,6 +8,25 @@
 #endif
 
-
 #include "../machine.h"
+
+#if defined(netbsd)
+#include <ieeefp.h>
+#endif
+
+#if defined(freebsd)
+#include <floatingpoint.h>
+#endif
+
+#if (defined(netbsd) || defined(freebsd))&& !defined(__alpha__)
+void C2F(nofpex)()
+{
+  fpsetmask(0);   /* Don't dump core on FPE return Inf or NaN */
+}
+#else
+void C2F(nofpex)()
+{
+  return;
+}
+#endif
 
 char *the_p=NULL;