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(x)
15 y = abs (x * 2.0 ** (- exponent (x))) * (2.0 ** p)
17 if (abs (x - y) .gt. abs(x * 1e-6)) call abort
20 subroutine test_real8(x)
24 y = abs (x * 2.0 ** (- exponent (x))) * (2.0 ** p)
26 if (abs (x - y) .gt. abs(x * 1e-6)) call abort