bfbe0c1c5b
GNU Octave is a high-level language, primarily intended for numerical computations. It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. It may also be used as a batch-oriented language.
22 lines
786 B
Plaintext
22 lines
786 B
Plaintext
$OpenBSD: patch-liboctave_lo-ieee_cc,v 1.1.1.1 2001/07/15 18:07:16 naddy Exp $
|
|
--- liboctave/lo-ieee.cc.orig Tue Jan 25 22:21:04 2000
|
|
+++ liboctave/lo-ieee.cc Fri Jul 13 00:23:01 2001
|
|
@@ -64,7 +64,7 @@ octave_ieee_init (void)
|
|
#if defined (SCO)
|
|
double tmp = 1.0;
|
|
octave_Inf = 1.0 / (tmp - tmp);
|
|
-#elif defined (__alpha__) && ! defined (linux)
|
|
+#elif defined (__alpha__) && ! defined (linux) && ! defined (__OpenBSD__)
|
|
extern unsigned int DINFINITY[2];
|
|
octave_Inf = (*((double *) (DINFINITY)));
|
|
#else
|
|
@@ -83,7 +83,7 @@ octave_ieee_init (void)
|
|
|
|
#if defined (HAVE_ISNAN)
|
|
|
|
-#if defined (__alpha__) && ! defined (linux)
|
|
+#if defined (__alpha__) && ! defined (linux) && ! defined (__OpenBSD__)
|
|
extern unsigned int DQNAN[2];
|
|
octave_NaN = (*((double *) (DQNAN)));
|
|
#else
|