fenv.h
Overview
Related Modules:
Description:
Declares specific functions for performing operations for floating-point exceptions and rounding modes.
You can use the functions provided in this file to set, clear, and store the current floating-point exception and to obtain and set the current rounding mode.
Since:
1.0
Version:
1.0
Summary
Data Structures
Macros
Indicates an invalid floating-point exception. At least one parameter value is not defined in the function. |
|
Indicates a pole error exception. The return value is asymptotically infinite when the divisor is zero or the input is asymptotic to zero. |
|
Indicates an overflow floating-point exception. The result is too large to be represented in the normal return value. |
|
Indicates an underflow floating-point exception. The result is too small to be represented in the normal return value. |
|
FE_INEXACT 16 |
|
Indicates bitwise OR of all the preceding supported floating-point exceptions. |
|
FE_DOWNWARD 0x800000 |
|
FE_UPWARD 0x400000 |
|
FE_TOWARDZERO 0xc00000 |
|
FE_DFL_ENV ((const fenv_t *) -1) |
Typedefs
Functions
feclearexcept (int excepts) |
|
fegetexceptflag (fexcept_t flagp, int excepts) |
Stores the floating-point exceptions specified by excepts into the flagp variable address. |
feraiseexcept (int excepts) |
|
fesetexceptflag (const fexcept_t flagp, int excepts) |
Sets the exception status flag by copying the floating-point exceptions stored in the flagp address to the excepts parameter. |
fetestexcept (int excepts) |
Checks whether the floating-point exceptions specified by excepts have been raised. |
fegetround (void) |
Obtains the macro corresponding to the current rounding mode. |
fesetround (int rounding_mode) |
|
Stores the current floating-point environment into the object specified by envp. |
|
feholdexcept (fenv_t envp) |
Stores the current floating-point environment into the object specified by envp, with all status flags cleared. |
feupdateenv (const fenv_t envp) |
Updates the current floating-point environment from the object specified by envp. |