GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-ieee.h File Reference
#include "octave-config.h"
#include <cmath>
Include dependency graph for lo-ieee.h:
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_is_NA(x)
 
#define lo_ieee_is_NaN_or_NA(x)
 
#define lo_ieee_isfinite(x)
 
#define lo_ieee_isinf(x)
 
#define lo_ieee_isnan(x)
 
#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_float_is_NA (float)
 
int __lo_ieee_float_isfinite (float x)
 
int __lo_ieee_float_isinf (float x)
 
int __lo_ieee_float_isnan (float x)
 
int __lo_ieee_float_signbit (float x)
 
OCTAVE_API int __lo_ieee_is_NA (double)
 
int __lo_ieee_isfinite (double x)
 
int __lo_ieee_isinf (double x)
 
int __lo_ieee_isnan (double x)
 
int __lo_ieee_signbit (double x)
 
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

◆ lo_ieee_is_NA

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

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

◆ lo_ieee_is_NaN_or_NA

#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.

◆ lo_ieee_isfinite

#define lo_ieee_isfinite (   x)
Value:
(sizeof (x) == sizeof (float) \
int __lo_ieee_isfinite(double x)
Definition: lo-ieee.h:73
int __lo_ieee_float_isfinite(float x)
Definition: lo-ieee.h:85

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

◆ lo_ieee_isinf

#define lo_ieee_isinf (   x)
Value:
(sizeof (x) == sizeof (float) \
int __lo_ieee_isinf(double x)
Definition: lo-ieee.h:74
int __lo_ieee_float_isinf(float x)
Definition: lo-ieee.h:86

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

◆ lo_ieee_isnan

#define lo_ieee_isnan (   x)
Value:
(sizeof (x) == sizeof (float) \
int __lo_ieee_float_isnan(float x)
Definition: lo-ieee.h:84
int __lo_ieee_isnan(double x)
Definition: lo-ieee.h:72

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

◆ lo_ieee_signbit

#define lo_ieee_signbit (   x)
Value:
(sizeof (x) == sizeof (float) \
int __lo_ieee_signbit(double x)
Definition: lo-ieee.h:82
int __lo_ieee_float_signbit(float x)
Definition: lo-ieee.h:94

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

◆ octave_Float_Inf

#define octave_Float_Inf   (lo_ieee_float_inf_value ())

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

◆ octave_Float_NA

#define octave_Float_NA   (lo_ieee_float_na_value ())

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

◆ octave_Float_NaN

#define octave_Float_NaN   (lo_ieee_float_nan_value ())

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

◆ octave_Inf

#define octave_Inf   (lo_ieee_inf_value ())

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

◆ octave_NA

#define octave_NA   (lo_ieee_na_value ())

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

◆ octave_NaN

#define octave_NaN   (lo_ieee_nan_value ())

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

Function Documentation

◆ __lo_ieee_float_is_NA()

OCTAVE_API int __lo_ieee_float_is_NA ( float  x)

◆ __lo_ieee_float_isfinite()

int __lo_ieee_float_isfinite ( float  x)
inline

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

References isfinite(), and x.

◆ __lo_ieee_float_isinf()

int __lo_ieee_float_isinf ( float  x)
inline

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

References isinf(), and x.

◆ __lo_ieee_float_isnan()

int __lo_ieee_float_isnan ( float  x)
inline

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

References isnan(), and x.

Referenced by __lo_ieee_float_is_NA().

◆ __lo_ieee_float_signbit()

int __lo_ieee_float_signbit ( float  x)
inline

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

References signbit(), and x.

Referenced by negative_sign().

◆ __lo_ieee_is_NA()

OCTAVE_API int __lo_ieee_is_NA ( double  x)

◆ __lo_ieee_isfinite()

int __lo_ieee_isfinite ( double  x)
inline

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

References isfinite(), and x.

◆ __lo_ieee_isinf()

int __lo_ieee_isinf ( double  x)
inline

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

References isinf(), and x.

◆ __lo_ieee_isnan()

int __lo_ieee_isnan ( double  x)
inline

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

References isnan(), and x.

Referenced by __lo_ieee_is_NA().

◆ __lo_ieee_signbit()

int __lo_ieee_signbit ( double  x)
inline

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

References signbit(), and x.

Referenced by negative_sign().

◆ lo_ieee_float_inf_value()

OCTAVE_API float lo_ieee_float_inf_value ( void  )

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

References lo_float_inf, and octave_ieee_init().

Referenced by FInf().

◆ lo_ieee_float_na_value()

OCTAVE_API float lo_ieee_float_na_value ( void  )

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

References lo_float_na, and octave_ieee_init().

Referenced by FNA().

◆ lo_ieee_float_nan_value()

◆ lo_ieee_inf_value()

OCTAVE_API double lo_ieee_inf_value ( void  )

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

References lo_inf, and octave_ieee_init().

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

◆ lo_ieee_na_value()

OCTAVE_API double lo_ieee_na_value ( void  )

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

References lo_na, and octave_ieee_init().

Referenced by FNA().

◆ lo_ieee_nan_value()

OCTAVE_API double lo_ieee_nan_value ( void  )

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

References lo_nan, and octave_ieee_init().

Referenced by NDArray::NDArray(), ellipj(), FNaN(), Ftsearch(), and mxGetNaN().

◆ octave_ieee_init()