GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Functions
lo-ieee.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  lo_ieee_double
 
union  lo_ieee_float
 

Macros

#define lo_ieee_finite(x)
 
#define lo_ieee_is_NA(x)
 
#define lo_ieee_is_NaN_or_NA(x)
 
#define lo_ieee_isinf(x)
 
#define lo_ieee_isnan(x)
 
#define LO_IEEE_NA_FLOAT   0x7FC207A2
 
#define LO_IEEE_NA_HW   0x7FF840F4
 
#define LO_IEEE_NA_HW_OLD   0x7ff00000
 
#define LO_IEEE_NA_LW   0x40000000
 
#define LO_IEEE_NA_LW_OLD   1954
 
#define lo_ieee_signbit(x)
 
#define octave_Float_Inf   (lo_ieee_float_inf_value ())
 
#define octave_Float_NA   (lo_ieee_float_na_value ())
 
#define octave_Float_NaN   (lo_ieee_float_nan_value ())
 
#define octave_Inf   (lo_ieee_inf_value ())
 
#define octave_NA   (lo_ieee_na_value ())
 
#define octave_NaN   (lo_ieee_nan_value ())
 

Functions

OCTAVE_API int __lo_ieee_finite (double x)
 
OCTAVE_API int __lo_ieee_float_finite (float x)
 
OCTAVE_API int __lo_ieee_float_is_NA (float)
 
OCTAVE_API int __lo_ieee_float_isinf (float x)
 
OCTAVE_API int __lo_ieee_float_isnan (float x)
 
OCTAVE_API int __lo_ieee_float_signbit (float)
 
OCTAVE_API int __lo_ieee_is_NA (double)
 
OCTAVE_API int __lo_ieee_is_old_NA (double)
 
OCTAVE_API int __lo_ieee_isinf (double x)
 
OCTAVE_API int __lo_ieee_isnan (double x)
 
OCTAVE_API double __lo_ieee_replace_old_NA (double)
 
OCTAVE_API int __lo_ieee_signbit (double)
 
OCTAVE_API float lo_ieee_float_inf_value (void)
 
OCTAVE_API float lo_ieee_float_na_value (void)
 
OCTAVE_API float lo_ieee_float_nan_value (void)
 
OCTAVE_API double lo_ieee_inf_value (void)
 
OCTAVE_API double lo_ieee_na_value (void)
 
OCTAVE_API double lo_ieee_nan_value (void)
 
OCTAVE_API void octave_ieee_init (void)
 

Macro Definition Documentation

