1 !Program to test SPACING intrinsic function.
10 call test_real8(33.0_8
)
11 call test_real8(-33._8
)
13 subroutine test_real4(orig
)
18 y
= 2.0 ** (exponent (x
) - p
)
21 if ((abs (x
- y
) .gt
. abs(x
* 1e-6)) &
22 .and
. (abs (x
- t
) .gt
. abs(x
* 1e-6)))call abort
25 subroutine test_real8(orig
)
30 y
= 2.0 ** (exponent (x
) - p
)
33 if ((abs (x
- y
) .gt
. abs(x
* 1e-6)) &
34 .and
. (abs (x
- t
) .gt
. abs(x
* 1e-6)))call abort