インテル® Fortran コンパイラー 19.0 デベロッパー・ガイドおよびリファレンス

IEEE_SUPPORT_ROUNDING

Transformational Module Intrinsic Function (Generic): Returns whether the processor supports IEEE rounding mode.

Module

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.

Results

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.

Example

IEEE_SUPPORT_ROUNDING (IEEE_DOWN) has the value true if rounding mode IEEE_DOWN is supported for all real types.

See Also