• Home
  • Raw
  • Download

Lines Matching full:parameter

5 #define TEST_ISNAN(v) logical, parameter :: test_##v =.NOT.(v.EQ.v)
8 integer(4), parameter :: i4_pmax = 2147483647_4
13 integer(4), parameter :: i4_nmax = -2147483647_4 - 1_4
19 logical, parameter :: test_overflow_unary_minus1 = (-i4_nmax).EQ.i4_nmax
20 logical, parameter :: test_no_overflow_unary_minus1 = (-i4_pmax).EQ.(i4_nmax+1_4)
21 logical, parameter :: test_no_overflow_unary_plus1 = (+i4_pmax).EQ.i4_pmax
22 logical, parameter :: test_no_overflow_unary_plus2 = (+i4_nmax).EQ.i4_nmax
25 logical, parameter :: test_overflow_add1 = (i4_pmax+1_4).EQ.i4_nmax
27 logical, parameter :: test_overflow_add2 = (i4_nmax + (-1_4)).EQ.i4_pmax
29 logical, parameter :: test_overflow_add3 = (i4_pmax + i4_pmax).EQ.(-2_4)
31 logical, parameter :: test_overflow_add4 = (i4_nmax + i4_nmax).EQ.(0_4)
32 logical, parameter :: test_no_overflow_add1 = (i4_pmax + 0_4).EQ.i4_pmax
33 logical, parameter :: test_no_overflow_add2 = (i4_nmax + (-0_4)).EQ.i4_nmax
34 logical, parameter :: test_no_overflow_add3 = (i4_pmax + i4_nmax).EQ.(-1_4)
35 logical, parameter :: test_no_overflow_add4 = (i4_nmax + i4_pmax).EQ.(-1_4)
38 logical, parameter :: test_overflow_sub1 = (i4_nmax - 1_4).EQ.i4_pmax
40 logical, parameter :: test_overflow_sub2 = (i4_pmax - (-1_4)).EQ.i4_nmax
42 logical, parameter :: test_overflow_sub3 = (i4_nmax - i4_pmax).EQ.(1_4)
44 logical, parameter :: test_overflow_sub4 = (i4_pmax - i4_nmax).EQ.(-1_4)
45 logical, parameter :: test_no_overflow_sub1 = (i4_nmax - 0_4).EQ.i4_nmax
46 logical, parameter :: test_no_overflow_sub2 = (i4_pmax - (-0_4)).EQ.i4_pmax
47 logical, parameter :: test_no_overflow_sub3 = (i4_nmax - i4_nmax).EQ.0_4
48 logical, parameter :: test_no_overflow_sub4 = (i4_pmax - i4_pmax).EQ.0_4
52 logical, parameter :: test_overflow_mult1 = (i4_pmax*2_4).EQ.(-2_4)
54 logical, parameter :: test_overflow_mult2 = (i4_nmax*2_4).EQ.(0_4)
56 logical, parameter :: test_overflow_mult3 = (i4_nmax*i4_nmax).EQ.(0_4)
58 logical, parameter :: test_overflow_mult4 = (i4_pmax*i4_pmax).EQ.(1_4)
61 logical, parameter :: test_overflow_div1 = (i4_nmax/(-1_4)).EQ.(i4_nmax)
62 logical, parameter :: test_no_overflow_div1 = (i4_nmax/(-2_4)).EQ.(1_4 + i4_pmax/2_4)
63 logical, parameter :: test_no_overflow_div2 = (i4_nmax/i4_nmax).EQ.(1_4)
66 logical, parameter :: test_overflow_pow1 = (i4_pmax**2_4).EQ.(1_4)
68 logical, parameter :: test_overflow_pow3 = (i4_nmax**2_4).EQ.(0_4)
69 logical, parameter :: test_no_overflow_pow1 = ((-1_4)**i4_nmax).EQ.(1_4)
70 logical, parameter :: test_no_overflow_pow2 = ((-1_4)**i4_pmax).EQ.(-1_4)
77 real(4), parameter :: r4_pmax = 3.4028235E38
78 real(4), parameter :: r4_nmax = -3.4028235E38
80 real(4), parameter :: r4_nan = 0._4/0._4
83 real(4), parameter :: r4_pinf = 1._4/0._4
85 real(4), parameter :: r4_ninf = -1._4/0._4
87 logical, parameter :: test_r4_nan_parentheses1 = .NOT.(((r4_nan)).EQ.r4_nan)
88 logical, parameter :: test_r4_nan_parentheses2 = .NOT.(((r4_nan)).NE.r4_nan)
89 logical, parameter :: test_r4_pinf_parentheses = ((r4_pinf)).EQ.r4_pinf
90 logical, parameter :: test_r4_ninf_parentheses = ((r4_ninf)).EQ.r4_ninf
93 logical, parameter :: test_r4_negation1 = (-r4_pmax).EQ.r4_nmax
94 logical, parameter :: test_r4_negation2 = (-r4_nmax).EQ.r4_pmax
95 logical, parameter :: test_r4_negation3 = (-r4_pinf).EQ.r4_ninf
96 logical, parameter :: test_r4_negation4 = (-r4_ninf).EQ.r4_pinf
97 logical, parameter :: test_r4_plus1 = (+r4_pmax).EQ.r4_pmax
98 logical, parameter :: test_r4_plus2 = (+r4_nmax).EQ.r4_nmax
99 logical, parameter :: test_r4_plus3 = (+r4_pinf).EQ.r4_pinf
100 logical, parameter :: test_r4_plus4 = (+r4_ninf).EQ.r4_ninf
102 real(4), parameter :: r4_nan_minus = (-r4_nan)
104 real(4), parameter :: r4_nan_plus = (+r4_nan)
108 logical, parameter :: test_inf_r4_add9 = (r4_pmax + r4_pmax).eq.(r4_pinf)
110 logical, parameter :: test_inf_r4_add10 = (r4_nmax + r4_nmax).eq.(r4_ninf)
112 logical, parameter :: test_inf_r4_sub9 = (r4_pmax - r4_nmax).eq.(r4_pinf)
114 logical, parameter :: test_inf_r4_sub10 = (r4_nmax - r4_pmax).eq.(r4_ninf)
117 logical, parameter :: test_inf_r4_add1 = (r4_pinf + r4_pinf).EQ.(r4_pinf)
118 logical, parameter :: test_inf_r4_add2 = (r4_ninf + r4_ninf).EQ.(r4_ninf)
119 logical, parameter :: test_inf_r4_add3 = (r4_pinf + r4_nmax).EQ.(r4_pinf)
120 logical, parameter :: test_inf_r4_add4 = (r4_pinf + r4_pmax).EQ.(r4_pinf)
121 logical, parameter :: test_inf_r4_add5 = (r4_ninf + r4_pmax).EQ.(r4_ninf)
122 logical, parameter :: test_inf_r4_add6 = (r4_ninf + r4_nmax).EQ.(r4_ninf)
123 logical, parameter :: test_inf_r4_add7 = (r4_ninf + 0._4).EQ.(r4_ninf)
124 logical, parameter :: test_inf_r4_add8 = (r4_pinf + 0._4).EQ.(r4_pinf)
127 real(4), parameter :: r4_nan_sub1 = r4_pinf - r4_pinf
130 real(4), parameter :: r4_nan_sub2 = r4_ninf - r4_ninf
133 real(4), parameter :: r4_nan_add1 = r4_ninf + r4_pinf
136 real(4), parameter :: r4_nan_add2 = r4_pinf + r4_ninf
140 real(4), parameter :: r4_nan_sub3 = 0._4 - r4_nan
142 real(4), parameter :: r4_nan_sub4 = r4_nan - r4_pmax
144 real(4), parameter :: r4_nan_sub5 = r4_nan - r4_nmax
146 real(4), parameter :: r4_nan_sub6 = r4_nan - r4_nan
148 real(4), parameter :: r4_nan_add3 = 0._4 + r4_nan
150 real(4), parameter :: r4_nan_add4 = r4_nan + r4_pmax
152 real(4), parameter :: r4_nan_add5 = r4_nmax + r4_nan
154 real(4), parameter :: r4_nan_add6 = r4_nan + r4_nan
158 logical, parameter :: test_inf_r4_mult1 = (1.5_4*r4_pmax).eq.(r4_pinf)
160 logical, parameter :: test_inf_r4_mult2 = (1.5_4*r4_nmax).eq.(r4_ninf)
162 logical, parameter :: test_inf_r4_div1 = (r4_nmax/(-0.5_4)).eq.(r4_pinf)
164 logical, parameter :: test_inf_r4_div2 = (r4_pmax/(-0.5_4)).eq.(r4_ninf)
167 logical, parameter :: test_inf_r4_mult3 = (r4_pinf*r4_pinf).EQ.(r4_pinf)
168 logical, parameter :: test_inf_r4_mult4 = (r4_ninf*r4_ninf).EQ.(r4_pinf)
169 logical, parameter :: test_inf_r4_mult5 = (r4_pinf*0.1_4).EQ.(r4_pinf)
170 logical, parameter :: test_inf_r4_mult6 = (r4_ninf*r4_nmax).EQ.(r4_pinf)
171 logical, parameter :: test_inf_r4_div3 = (r4_pinf/0.).EQ.(r4_pinf)
172 logical, parameter :: test_inf_r4_div4 = (r4_ninf/0.).EQ.(r4_ninf)
173 logical, parameter :: test_inf_r4_div5 = (0./r4_pinf).EQ.(0.)
174 logical, parameter :: test_inf_r4_div6 = (0./r4_ninf).EQ.(0.)
175 logical, parameter :: test_inf_r4_div7 = (r4_pinf/r4_pmax).EQ.(r4_pinf)
176 logical, parameter :: test_inf_r4_div8 = (r4_pinf/r4_nmax).EQ.(r4_ninf)
177 logical, parameter :: test_inf_r4_div9 = (r4_nmax/r4_pinf).EQ.(0.)
178 logical, parameter :: test_inf_r4_div10 = (r4_nmax/r4_ninf).EQ.(0.)
181 real(4), parameter :: r4_nan_div1 = 0._4/0._4
184 real(4), parameter :: r4_nan_div2 = r4_ninf/r4_ninf
187 real(4), parameter :: r4_nan_div3 = r4_ninf/r4_pinf
190 real(4), parameter :: r4_nan_div4 = r4_pinf/r4_ninf
193 real(4), parameter :: r4_nan_div5 = r4_pinf/r4_pinf
196 real(4), parameter :: r4_nan_mult1 = r4_pinf*0._4
199 real(4), parameter :: r4_nan_mult2 = 0._4*r4_ninf
203 real(4), parameter :: r4_nan_div6 = 0._4/r4_nan
205 real(4), parameter :: r4_nan_div7 = r4_nan/r4_nan
207 real(4), parameter :: r4_nan_div8 = r4_nan/0._4
209 real(4), parameter :: r4_nan_div9 = r4_nan/1._4
211 real(4), parameter :: r4_nan_mult3 = r4_nan*1._4
213 real(4), parameter :: r4_nan_mult4 = r4_nan*r4_nan
215 real(4), parameter :: r4_nan_mult5 = 0._4*r4_nan
219 ! logical, parameter :: test_inf_r4_exp1 = (r4_pmax**2._4).EQ.(r4_pinf)
222 logical, parameter :: test_inf_r4_eq1 = r4_pinf.EQ.r4_pinf
223 logical, parameter :: test_inf_r4_eq2 = r4_ninf.EQ.r4_ninf
224 logical, parameter :: test_inf_r4_eq3 = .NOT.(r4_pinf.EQ.r4_ninf)
225 logical, parameter :: test_inf_r4_eq4 = .NOT.(r4_pinf.EQ.r4_pmax)
227 logical, parameter :: test_inf_r4_ne1 = .NOT.(r4_pinf.NE.r4_pinf)
228 logical, parameter :: test_inf_r4_ne2 = .NOT.(r4_ninf.NE.r4_ninf)
229 logical, parameter :: test_inf_r4_ne3 = r4_pinf.NE.r4_ninf
230 logical, parameter :: test_inf_r4_ne4 = r4_pinf.NE.r4_pmax
232 logical, parameter :: test_inf_r4_gt1 = .NOT.(r4_pinf.GT.r4_pinf)
233 logical, parameter :: test_inf_r4_gt2 = .NOT.(r4_ninf.GT.r4_ninf)
234 logical, parameter :: test_inf_r4_gt3 = r4_pinf.GT.r4_ninf
235 logical, parameter :: test_inf_r4_gt4 = r4_pinf.GT.r4_pmax
237 logical, parameter :: test_inf_r4_lt1 = .NOT.(r4_pinf.LT.r4_pinf)
238 logical, parameter :: test_inf_r4_lt2 = .NOT.(r4_ninf.LT.r4_ninf)
239 logical, parameter :: test_inf_r4_lt3 = r4_ninf.LT.r4_pinf
240 logical, parameter :: test_inf_r4_lt4 = r4_pmax.LT.r4_pinf
242 logical, parameter :: test_inf_r4_ge1 = r4_pinf.GE.r4_pinf
243 logical, parameter :: test_inf_r4_ge2 = r4_ninf.GE.r4_ninf
244 logical, parameter :: test_inf_r4_ge3 = .NOT.(r4_ninf.GE.r4_pinf)
245 logical, parameter :: test_inf_r4_ge4 = .NOT.(r4_pmax.GE.r4_pinf)
247 logical, parameter :: test_inf_r4_le1 = r4_pinf.LE.r4_pinf
248 logical, parameter :: test_inf_r4_le2 = r4_ninf.LE.r4_ninf
249 logical, parameter :: test_inf_r4_le3 = .NOT.(r4_pinf.LE.r4_ninf)
250 logical, parameter :: test_inf_r4_le4 = .NOT.(r4_pinf.LE.r4_pmax)
253 logical, parameter :: test_nan_r4_eq1 = .NOT.(r4_nan.EQ.r4_nan)
254 logical, parameter :: test_nan_r4_ne1 = .NOT.(r4_nan.NE.r4_nan)