Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (F)
Guardian Procedure Calls Reference Manual522629-013
5-258
FP_IEEE_ENV_CLEAR_ Procedure
FP_IEEE_ENV_CLEAR_ Procedure
Summary
The FP_IEEE_ENV_CLEAR_ procedure sets the floating-point environment
(consisting of the rounding mode, the exception flags, the trap enables, and the
denormalization mode) back to its initial values. The initial values are as follows:
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
SavedEnv input
INT(32)
The current floating-point environment is saved here before it is set to its initial
values.
Consideration
FP_IEEE_ENV_CLEAR_ and FP_IEEE_ENV_RESUME_ are for use by a
process, such as a signal handler, a clean-up routine, or a procedure that needs to
tolerate being called with any possible values in the floating-point status and
control. They are not for use by interrupt handlers.
Rounding mode Round to nearest or nearest even value
Exception flags No exceptions encountered (zeroes)
Trap enables All floating-point traps disabled
Denormalization Denormalized enabled
Note. This procedure is supported in the G06.06 RVU and all subsequent G-series RVUs. IEEE
floating-point is available on all S-series processors except S70000 servers with NSR-G processors.
#include <kfpieee.h>
fp_ieee_env FP_IEEE_ENV_CLEAR_(void);
?source $system.system.kfpieee
SavedEnv := FP_IEEE_ENV_CLEAR_ ;