Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (F)
Guardian Procedure Calls Reference Manual522629-013
5-257
FP_IEEE_ENABLES_SET_ Procedure
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.
See Considerations on page 5-255 for more considerations for this procedure.
Examples
C Example
#include <kfpieee.h>
void TrapsEnableExample(void) {
FP_IEEE_ENABLES_SET_
( FP_IEEE_ENABLE_INVALID |
FP_IEEE_ENABLE_DIVBYZERO|
FP_IEEE_ENABLE_OVERFLOW
);
}
This sets traps on the FP_IEEE_INVALID, FP_IEEE_DIVBYZERO, and
FP_IEEE_OVERFLOW exceptions.
TAL Example
?nolist
?source $system.system.kfpieee
?list
proc TrapsEnableExample;
begin
call FP_IEEE_ENABLES_SET_
( FP_IEEE_ENABLE_INVALID
LOR FP_IEEE_ENABLE_DIVBYZERO
LOR FP_IEEE_ENABLE_OVERFLOW
);
end;