GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-ieee.cc File Reference
#include <cmath>
#include <cstdlib>
#include <limits>
#include "lo-error.h"
#include "lo-ieee.h"
#include "mach-info.h"
Include dependency graph for lo-ieee.cc:

Go to the source code of this file.

Macros

#define LO_IEEE_NA_FLOAT   0x7FC207A2
 
#define LO_IEEE_NA_HW   0x7FF840F4
 
#define LO_IEEE_NA_LW   0x40000000
 

Functions

int __lo_ieee_float_is_NA (float x)
 
int __lo_ieee_is_NA (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)
 

Variables

static float lo_float_inf
 
static float lo_float_na
 
static float lo_float_nan
 
static int lo_ieee_hw
 
static int lo_ieee_lw
 
static double lo_inf
 
static double lo_na
 
static double lo_nan
 

Macro Definition Documentation

◆ LO_IEEE_NA_FLOAT

#define LO_IEEE_NA_FLOAT   0x7FC207A2

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

◆ LO_IEEE_NA_HW

#define LO_IEEE_NA_HW   0x7FF840F4

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

◆ LO_IEEE_NA_LW

#define LO_IEEE_NA_LW   0x40000000

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

Function Documentation

◆ __lo_ieee_float_is_NA()

int __lo_ieee_float_is_NA ( float  x)

◆ __lo_ieee_is_NA()

int __lo_ieee_is_NA ( double  x)

◆ lo_ieee_float_inf_value()

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()

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()

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()

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()

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()

Variable Documentation

◆ lo_float_inf

float lo_float_inf
static

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

Referenced by lo_ieee_float_inf_value(), and octave_ieee_init().

◆ lo_float_na

float lo_float_na
static

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

Referenced by lo_ieee_float_na_value(), and octave_ieee_init().

◆ lo_float_nan

float lo_float_nan
static

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

Referenced by lo_ieee_float_nan_value(), and octave_ieee_init().

◆ lo_ieee_hw

int lo_ieee_hw
static

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

Referenced by __lo_ieee_is_NA(), and octave_ieee_init().

◆ lo_ieee_lw

int lo_ieee_lw
static

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

Referenced by __lo_ieee_is_NA(), and octave_ieee_init().

◆ lo_inf

double lo_inf
static

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

Referenced by lo_ieee_inf_value(), and octave_ieee_init().

◆ lo_na

double lo_na
static

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

Referenced by lo_ieee_na_value(), and octave_ieee_init().

◆ lo_nan

double lo_nan
static

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

Referenced by lo_ieee_nan_value(), and octave_ieee_init().