Intel® Fortran Compiler 18.0 Developer Guide and Reference

IEEE_SUPPORT_FLAG

Inquiry Module Intrinsic Function (Generic): Returns whether the processor supports IEEE exceptions.

Module

USE, INTRINSIC :: IEEE_EXCEPTIONS

result = IEEE_SUPPORT_FLAG (flag [, x])

flag

(Input) Must be a scalar of type TYPE (IEEE_FLAG_TYPE). Its value is one of the following IEEE flags:

IEEE_DIVIDE_BY_ZERO, IEEE_INEXACT, IEEE_INVALID, IEEE_OVERFLOW, or IEEE_UNDERFLOW.

x

(Input; optional) Must be of type REAL; it can be scalar or array valued.

Results

The result is a scalar of type default logical. If x is omitted, the result has the value true if the processor supports detection of the exception specified by "flag" for all real values; otherwise, false.

If x is specified, the result has the value true if the processor supports detection of the exception specified by "flag" for real variables of the same kind type parameter as x; otherwise, false.

Example

IEEE_SUPPORT_FLAG (IEEE_UNDERFLOW) has the value true if the IEEE_UNDERFLOW exception is supported for all real types.

See Also