Back to index

glibc  2.9
Defines | Typedefs | Enumerations
fenv.h File Reference
#include <bits/wordsize.h>

Go to the source code of this file.

Defines

#define FE_INVALID   FE_INVALID
#define FE_OVERFLOW   FE_OVERFLOW
#define FE_UNDERFLOW   FE_UNDERFLOW
#define FE_DIVBYZERO   FE_DIVBYZERO
#define FE_INEXACT   FE_INEXACT
#define FE_ALL_EXCEPT   (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
#define FE_TONEAREST   FE_TONEAREST
#define FE_TOWARDZERO   FE_TOWARDZERO
#define FE_UPWARD   FE_UPWARD
#define FE_DOWNWARD   FE_DOWNWARD
#define __FE_ROUND_MASK   (3U << 30)
#define FE_DFL_ENV   ((__const fenv_t *) -1)
#define __fenv_stfsr(X)   __asm__ ("st %%fsr,%0" : "=m" (X))
#define __fenv_ldfsr(X)   __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))

Typedefs

typedef unsigned long int fexcept_t
typedef unsigned long int fenv_t

Enumerations

enum  {
  FE_INVALID = (1 << 9), FE_INVALID = (1 << 9), FE_OVERFLOW = (1 << 8), FE_OVERFLOW = (1 << 8),
  FE_UNDERFLOW = (1 << 7), FE_UNDERFLOW = (1 << 7), FE_DIVBYZERO = (1 << 6), FE_DIVBYZERO = (1 << 6),
  FE_INEXACT
}
enum  {
  FE_TONEAREST = (0U << 30), FE_TONEAREST = (0U << 30), FE_TOWARDZERO = (1U << 30), FE_TOWARDZERO = (1U << 30),
  FE_UPWARD = (2U << 30), FE_UPWARD = (2U << 30), FE_DOWNWARD
}

Define Documentation

#define __FE_ROUND_MASK   (3U << 30)

Definition at line 60 of file fenv.h.

#define __fenv_ldfsr (   X)    __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))

Definition at line 84 of file fenv.h.

#define __fenv_stfsr (   X)    __asm__ ("st %%fsr,%0" : "=m" (X))

Definition at line 83 of file fenv.h.

Definition at line 42 of file fenv.h.

#define FE_DFL_ENV   ((__const fenv_t *) -1)

Definition at line 71 of file fenv.h.

#define FE_DIVBYZERO   FE_DIVBYZERO

Definition at line 37 of file fenv.h.

#define FE_DOWNWARD   FE_DOWNWARD
#define FE_INEXACT   FE_INEXACT
#define FE_INVALID   FE_INVALID

Definition at line 31 of file fenv.h.

#define FE_OVERFLOW   FE_OVERFLOW

Definition at line 33 of file fenv.h.

#define FE_TONEAREST   FE_TONEAREST

Definition at line 51 of file fenv.h.

Definition at line 53 of file fenv.h.

#define FE_UNDERFLOW   FE_UNDERFLOW

Definition at line 35 of file fenv.h.

#define FE_UPWARD   FE_UPWARD

Definition at line 55 of file fenv.h.


Typedef Documentation

typedef unsigned long int fenv_t

Definition at line 68 of file fenv.h.

typedef unsigned long int fexcept_t

Definition at line 64 of file fenv.h.


Enumeration Type Documentation

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

Definition at line 28 of file fenv.h.

  {
    FE_INVALID =     (1 << 9),
#define FE_INVALID   FE_INVALID
    FE_OVERFLOW =    (1 << 8),
#define FE_OVERFLOW  FE_OVERFLOW
    FE_UNDERFLOW =   (1 << 7),
#define FE_UNDERFLOW FE_UNDERFLOW
    FE_DIVBYZERO =   (1 << 6),
#define FE_DIVBYZERO FE_DIVBYZERO
    FE_INEXACT =     (1 << 5)
#define FE_INEXACT   FE_INEXACT
  };
anonymous enum
Enumerator:
FE_TONEAREST 
FE_TONEAREST 
FE_TOWARDZERO 
FE_TOWARDZERO 
FE_UPWARD 
FE_UPWARD 
FE_DOWNWARD 

Definition at line 48 of file fenv.h.

  {
    FE_TONEAREST =   (0U << 30),
#define FE_TONEAREST FE_TONEAREST
    FE_TOWARDZERO =  (1U << 30),
#define FE_TOWARDZERO       FE_TOWARDZERO
    FE_UPWARD =      (2U << 30),
#define FE_UPWARD    FE_UPWARD
    FE_DOWNWARD =    (3U << 30)
#define FE_DOWNWARD  FE_DOWNWARD
  };