Guardian Procedure Calls Reference Manual

FP_IEEE_EXCEPTIONS_SET_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameter
Considerations
Examples
Summary
The FP_IEEE_EXCEPTIONS_SET_ procedure sets the IEEE floating-point exception mask.
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_EXCEPTIONS_SET_ ( fp_ieee_exceptions newflags );
Syntax for TAL Programmers
?SOURCE $SYSTEM.SYSTEM.KFPIEEE
FP_IEEE_EXCEPTIONS_SET_ ( newflags ); ! i
Parameter
newflags
input
INT(32)
The exception flags bit values of newflags are:
Arithmetic calculations using either positive or negative infinity as an operand,
zero divided by zero, the square root of -1, the rem function with zero as a
FP_IEEE_INVALID
divisor (which causes divide by zero), comparisons with invalid numbers, or
impossible binary-decimal conversions.
Computing x/0, where x is finite and nonzeroFP_IEEE_DIVBYZERO
Result too large to represent as a normalized number.FP_IEEE_OVERFLOW
Result both inexact and too small to represent as a normalized numberFP_IEEE_UNDERFLOW
Result less accurate than it could have been with a larger exponent range or
more fraction bits. Most commonly set when rounding off a repeating fraction
FP_IEEE_INEXACT
such as 1.0/3.0. Also set for underflow cases and some overflow cases, but
not for division by zero.
Considerations
For a description of considerations for this procedure, see the FP_IEEE_EXCEPTIONS_GET_
procedure Considerations (page 646).
648 Guardian Procedure Calls (F)