fenv.h File Reference

Typedef fenv_t

typedef __uint32_t fenv_t

Represents the entire floating-point environment. The floating-point environment refers collectively to any floating-point status flags and control modes supported by the implementation.

Typedef fexcept_t

typedef __uint32_t fexcept_t

Represents the floating-point status flags collectively, including any status the implementation associates with the flags. A floating-point status flag is a system variable whose value is set (but never cleared) when a floating-point exception is raised, which occurs as a side effect of exceptional floating-point arithmetic to provide auxiliary information. A floating-point control mode is a system variable whose value may be set by the user to affect the subsequent behavior of floating-point arithmetic.

FE_INVALID

Exception flags

FE_DIVBYZERO

Exception flags

FE_OVERFLOW

Exception flags

FE_UNDERFLOW

Exception flags

FE_INEXACT

Exception flags

FE_ALL_EXCEPT

Exception flags

FE_TONEAREST

Rounding modes

FE_TOWARDZERO

Rounding modes

FE_UPWARD

Rounding modes

FE_DOWNWARD

Rounding modes

_ROUND_MASK

__fe_dfl_env

const fenv_t__fe_dfl_env

FE_DFL_ENV

Default floating-point environment

_FPUSW_SHIFT

We need to be able to map status flag positions to mask flag positions

_ENABLE_MASK

__rfs

__wfs

feclearexcept ( int )

__inline intfeclearexcept(int__excepts)[static]

clear floating-point exception

fegetexceptflag ( fexcept_t *, int )

__inline intfegetexceptflag(fexcept_t *__flagp,
int__excepts
)[static]

get floating-point status flags

fesetexceptflag ( const fexcept_t *, int )

__inline intfesetexceptflag(const fexcept_t *__flagp,
int__excepts
)[static]

set floating-point status flags

feraiseexcept ( int )

__inline intferaiseexcept(int__excepts)[static]

raise floating-point exception

fetestexcept ( int )

__inline intfetestexcept(int__excepts)[static]

test floating-point exception flags

fegetround ( void )

__inline intfegetround(void)[static]

get current rounding direction

fesetround ( int )

__inline intfesetround(int__round)[static]

set current rounding direction

fegetenv ( fenv_t * )

__inline intfegetenv(fenv_t *__envp)[static]

get current floating-point environment

feholdexcept ( fenv_t * )

__inline intfeholdexcept(fenv_t *__envp)[static]

save current floating-point environment

fesetenv ( const fenv_t * )

__inline intfesetenv(const fenv_t *__envp)[static]

set current floating-point environment

feupdateenv ( const fenv_t * )

__inline intfeupdateenv(const fenv_t *__envp)[static]

update floating-point environment