#define lo_ieee_finite (   x)
Value:
(sizeof (x) == sizeof (float) ? \
OCTAVE_API int __lo_ieee_finite(double x)
Definition: lo-ieee.cc:61
OCTAVE_API int __lo_ieee_float_finite(float x)
Definition: lo-ieee.cc:156
F77_RET_T const double * x

Definition at line 103 of file lo-ieee.h.

Referenced by mxIsFinite(), and xfinite().

#define lo_ieee_is_NA (   x)
Value:
(sizeof (x) == sizeof (float) ? \
OCTAVE_API int __lo_ieee_is_NA(double)
Definition: lo-ieee.cc:83
OCTAVE_API int __lo_ieee_float_is_NA(float)
Definition: lo-ieee.cc:178
F77_RET_T const double * x

Definition at line 109 of file lo-ieee.h.

Referenced by octave_base_stream::do_numeric_printf_conv(), octave_is_NA(), octave_write_double(), and octave_write_float().

#define lo_ieee_is_NaN_or_NA (   x)
Value:
(sizeof (x) == sizeof (float) ? \
__lo_ieee_float_is_NaN_or_NA (x) : __lo_ieee_is_NaN_or_NA (x))
F77_RET_T const double * x

Definition at line 111 of file lo-ieee.h.

#define lo_ieee_isinf (   x)
Value:
(sizeof (x) == sizeof (float) ? \
OCTAVE_API int __lo_ieee_isinf(double x)
Definition: lo-ieee.cc:72
OCTAVE_API int __lo_ieee_float_isinf(float x)
Definition: lo-ieee.cc:167
F77_RET_T const double * x

Definition at line 105 of file lo-ieee.h.

Referenced by octave_base_stream::do_numeric_printf_conv(), F77_FUNC(), matrix_norm(), mxIsInf(), octave_write_double(), octave_write_float(), and xisinf().

#define lo_ieee_isnan (   x)
Value:
(sizeof (x) == sizeof (float) ? \
OCTAVE_API int __lo_ieee_isnan(double x)
Definition: lo-ieee.cc:50
OCTAVE_API int __lo_ieee_float_isnan(float x)
Definition: lo-ieee.cc:145
F77_RET_T const double * x

Definition at line 101 of file lo-ieee.h.

Referenced by octave_float_complex::any(), octave_scalar::any(), octave_float_scalar::any(), octave_complex::any(), convert_to_valid_int(), F77_FUNC(), get_size(), mxIsNaN(), octave_write_double(), octave_write_float(), and xisnan().

#define LO_IEEE_NA_FLOAT   0x7FC207A2

Definition at line 67 of file lo-ieee.h.

Referenced by __lo_ieee_float_is_NA(), and octave_ieee_init().

#define LO_IEEE_NA_HW   0x7FF840F4

Definition at line 65 of file lo-ieee.h.

Referenced by __lo_ieee_is_NA(), and octave_ieee_init().

#define LO_IEEE_NA_HW_OLD   0x7ff00000

Definition at line 63 of file lo-ieee.h.

Referenced by __lo_ieee_is_old_NA().

#define LO_IEEE_NA_LW   0x40000000

Definition at line 66 of file lo-ieee.h.

Referenced by __lo_ieee_is_NA(), and octave_ieee_init().

#define LO_IEEE_NA_LW_OLD   1954

Definition at line 64 of file lo-ieee.h.

Referenced by __lo_ieee_is_old_NA().

#define lo_ieee_signbit (   x)
Value:
(sizeof (x) == sizeof (float) ? \
OCTAVE_API int __lo_ieee_float_signbit(float)
Definition: lo-ieee.cc:210
OCTAVE_API int __lo_ieee_signbit(double)
Definition: lo-ieee.cc:134
F77_RET_T const double * x

Definition at line 113 of file lo-ieee.h.

Referenced by SparseMatrix::any_element_is_negative(), and pr_complex().

#define octave_Float_Inf   (lo_ieee_float_inf_value ())
#define octave_Float_NA   (lo_ieee_float_na_value ())

Definition at line 43 of file lo-ieee.h.

#define octave_Float_NaN   (lo_ieee_float_nan_value ())
#define octave_Inf   (lo_ieee_inf_value ())
#define octave_NA   (lo_ieee_na_value ())

Definition at line 34 of file lo-ieee.h.

Referenced by G__glpk__(), lin_interpn(), and single_num().

#define octave_NaN   (lo_ieee_nan_value ())

Function Documentation

OCTAVE_API int __lo_ieee_finite ( double  x)

Definition at line 61 of file lo-ieee.cc.

OCTAVE_API int __lo_ieee_float_finite ( float  x)

Definition at line 156 of file lo-ieee.cc.

References __lo_ieee_float_isnan().

OCTAVE_API int __lo_ieee_float_is_NA ( float  )
OCTAVE_API int __lo_ieee_float_isinf ( float  x)

Definition at line 167 of file lo-ieee.cc.

OCTAVE_API int __lo_ieee_float_isnan ( float  x)

Definition at line 145 of file lo-ieee.cc.

Referenced by __lo_ieee_float_finite(), and __lo_ieee_float_is_NA().

OCTAVE_API int __lo_ieee_float_signbit ( float  )

Definition at line 210 of file lo-ieee.cc.

Referenced by xnegative_sign().

OCTAVE_API int __lo_ieee_is_NA ( double  )
OCTAVE_API int __lo_ieee_is_old_NA ( double  )
OCTAVE_API int __lo_ieee_isinf ( double  x)

Definition at line 72 of file lo-ieee.cc.

OCTAVE_API int __lo_ieee_isnan ( double  x)

Definition at line 50 of file lo-ieee.cc.

Referenced by __lo_ieee_is_NA(), and __lo_ieee_is_old_NA().

OCTAVE_API double __lo_ieee_replace_old_NA ( double  )

Definition at line 101 of file lo-ieee.cc.

References __lo_ieee_is_old_NA(), lo_ieee_na_value(), and x.

Referenced by convert_and_copy(), and read_doubles().

OCTAVE_API int __lo_ieee_signbit ( double  )

Definition at line 134 of file lo-ieee.cc.

Referenced by xnegative_sign().

OCTAVE_API float lo_ieee_float_inf_value ( void  )

Definition at line 186 of file lo-ieee.cc.

References lo_float_inf, and octave_ieee_init().

Referenced by FInf().

OCTAVE_API float lo_ieee_float_na_value ( void  )

Definition at line 194 of file lo-ieee.cc.

References lo_float_na, and octave_ieee_init().

Referenced by FNA().

OCTAVE_API float lo_ieee_float_nan_value ( void  )
OCTAVE_API double lo_ieee_inf_value ( void  )

Definition at line 110 of file lo-ieee.cc.

References lo_inf, and octave_ieee_init().

Referenced by Ffread(), Ffscanf(), FInf(), Fsscanf(), and mxGetInf().

OCTAVE_API double lo_ieee_na_value ( void  )

Definition at line 118 of file lo-ieee.cc.

References lo_na, and octave_ieee_init().

Referenced by __lo_ieee_replace_old_NA(), and FNA().

OCTAVE_API double lo_ieee_nan_value ( void  )
OCTAVE_API void octave_ieee_init ( void  )