Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 12/16/2022
Public

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

Document Table of Contents

ieeeck

Checks if the infinity and NaN arithmetic is safe. Called by ilaenv.

Syntax

ival = ieeeck( ispec, zero, one )

Include Files
  • mkl.fi
Description

The function ieeeck is called from ilaenv to verify that infinity and possibly NaN arithmetic is safe, that is, will not trap.

Input Parameters
ispec

INTEGER.

Specifies whether to test just for infinity arithmetic or both for infinity and NaN arithmetic:

If ispec = 0: Verify infinity arithmetic only.

If ispec = 1: Verify infinity and NaN arithmetic.

zero

REAL. Must contain the value 0.0

This is passed to prevent the compiler from optimizing away this code.

one

REAL. Must contain the value 1.0

This is passed to prevent the compiler from optimizing away this code.

Output Parameters
ival

INTEGER.

If ival = 0: Arithmetic failed to produce the correct answers.

If ival = 1: Arithmetic produced the correct answers.