HP-UX Floating-Point Guide
Appendix A 207
The C Math Library
C Math Library Tables
void fegetenv(fenv_t *envp); Stores the current floating-point
environment in the object pointed to by
envp.
void fegetexceptflag
(fexcept_t *flagp, int excepts);
Stores the exception flags indicated by the
argument excepts in the object pointed to
by the argument flagp.
int fegetflushtozero(void); Retrieves the value representing the
current underflow mode.
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.
Function What It Does