fenv.h
#ifndef _FENV_H
#define _FENV_H 1
#include
the default environment will be used
fexcept_t type for object representing the floating-point exception
flags including status associated with the flags
The following macros are defined iff the implementation supports this
kind of exception.
FE_INEXACT inexact result
FE_DIVBYZERO division by zero
FE_UNDERFLOW result not representable due to underflow
FE_OVERFLOW result not representable due to overflow
FE_INVALID invalid operation
FE_ALL_EXCEPT bitwise OR of all supported exceptions
The next macros are defined iff the appropriate rounding mode is
supported by the implementation.
FE_TONEAREST round to nearest
FE_UPWARD round toward +Inf
FE_DOWNWARD round toward -Inf
FE_TOWARDZERO round toward 0
*/
#include
__BEGIN_DECLS
extern int feclearexcept (int __excepts) __THROW;
extern int fegetexceptflag (fexcept_t *__flagp, int __excepts) __THROW;
extern int feraiseexcept (int __excepts) __THROW;
extern int fesetexceptflag (__const fexcept_t *__flagp, int __excepts) __THROW;
extern int fetestexcept (int __excepts) __THROW;
extern int fegetround (void) __THROW;
extern int fesetround (int __rounding_direction) __THROW;
extern int fegetenv (fenv_t *__envp) __THROW;
extern int feholdexcept (fenv_t *__envp) __THROW;
extern int fesetenv (__const fenv_t *__envp) __THROW;
extern int feupdateenv (__const fenv_t *__envp) __THROW;
#ifdef __OPTIMIZE__
# include
#endif
#ifdef __USE_GNU
extern int feenableexcept (int __excepts) __THROW;
extern int fedisableexcept (int __excepts) __THROW;
extern int fegetexcept (void) __THROW;
#endif
__END_DECLS
#endif
|
|