Guardian Procedure Calls Reference Manual

FP_IEEE_ENABLES_SET_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameter
Considerations
Examples
Summary
The FP_IEEE_ENABLES_SET_ procedure sets the IEEE floating-point trap enable mask. A set bit
(value of one) enables a trap for the particular exception. A zero bit (the normal value) disables
that trap.
NOTE: This procedure is supported in all J-series and H-series RVUs and in G-series RVUs
beginning with G06.06. IEEE floating-point is available on all NB-Series and NS-Series systems,
and on all S-Series systems, except S70000 servers with NSR-G processors.
Syntax for C Programmers
#include <kfpieee.h>
void FP_IEEE_ENABLES_SET_ ( fp_ieee_enables newmask );
Syntax for TAL Programmers
?SOURCE $SYSTEM.SYSTEM.KFPIEEE
FP_IEEE_ENABLES_SET_ ( newmask ); ! i
Parameter
newmask
input
INT(32)
The traps enable flag. Mask bit values of newmask are:
Trap on FP_IEEE_INVALID exception.FP_IEEE_ENABLE_INVALID
Trap on FP_IEEE_DIVBYZERO exception.FP_IEEE_ENABLE_DIVBYZERO
Trap on FP_IEEE_OVERFLOW exception.FP_IEEE_ENABLE_OVERFLOW
Trap on FP_IEEE_UNDERFLOW exception.FP_IEEE_ENABLE_UNDERFLOW
Trap on FP_IEEE_INEXACT exception.FP_IEEE_ENABLE_INEXACT
Considerations
When you enable traps, you will not get a trap from a left-over status; you will trap only from
operations that happen after you enable the traps.
For more considerations for this procedure, see the FP_IEEE_ENABLES_GET_ Procedure
(page 639).
.
FP_IEEE_ENABLES_SET_ Procedure 641