1IEEECK(1) LAPACK auxiliary routine (version 3.1) IEEECK(1)
2
3
4
6 IEEECK - called from the ILAENV to verify that Infinity and possibly
7 NaN arithmetic is safe (i.e
8
10 INTEGER FUNCTION IEEECK( ISPEC, ZERO, ONE )
11
12 INTEGER ISPEC
13
14 REAL ONE, ZERO
15
17 IEEECK is called from the ILAENV to verify that Infinity and possibly
18 NaN arithmetic is safe (i.e. will not trap).
19
20
22 ISPEC (input) INTEGER
23 Specifies whether to test just for inifinity arithmetic or
24 whether to test for infinity and NaN arithmetic. = 0: Verify
25 infinity arithmetic only.
26 = 1: Verify infinity and NaN arithmetic.
27
28 ZERO (input) REAL
29 Must contain the value 0.0 This is passed to prevent the com‐
30 piler from optimizing away this code.
31
32 ONE (input) REAL
33 Must contain the value 1.0 This is passed to prevent the com‐
34 piler from optimizing away this code.
35
36 RETURN VALUE: INTEGER = 0: Arithmetic failed to produce the
37 correct answers
38 = 1: Arithmetic produced the correct answers
39
40
41
42 Return if we were only asked to check infinity arithmetic
43
44
45
46 LAPACK auxiliary routine (versionNo3v.e1m)ber 2006 IEEECK(1)