1 !Program to test RRSPACING intrinsic function.
8 call test_real8(33.0_8
)
9 call test_real8(-33.0_8
)
11 subroutine test_real4(orig
)
16 y
= abs (x
* 2.0 ** (- exponent (x
))) * (2.0 ** p
)
18 if (abs (x
- y
) .gt
. abs(x
* 1e-6)) call abort
21 subroutine test_real8(orig
)
26 y
= abs (x
* 2.0 ** (- exponent (x
))) * (2.0 ** p
)
28 if (abs (x
- y
) .gt
. abs(x
* 1e-6)) call abort