Back to index

glibc  2.9
Defines | Typedefs | Enumerations | Functions
fenv.h File Reference

Go to the source code of this file.

Defines

#define FE_INEXACT   FE_INEXACT
#define FE_UNDERFLOW   FE_UNDERFLOW
#define FE_OVERFLOW   FE_OVERFLOW
#define FE_DIVBYZERO   FE_DIVBYZERO
#define FE_INVALID   FE_INVALID
#define FE_ALL_EXCEPT   FE_ALL_EXCEPT
#define FE_TOWARDZERO   FE_TOWARDZERO
#define FE_DOWNWARD   FE_DOWNWARD
#define FE_TONEAREST   FE_TONEAREST
#define FE_UPWARD   FE_UPWARD
#define FE_DFL_ENV   ((__const fenv_t *) 0x8800000000000000UL)

Typedefs

typedef unsigned long int fexcept_t
typedef unsigned long int fenv_t

Enumerations

enum  {
  FE_INEXACT = 1UL << 21, FE_INEXACT = 1UL << 21, FE_UNDERFLOW = 1UL << 20, FE_UNDERFLOW = 1UL << 20,
  FE_OVERFLOW = 1UL << 19, FE_OVERFLOW = 1UL << 19, FE_DIVBYZERO = 1UL << 18, FE_DIVBYZERO = 1UL << 18,
  FE_INVALID = 1UL << 17, FE_INVALID = 1UL << 17, FE_ALL_EXCEPT
}
enum  {
  FE_TOWARDZERO = 0, FE_TOWARDZERO = 0, FE_DOWNWARD = 1, FE_DOWNWARD = 1,
  FE_TONEAREST = 2, FE_TONEAREST = 2, FE_UPWARD = 3, FE_UPWARD = 3
}

Functions

unsigned long int __ieee_get_fp_control (void) __THROW
void __ieee_set_fp_control (unsigned long int __value) __THROW

Define Documentation

#define FE_DFL_ENV   ((__const fenv_t *) 0x8800000000000000UL)

Definition at line 110 of file fenv.h.

#define FE_DIVBYZERO   FE_DIVBYZERO

Definition at line 54 of file fenv.h.

#define FE_DOWNWARD   FE_DOWNWARD

Definition at line 78 of file fenv.h.

#define FE_INEXACT   FE_INEXACT

Definition at line 45 of file fenv.h.

#define FE_INVALID   FE_INVALID

Definition at line 57 of file fenv.h.

#define FE_OVERFLOW   FE_OVERFLOW

Definition at line 51 of file fenv.h.

#define FE_TONEAREST   FE_TONEAREST

Definition at line 81 of file fenv.h.

Definition at line 75 of file fenv.h.

#define FE_UNDERFLOW   FE_UNDERFLOW

Definition at line 48 of file fenv.h.

#define FE_UPWARD   FE_UPWARD

Definition at line 84 of file fenv.h.


Typedef Documentation

typedef unsigned long int fenv_t

Definition at line 105 of file fenv.h.

typedef unsigned long int fexcept_t

Definition at line 102 of file fenv.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
FE_INEXACT 
FE_INEXACT 
FE_UNDERFLOW 
FE_UNDERFLOW 
FE_OVERFLOW 
FE_OVERFLOW 
FE_DIVBYZERO 
FE_DIVBYZERO 
FE_INVALID 
FE_INVALID 
FE_ALL_EXCEPT 

Definition at line 37 of file fenv.h.

  {
#ifdef __USE_GNU
    FE_DENORMAL =    1UL << 22,
#define FE_DENORMAL  FE_DENORMAL
#endif

    FE_INEXACT =     1UL << 21,
#define FE_INEXACT   FE_INEXACT

    FE_UNDERFLOW =   1UL << 20,
#define FE_UNDERFLOW FE_UNDERFLOW

    FE_OVERFLOW =    1UL << 19,
#define FE_OVERFLOW  FE_OVERFLOW

    FE_DIVBYZERO =   1UL << 18,
#define FE_DIVBYZERO FE_DIVBYZERO

    FE_INVALID =     1UL << 17,
#define FE_INVALID   FE_INVALID

    FE_ALL_EXCEPT =  0x3f << 17
#define FE_ALL_EXCEPT       FE_ALL_EXCEPT
  };
anonymous enum
Enumerator:
FE_TOWARDZERO 
FE_TOWARDZERO 
FE_DOWNWARD 
FE_DOWNWARD 
FE_TONEAREST 
FE_TONEAREST 
FE_UPWARD 
FE_UPWARD 

Definition at line 72 of file fenv.h.

  {
    FE_TOWARDZERO =  0,
#define FE_TOWARDZERO       FE_TOWARDZERO

    FE_DOWNWARD =    1,
#define FE_DOWNWARD  FE_DOWNWARD

    FE_TONEAREST =   2,
#define FE_TONEAREST FE_TONEAREST

    FE_UPWARD =             3,
#define FE_UPWARD    FE_UPWARD
  };

Function Documentation

unsigned long int __ieee_get_fp_control ( void  )

Here is the caller graph for this function:

void __ieee_set_fp_control ( unsigned long int  __value)

Here is the caller graph for this function: