HP-UX Floating-Point Guide
204 Appendix A
The C Math Library
C Math Library Tables
fenv Suite (cont.)
int fegetround(void); Returns the current rounding direction.
int fegettrapenable(void); Determines which exception trap enable
bits are currently set.
int feholdexcept(fenv_t *envp); Saves the current floating-point
environment in the object pointed to by
envp, clears the exception flags, and
disables all traps.
void feraiseexcept(int excepts); Raises the exceptions represented by
excepts.
void fesetenv(const fenv_t *envp); Establishes the floating-point
environment represented by the object
pointed to by envp.
void fesetexceptflag
(const fexcept_t *flagp, int excepts);
Sets the status for the exception flags
indicated by the argument excepts
according to the representation in the
object pointed to by flagp.
void fesetflushtozero(int mode); Establishes the underflow mode
represented by mode.
int fesetround(int round); Establishes the rounding direction
represented by round.
void fesettrapenable(int excepts); Sets the exception trap enable bits as
indicated by the argument excepts.
int fetestexcept(int excepts); Determines which of a specified subset of
the exception flags are currently set.
void feupdateenv
(const fenv_t *envp);
Saves the current exceptions in its
automatic storage, installs the
floating-point environment represented
through envp, and then raises the saved
exceptions.
Function What It Does