line |
true |
false |
branch |
37
|
1 |
0 |
if (val == 0 || val==temp) { |
|
0 |
1 |
if (val == 0 || val==temp) { |
45
|
1 |
0 |
if (color.rgb.r == val) { |
48
|
0 |
0 |
else if (color.rgb.g == val) { |
55
|
0 |
1 |
if (hue < 0) |
65
|
0 |
2 |
if (value == 0) { |
77
|
360016 |
90004 |
for( i=0; i< MAXCHANNELS; i++) c.channel[i]=0; |
79
|
1 |
90003 |
if (sat <= 0) { /* handle -ve in case someone supplies a bad value */ |
87
|
0 |
90003 |
if (val < 0) val = 0; |
88
|
0 |
90003 |
if (val > 1) val = 1; |
89
|
0 |
90003 |
if (sat > 1) sat = 1; |
94
|
0 |
90003 |
if (hue >= 360) |
96
|
501 |
89502 |
else if (hue < 0) |
134
|
0 |
91080 |
if (r < 0) |
136
|
0 |
91080 |
if (r > 255) |
139
|
0 |
91080 |
if (g < 0) |
141
|
0 |
91080 |
if (g > 255) |
144
|
0 |
91080 |
if (b < 0) |
146
|
0 |
91080 |
if (b > 255) |
183
|
2076111 |
0 |
while (code_count) { |
199
|
0 |
2500 |
if (fabs(nb) < 1e-10) |
206
|
149041 |
0 |
if (fabs(nb) > 1e-10) { |
260
|
88574 |
0 |
if (images[0]->channels < 4) cout.rgba.a = 255; |
265
|
29520 |
0 |
if (images[1]->channels < 4) cout.rgba.a = 255; |
270
|
0 |
0 |
if (images[2]->channels < 4) cout.rgba.a = 255; |
322
|
1 |
1 |
nout = na ? nb : nc; |
326
|
0 |
1 |
cout = na ? cb : cc; |
330
|
1 |
0 |
nout = na <= nb + n_epsilon(na,nb); |
334
|
0 |
1 |
nout = na < nb; |
338
|
0 |
1 |
nout = na >= nb - n_epsilon(na,nb); |
342
|
1 |
0 |
nout = na > nb; |
346
|
1 |
0 |
nout = fabs(na-nb) <= n_epsilon(na,nb); |
350
|
0 |
1 |
nout = fabs(na-nb) > n_epsilon(na,nb); |
354
|
1 |
0 |
nout = na && nb; |
|
0 |
1 |
nout = na && nb; |
358
|
0 |
1 |
nout = na || nb; |
|
0 |
0 |
nout = na || nb; |
362
|
1 |
0 |
nout = !na; |
380
|
0 |
0 |
if (!na) { |
389
|
0 |
0 |
if (na) { |
406
|
59041 |
0 |
if (na > 0) { |
415
|
1 |
1 |
if (!MAX_EXP_ARG) MAX_EXP_ARG = log(DBL_MAX); |
416
|
2 |
0 |
if (na <= MAX_EXP_ARG) { |