GNU Octave  3.8.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 | Variables
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)

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_is_NaN_or_NA (float) GCC_ATTR_DEPRECATED
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_NaN_or_NA (double) GCC_ATTR_DEPRECATED
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)

Variables

OCTAVE_API int lo_ieee_hw
OCTAVE_API int lo_ieee_lw
OCTAVE_API float octave_Float_Inf
OCTAVE_API float octave_Float_NA
OCTAVE_API float octave_Float_NaN
OCTAVE_API double octave_Inf
OCTAVE_API double octave_NA
OCTAVE_API double octave_NaN

Macro Definition Documentation

#define lo_ieee_finite (   x)
Value:
(sizeof (x) == sizeof (float) ? \
__lo_ieee_float_finite (x) : __lo_ieee_finite (x))

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

Referenced by mxIsFinite(), and xfinite().

#define lo_ieee_is_NA (   x)
Value:
(sizeof (x) == sizeof (float) ? \
__lo_ieee_float_is_NA (x) : __lo_ieee_is_NA (x))

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

Referenced by octave_base_stream::do_printf(), 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))

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

#define lo_ieee_isinf (   x)
Value:
(sizeof (x) == sizeof (float) ? \
__lo_ieee_float_isinf (x) : __lo_ieee_isinf (x))

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

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

#define lo_ieee_isnan (   x)
#define LO_IEEE_NA_FLOAT   0x7FC207A2

Definition at line 70 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 68 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 66 of file lo-ieee.h.

Referenced by __lo_ieee_is_old_NA().

#define LO_IEEE_NA_LW   0x40000000

Definition at line 69 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 67 of file lo-ieee.h.

Referenced by __lo_ieee_is_old_NA().

#define lo_ieee_signbit (   x)
Value:
(sizeof (x) == sizeof (float) ? \
__lo_ieee_float_signbit (x) : __lo_ieee_signbit (x))

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

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

Function Documentation

OCTAVE_API int __lo_ieee_finite ( double  x)

Definition at line 81 of file lo-cieee.c.

References __lo_ieee_isnan().

OCTAVE_API int __lo_ieee_float_finite ( float  x)

Definition at line 198 of file lo-cieee.c.

References __lo_ieee_float_isnan().

OCTAVE_API int __lo_ieee_float_is_NA ( float  )

Definition at line 222 of file lo-cieee.c.

References LO_IEEE_NA_FLOAT, lo_ieee_float::value, lo_ieee_float::word, and x.

OCTAVE_API int __lo_ieee_float_is_NaN_or_NA ( float  )

Definition at line 234 of file lo-cieee.c.

References __lo_ieee_float_isnan().

OCTAVE_API int __lo_ieee_float_isinf ( float  x)

Definition at line 210 of file lo-cieee.c.

References __lo_ieee_float_isnan().

OCTAVE_API int __lo_ieee_float_isnan ( float  x)
OCTAVE_API int __lo_ieee_float_signbit ( float  )

Definition at line 262 of file lo-cieee.c.

Referenced by xnegative_sign().

OCTAVE_API int __lo_ieee_is_NA ( double  )

Definition at line 105 of file lo-cieee.c.

References LO_IEEE_NA_HW, LO_IEEE_NA_LW, lo_ieee_double::value, lo_ieee_double::word, and x.

OCTAVE_API int __lo_ieee_is_NaN_or_NA ( double  )

Definition at line 140 of file lo-cieee.c.

References __lo_ieee_isnan().

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

Definition at line 93 of file lo-cieee.c.

References __lo_ieee_isnan().

OCTAVE_API int __lo_ieee_isnan ( double  x)

Definition at line 71 of file lo-cieee.c.

Referenced by __lo_ieee_finite(), __lo_ieee_is_NaN_or_NA(), and __lo_ieee_isinf().

OCTAVE_API double __lo_ieee_replace_old_NA ( double  )

Definition at line 131 of file lo-cieee.c.

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 168 of file lo-cieee.c.

Referenced by xnegative_sign().

OCTAVE_API float lo_ieee_float_inf_value ( void  )

Definition at line 240 of file lo-cieee.c.

References octave_Float_Inf.

Referenced by FInf().

OCTAVE_API float lo_ieee_float_na_value ( void  )

Definition at line 246 of file lo-cieee.c.

References octave_Float_NA.

Referenced by FNA().

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

Definition at line 146 of file lo-cieee.c.

References octave_Inf.

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

OCTAVE_API double lo_ieee_na_value ( void  )

Definition at line 152 of file lo-cieee.c.

References octave_NA.

Referenced by __lo_ieee_replace_old_NA(), and FNA().

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

Variable Documentation

OCTAVE_API int lo_ieee_hw

Definition at line 67 of file lo-cieee.c.

Referenced by octave_ieee_init().

OCTAVE_API int lo_ieee_lw

Definition at line 68 of file lo-cieee.c.

Referenced by octave_ieee_init().

OCTAVE_API float octave_Float_Inf
OCTAVE_API float octave_Float_NA

Definition at line 61 of file lo-cieee.c.

Referenced by lo_ieee_float_na_value(), and octave_ieee_init().

OCTAVE_API float octave_Float_NaN
OCTAVE_API double octave_Inf
OCTAVE_API double octave_NA

Definition at line 60 of file lo-cieee.c.

Referenced by DEFUN_DLD(), lin_interpn(), lo_ieee_na_value(), octave_ieee_init(), and single_num().

OCTAVE_API double octave_NaN