Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

IEEE_GET_MODES

Intrinsic Module Subroutine (Generic): Stores the current IEEE floating-point modes. This is an impure subroutine.

Module

USE, INTRINSIC :: IEEE_EXCEPTIONS

CALL IEEE_GET_MODES (modes)

modes

(Output) Must be scalar and of type TYPE (IEEE_MODES_TYPE). It is assigned the value of the floating-point modes.

Example

Consider the following:

USE, INTRINSIC :: IEEE_EXCEPTIONS ! Can also use IEEE_ARITHMETIC
TYPE (IEEE_MODE_TYPE) MODES
...
CALL IEEE_GET_MODES (MODES) ! Stores the floating-point modes
CALL IEEE_SET_UNDERFLOW_MODE (.TRUE.) ! Sets the underflow mode to gradual
...
CALL IEEE_SET_MODES (MODES) ! Restores the floating-point modes