Mercurial > hg > octave-lyh
diff liboctave/lo-ieee.h @ 7991:139f47cf17ab
Change NA value to support single to double precision conversion
author | David Bateman <dbateman@free.fr> |
---|---|
date | Thu, 05 Jun 2008 21:58:14 +0200 |
parents | 87865ed7405f |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/liboctave/lo-ieee.h +++ b/liboctave/lo-ieee.h @@ -64,9 +64,12 @@ unsigned int word; } lo_ieee_float; -#define LO_IEEE_NA_HW 0x7ff00000 -#define LO_IEEE_NA_LW 1954 -#define LO_IEEE_NA_FLOAT 0x7f8207a2 +#define LO_IEEE_NA_HW_OLD 0x7ff00000 +#define LO_IEEE_NA_LW_OLD 1954 +#define LO_IEEE_NA_HW 0x7FF840F4 +#define LO_IEEE_NA_LW 0x40000000 +#define LO_IEEE_NA_FLOAT 0x7FC207A2 + extern OCTAVE_API void octave_ieee_init (void); @@ -85,7 +88,9 @@ extern OCTAVE_API int __lo_ieee_isinf (double x); extern OCTAVE_API int __lo_ieee_is_NA (double); +extern OCTAVE_API int __lo_ieee_is_old_NA (double); extern OCTAVE_API int __lo_ieee_is_NaN_or_NA (double) GCC_ATTR_DEPRECATED; +extern OCTAVE_API double __lo_ieee_replace_old_NA (double); extern OCTAVE_API double lo_ieee_inf_value (void); extern OCTAVE_API double lo_ieee_na_value (void);