NAG Library Routine Document

x07caf (get_exception_mode)

1
Purpose

x07caf gets the current IEEE exception halting mode.

2
Specification

Fortran Interface
Subroutine x07caf ( exceptionmode)
Integer, Intent (Out):: exceptionmode(3)
C Header Interface
#include <nagmk26.h>
void  x07caf_ (Integer exceptionmode[])

3
Description

x07caf gets the current IEEE exception halting mode for the three common exceptions: overflow, divide-by-zero and invalid operation.

4
References

IEEE (2008) Standard for Floating-Point Arithmetic IEEE Standard 754-2008 IEEE, New York.

5
Arguments

1:     exceptionmode3 – Integer arrayOutput
On exit: each of the three elements of exceptionmode is set to 1 if the corresponding condition will raise an exception, and is set to 0 otherwise. exceptionmode1 concerns floating-point overflow, exceptionmode2 concerns floating-point division by zero, and exceptionmode3 concerns floating-point invalid operation.

6
Error Indicators and Warnings

None.

7
Accuracy

Not applicable.

8
Parallelism and Performance

x07caf is not threaded in any implementation.

9
Further Comments

None.

10
Example

See Section 10 in x07aaf.