- Subject: Re: slang 1.3.10 available
- From: "John E. Davis" <davis>
- Date: Sun, 14 Nov 1999 20:08:42 -0500
Ismael Cordeiro <ismael@xxxxxxxxxxxx> wrote:
>I really don't know. It's not my system it's my ISP's. If you tell me how I
>can check it or I can ask the sysadmin.
Try this patch to slang/src/test/sltest.c. It should disable floating
point exceptions on your system:
--- sltest.c~ Sun Nov 14 15:22:22 1999
+++ sltest.c Sun Nov 14 20:06:23 1999
@@ -1,5 +1,11 @@
#include <stdio.h>
#include <slang.h>
+#include <math.h>
+
+#if defined(__FreeBSD__) || defined(__386BSD__)
+# include <floatingpoint.h>
+# define HAVE_FPSETMASK 1
+#endif
static void c_exit (int *code)
{
@@ -29,6 +35,10 @@
if (-1 == SLang_set_argc_argv (argc, argv))
return 1;
+
+#ifdef HAVE_FPSETMASK
+ fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_DNML|FP_X_UFL|FP_X_IMP));
+#endif
if (-1 == SLang_load_file (argv[1]))
return 1;
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis Cambridge, MA 02139-4307
[1999 date index]
[1999 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]