This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: gsl 0.8 compile error
- To: gsl-discuss at sources dot redhat dot com
- Subject: Re: gsl 0.8 compile error
- From: Jason Beegan <jtb at netbsd dot org>
- Date: Tue, 26 Jun 2001 10:36:15 +0000
Sorry, there was a stray #else in the included diff. Here is a fixed diff.
--- fp-netbsd.c~ Tue Jun 26 10:34:25 2001
+++ fp-netbsd.c Tue Jun 26 10:32:07 2001
@@ -18,7 +18,6 @@
*/
#include <ieeefp.h>
-#include <sys/param.h>
#include <gsl/gsl_ieee_utils.h>
#include <gsl/gsl_errno.h>
@@ -68,12 +67,11 @@
}
/* Turn on all available exceptions apart from 'inexact'.
- Denormalized operand exception not available on all ports. */
+ Denormalized operand exception not available on all platforms. */
-#ifdef FP_X_DNML
- mode = FP_X_INV | FP_X_DNML | FP_X_DZ | FP_X_OFL | FP_X_UFL;
-#else
mode = FP_X_INV | FP_X_DZ | FP_X_OFL | FP_X_UFL;
+#ifdef FP_X_DNML
+ mode = mode | FP_X_DNML
#endif
if (exception_mask & GSL_IEEE_MASK_INVALID)
@@ -83,7 +81,7 @@
#ifdef FP_X_DNML
mode &= ~ FP_X_DNML;
#else
- GSL_ERROR ("netbsd-" MACHINE " does not support the denormalized operand exception. "
+ GSL_ERROR ("NetBSD does not support the denormalized operand exception on this platform. "
"Use 'mask-denormalized' to work around this.",
GSL_EUNSUP);
#endif