lib-of-vs-libs-QTDevWin-CIncludes-fenv.h / h
****************************************************************************** * fenv_t is a type for representing the entire floating-point * environment in a single object. * * fexcept_t is a type for representing the floating-point * exception flag state collectively. * * ******************************************************************************
***************************************************************************** The following functions provide access to the exception flags. The * "int" input argument can be constructed by bitwise ORs of the exception * macros: for example: FE_OVERFLOW | FE_INEXACT. * *****************************************************************************
***************************************************************************** The function "feclearexcept" clears the supported exceptions represented * by its argument. * *****************************************************************************
***************************************************************************** The function "fegetexcept" stores a representation of the exception * flags indicated by the argument "excepts" through the pointer argument * "flagp". * *****************************************************************************
***************************************************************************** The function "feraiseexcept" raises the supported exceptions * represented by its argument. * *****************************************************************************
***************************************************************************** The function "fesetexcept" sets or clears the exception flags indicated * by the int argument "excepts" according to the representation in the * object pointed to by the pointer argument "flagp". The value of * "*flagp" must have been set by a previous call to "fegetexcept". * This function does not raise exceptions; it just sets the state of * the flags. * *****************************************************************************
***************************************************************************** The function "fetestexcept" determines which of the specified subset of * the exception flags are currently set. The argument "excepts" specifies * the exception flags to be queried as a bitwise OR of the exception * macros. This function returns the bitwise OR of the exception macros * corresponding to the currently set exceptions included in "excepts". * *****************************************************************************
***************************************************************************** The following functions provide control of rounding direction modes. * *****************************************************************************
***************************************************************************** The function "fegetround" returns the value of the rounding direction * macro which represents the current rounding direction. * *****************************************************************************
***************************************************************************** The function "fesetround" establishes the rounding direction represented * by its argument. It returns nonzero if and only if the argument matches * a rounding direction macro. If not, the rounding direction is not * changed. * *****************************************************************************
***************************************************************************** The following functions manage the floating-point environment, exception * flags and dynamic modes, as one entity. * *****************************************************************************
***************************************************************************** The function "fegetenv" stores the current floating-point environment * in the object pointed to by its pointer argument "envp". * *****************************************************************************
***************************************************************************** The function "feholdexcept" saves the current environment in the object * pointed to by its pointer argument "envp", clears the exception flags, * and clears floating-point exception enables. This function supersedes * the SANE function "procentry", but it does not change the current * rounding direction mode. * *****************************************************************************
***************************************************************************** The function "fesetenv" installs the floating-point environment * environment represented by the object pointed to by its argument * "envp". The value of "*envp" must be set by a call to "fegetenv" or * "feholdexcept", by an implementation-defined macro of type "fenv_t", * or by the use of the pointer macro FE_DFL_ENV as the argument. * *****************************************************************************
***************************************************************************** The function "feupdateenv" saves the current exceptions into its * automatic storage, installs the environment represented through its * pointer argument "envp", and then re-raises the saved exceptions. * This function, which supersedes the SANE function "procexit", can be * used in conjunction with "feholdexcept" to write routines which hide * spurious exceptions from their callers. * *****************************************************************************
***************************************************************************** The following functions provide control of rounding precision. * Because the PowerPC does not provide this capability, these functions * are available only for the 68K Macintosh. Rounding precision values * are defined by the rounding precision macros. These functions are * equivalent to the SANE functions getprecision and setprecision. * *****************************************************************************
(C) Æliens 04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.