IEEE_SET_UNDERFLOW_MODE

Intrinsic Module Subroutine (Generic): Sets the current underflow mode.

Module

USE, INTRINSIC :: IEEE_ARITHMETIC

構文

CALL IEEE_SET_UNDERFLOW_MODE (gradual)

gradual

(Input) Must be scalar and of type default logical. If it is true, the current underflow mode is set to gradual underflow (denormals may be produced on underflow). If it is false, the current underflow mode is set to abrupt (underflowed results are set to zero).

Consider the following:

USE, INTRINSIC :: IEEE_EXCEPTIONS 
LOGICAL :: SG
...
CALL IEEE_GET_UNDERFLOW_MODE (SG) ! Stores underflow mode
CALL IEEE_SET_UNDERFLOW_MODE (.FALSE.) ! Resets underflow mode
...                                    ! Abrupt underflows happens here
CALL IEEE_SET_UNDERFLOW_MODE (SG) ! Restores previous undeflow mode

このヘルプトピックについてのフィードバックを送信

© 1996-2011 Intel Corporation. 無断での引用、転載を禁じます。