Mercurial > octave-nkf
comparison configure.ac @ 18540:89bd70fae066 gui-release
fix initialization problem for Inf, NaN, and NA values (bug #41667)
* lo-cieee.c: Move function definitions to lo-ieee.cc and delete file.
* liboctave/util/module.mk (UTIL_C_SRC): Remove lo-cieee.c from the
list.
* lo-ieee.h (octave_Inf, octave_Float_Inf, octave_NA, octave_Float_NA,
octave_NaN, octave_Float_NaN): Define as macros that expand to
function calls instead of using global variables.
* lo-ieee.cc (lo_inf, lo_nan, lo_na, lo_float_inf, lo_float_nan,
lo_float_na): New static variables.
(octave_ieee_init): Set internal static variables here.
(__lo_ieee_isnan, __lo_ieee_finite, __lo_ieee_isinf,
__lo_ieee_signbit, __lo_ieee_float_isnan, __lo_ieee_float_finite,
__lo_ieee_float_isinf, __lo_ieee_float_signbit):
Use std:: functions if possible, otherwise rely on gnulib.
(lo_ieee_inf_value, lo_ieee_na_value, lo_ieee_nan_value,
lo_ieee_float_inf_value, lo_ieee_float_na_value,
lo_ieee_float_nan_value): Call init function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 04 Mar 2014 10:49:31 -0500 |
parents | 4cf930a64fad |
children | 2f5685c080e5 de76baa76aa1 |
comparison
equal
deleted
inserted
replaced
18536:4cf930a64fad | 18540:89bd70fae066 |
---|---|
2220 ## Look in <cmath> for the IEEE functions isnan, isinf, isfinite that we need. | 2220 ## Look in <cmath> for the IEEE functions isnan, isinf, isfinite that we need. |
2221 | 2221 |
2222 OCTAVE_CHECK_FUNC_CMATH(isnan) | 2222 OCTAVE_CHECK_FUNC_CMATH(isnan) |
2223 OCTAVE_CHECK_FUNC_CMATH(isinf) | 2223 OCTAVE_CHECK_FUNC_CMATH(isinf) |
2224 OCTAVE_CHECK_FUNC_CMATH(isfinite) | 2224 OCTAVE_CHECK_FUNC_CMATH(isfinite) |
2225 OCTAVE_CHECK_FUNC_CMATH(signbit) | |
2225 | 2226 |
2226 ## Check for Inf and NaN functions | 2227 ## Check for Inf and NaN functions |
2227 | 2228 |
2228 case $canonical_host_type in | 2229 case $canonical_host_type in |
2229 m68k-hp-hpux*) | 2230 m68k-hp-hpux*) |