Mercurial > hg > octave-terminal
changeset 4164:67ef87a80c49
[project @ 2002-11-11 18:10:44 by jwe]
author | jwe |
---|---|
date | Mon, 11 Nov 2002 18:10:44 +0000 |
parents | 811ec5317aeb |
children | e05de825dbd6 |
files | liboctave/ChangeLog liboctave/lo-ieee.cc src/ChangeLog src/sysdep.cc |
diffstat | 4 files changed, 14 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2002-11-11 John W. Eaton <jwe@bevo.che.wisc.edu> + + * lo-ieee.cc (octave_ieee_init): Check defined (__osf__) instead + of ! defined (linux). + 2002-11-09 Per Persson <persquare@mac.com> * oct-shlib.cc (octave_dyld_shlib): New class.
--- a/liboctave/lo-ieee.cc +++ b/liboctave/lo-ieee.cc @@ -53,13 +53,10 @@ { #if defined (HAVE_ISINF) || defined (HAVE_FINITE) -// Some version of gcc on some old version of Linux used to crash when -// trying to make Inf and NaN. - #if defined (SCO) double tmp = 1.0; octave_Inf = 1.0 / (tmp - tmp); -#elif defined (__alpha__) && ! defined (linux) +#elif defined (__alpha__) && defined (__osf__) extern unsigned int DINFINITY[2]; octave_Inf = (*(X_CAST(double *, DINFINITY))); #else @@ -78,7 +75,7 @@ #if defined (HAVE_ISNAN) -#if defined (__alpha__) && ! defined (linux) +#if defined (__alpha__) && defined (__osf__) extern unsigned int DQNAN[2]; octave_NaN = (*(X_CAST(double *, DQNAN))); #else