ieee_support_denormal

Date:

10-12-2011

NAME

IEEE-SUPPORT_DENORMAL - Determines if the system supports IEEE denormalized numbers

SYNOPSIS

IEEE_SUPPORT_DENORMAL ([[X=]x])

IMPLEMENTATION

Cray Linux Environment (CLE)

STANDARDS

Fortran

IEEE Standard for Binary Floating-point Arithmetic

DESCRIPTION

The function IEEE_SUPPORT_DENORMAL() can be used to inquire whether IEEE denormal is supported for a particular kind of real or for all reals.

This function accepts the following argument:

x

Must be of type real. It may be a scalar or an array.

IEEE_SUPPORT_DENORMAL() is an inquiry function. The name of this intrinsic cannot be passed as an argument.

NOTES

The IEEE intrinsic procedures use the named constants contained in a system module, so you must include the following statement in your program:

USE, INTRINSIC :: IEEE_ARITHMETIC

RETURN VALUES

The result type and type parameter is default logical.

If x is present, the result is true if the system supports IEEE denormal for real variables of this kind type real; otherwise, the result is false.

If x is not present, the result is true if the system supports IEEE denormal for all real variables supported on this system; otherwise, the result is false.

EXAMPLES

Example 1:

USE, INTRINSIC :: IEEE_ARITHMETIC
REAL xdef
REAL(8) x8
LOGICAL xdenorm_supported, alldenorm_supported

xdenorm_supported = IEEE_SUPPORT_DENORMAL(xdef)

alldenorm_supported = IEEE_SUPPORT_DENORMAL()