Guardian Procedure Calls Reference Manual

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;
642 Guardian Procedure Calls (F)