Branch Coverage

lib/PDL/Image2D/resample.c
Criterion Covered Total %
branch 27 64 42.1


line true false branch
54 0 0 if (p>0) {
56 0 0 while (--p) r *= x ;
59 0 0 while (++p) r *= recip ;
78 90000 30000 for( j = 0; j < ncoeff; j++ ) {
79 290000 90000 for( i = 0; i < ncoeff; i++ ) {
103 0 0 if (fabs(x)<1e-4)
141 196608 6 for (i=1 ; i
142 97536 99072 if (j > i) {
147 393204 6 while (m>=2 && j>m) {
196602 196602 while (m>=2 && j>m) {
154 90 6 while (n > mmax) {
162 196602 90 for (m=1 ; m
163 1474560 196602 for (i=m ; i<=n ; i+=istep) {
222 98304 6 for (i=0 ; i
227 98304 6 for (i=np/2 ; i
241 12006 6 for (i=0 ; i
283 6 0 if (kernel_type==NULL || !strcmp(kernel_type, "default") || !strcmp(kernel_type, "tanh")) {
6 0 if (kernel_type==NULL || !strcmp(kernel_type, "default") || !strcmp(kernel_type, "tanh")) {
6 0 if (kernel_type==NULL || !strcmp(kernel_type, "default") || !strcmp(kernel_type, "tanh")) {
285 0 0 } else if (!strcmp(kernel_type, "sinc")) {
288 0 0 for (i=1 ; i
292 0 0 } else if (!strcmp(kernel_type, "sinc2")) {
295 0 0 for (i=1 ; i
300 0 0 } else if (!strcmp(kernel_type, "lanczos")) {
301 0 0 for (i=0 ; i
303 0 0 if (fabsl(x)<2) {
309 0 0 } else if (!strcmp(kernel_type, "hamming")) {
312 0 0 for (i=0 ; i
314 0 0 if (i<(samples-1)/2) {
320 0 0 } else if (!strcmp(kernel_type, "hann")) {
323 0 0 for (i=0 ; i
325 0 0 if (i<(samples-1)/2) {