Intel® Fortran Compiler 18.0 Developer Guide and Reference
Inquiry Module Intrinsic Function (Generic): Returns whether the processor supports IEEE rounding mode.
USE, INTRINSIC :: IEEE_ARITHMETIC
result = IEEE_SUPPORT_ROUNDING (round_value [, x])
round_value |
(Input) Must be of type TYPE(IEEE_ROUND_TYPE). It specifies one of the following rounding modes: IEEE_UP, IEEE_DOWN, IEEE_TO_ZERO, and IEEE_NEAREST. |
x |
(Input; optional) Must be of type REAL; it can be scalar or array valued. |
The result is a scalar of type default logical. If x is omitted, the result has the value true if the processor supports the rounding mode specified by round_value for all real values; otherwise, false.
If x is specified, the result has the value true if the processor supports the rounding mode specified by round_value for real variables of the same kind type parameter as x; otherwise, false.
IEEE_SUPPORT_ROUNDING (IEEE_DOWN) has the value true if rounding mode IEEE_DOWN is supported for all real types.