GNU Octave  9.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 <math.h>

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_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

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)
 
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)
 
float lo_ieee_float_inf_value (void)
 
float lo_ieee_float_na_value (void)
 
float lo_ieee_float_nan_value (void)
 
double lo_ieee_inf_value (void)
 
double lo_ieee_na_value (void)
 
double lo_ieee_nan_value (void)
 
void octave_ieee_init (void)
 

Macro Definition Documentation

◆ lo_ieee_is_NA

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

Definition at line 128 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:88
int __lo_ieee_float_isfinite(float x)
Definition: lo-ieee.h:94

Definition at line 120 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:89
int __lo_ieee_float_isinf(float x)
Definition: lo-ieee.h:95

Definition at line 124 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:93
int __lo_ieee_isnan(double x)
Definition: lo-ieee.h:87

Definition at line 116 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:91
int __lo_ieee_float_signbit(float x)
Definition: lo-ieee.h:97

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

◆ octave_Float_Inf

#define octave_Float_Inf   (lo_ieee_float_inf_value ())

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

◆ octave_Float_NA

#define octave_Float_NA   (lo_ieee_float_na_value ())

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

◆ octave_Float_NaN

#define octave_Float_NaN   (lo_ieee_float_nan_value ())

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

◆ octave_Inf

#define octave_Inf   (lo_ieee_inf_value ())

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

◆ octave_NA

#define octave_NA   (lo_ieee_na_value ())

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

◆ octave_NaN

#define octave_NaN   (lo_ieee_nan_value ())

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

Function Documentation

◆ __lo_ieee_float_is_NA()

int __lo_ieee_float_is_NA ( float  x)

◆ __lo_ieee_float_isfinite()

int __lo_ieee_float_isfinite ( float  x)
inline

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

References isfinite(), and x.

◆ __lo_ieee_float_isinf()

int __lo_ieee_float_isinf ( float  x)
inline

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

References isinf(), and x.

◆ __lo_ieee_float_isnan()

int __lo_ieee_float_isnan ( float  x)
inline

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

References signbit(), and x.

Referenced by negative_sign().

◆ __lo_ieee_is_NA()

int __lo_ieee_is_NA ( double  x)

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

References __lo_ieee_isnan(), lo_ieee_double::value, lo_ieee_double::word, and x.

◆ __lo_ieee_isfinite()

int __lo_ieee_isfinite ( double  x)
inline

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

References isfinite(), and x.

◆ __lo_ieee_isinf()

int __lo_ieee_isinf ( double  x)
inline

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

References isinf(), and x.

◆ __lo_ieee_isnan()

int __lo_ieee_isnan ( double  x)
inline

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

References signbit(), and x.

Referenced by negative_sign().

◆ lo_ieee_float_inf_value()

float lo_ieee_float_inf_value ( void  )

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

References octave_ieee_init().

◆ lo_ieee_float_na_value()

float lo_ieee_float_na_value ( void  )

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

References octave_ieee_init().

◆ lo_ieee_float_nan_value()

◆ lo_ieee_inf_value()

double lo_ieee_inf_value ( void  )

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

References octave_ieee_init().

Referenced by octave::Ffread(), and mxGetInf().

◆ lo_ieee_na_value()

double lo_ieee_na_value ( void  )

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

References octave_ieee_init().

◆ lo_ieee_nan_value()

double lo_ieee_nan_value ( void  )

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

References octave_ieee_init().

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

◆ octave_ieee_init()