Query: feholdexcept
OS: sunos
Section: 3m
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
feholdexcept(3M) Mathematical Library Functions feholdexcept(3M)NAMEfeholdexcept - save current floating-point environmentSYNOPSIScc [ flag... ] file... -lm [ library... ] #include <fenv.h> int feholdexcept(fenv_t *envp);DESCRIPTIONThe feholdexcept() function saves the current floating-point environment in the object pointed to by envp, clears the floating-point status flags, and then installs a non-stop (continue on floating-point exceptions) mode, if available, for all floating-point exceptions.RETURN VALUESThe feholdexcept() function returns 0 if and only if non-stop floating-point exception handling was successfully installed.ERRORSNo errors are defined.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+SEE ALSOfegetenv(3M), fenv.h(3HEAD), feupdateenv(3M), attributes(5), standards(5)NOTESIn a multithreaded program, the feholdexcept() function affects the floating point environment only for the calling thread. The feholdexcept() function automatically installs and deinstalls SIGFPE handlers and sets and clears the trap enable mode bits in the floating point status register as needed. If a program uses these functions and attempts to install a SIGFPE handler or control the trap enable mode bits independently, the resulting behavior is not defined. SunOS 5.10 1 Nov 2003 feholdexcept(3M)
Related Man Pages |
---|
fesetenv(3) - mojave |
feupdateenv(3) - mojave |
fesetenv(3) - osx |
feupdateenv(3) - osx |
fegetenv(3m) - sunos |
Similar Topics in the Unix Linux Community |
---|
floating point error in linux + C |