XL Fortran provides several ways that allow you to query and control the floating-point status and control register of the processor directly. These include:
The fpgets and fpsets subroutines retrieve and set the status of floating-point operations, respectively. Instead of calling operating system routines directly, these subroutines use an array of logicals named fpstat to pass information back and forth.
XL Fortran also provides procedures in the xlf_fp_util module that allow you to control the floating-point status and control register of the processor directly. These procedures are more efficient than the fpgets and fpsets subroutines; they are mapped into inlined machine instructions that directly manipulate the floating-point status and control register.
XL Fortran includes the IEEE_ARITHMETIC, IEEE_EXCEPTIONS, and IEEE_FEATURES modules to take advantage of the Fortran 2003 Standard rules for the IEEE floating-point status semantics.