Lines Matching refs:sum
208 unsigned int i, pixels, sum, encodedSize, fg24= 0xFFFFFF, bg24=0x222222;
449 for(sum=0,i=0; i<encodedSize; i++)
451 sum += fileArr[i];
452 sum <<= sum&1;
455 if (debug) printf("WHD sum = %x\n", sum);
457 if ( sum != image.pd_sum )
469 if ( debug) printf("pixels = %d sum = %x\n", pixels, sum);
470 if ( debug) printf("es = %d H*W = %d sum = %x\n", encodedSize, image.pd_height*image.pd_width, image.pd_sum);
478 unsigned int quantity, line, col, depth, sum;
481 sum = 0;
491 sum += quantity * depth;
502 if (debug) printf("total Q*D = %d\n", sum);
551 for (sum=0,i=0; i<encodedSize; i++)
553 sum += fileArr[i];
554 sum <<= sum&1;
573 fwrite(&sum, sizeof(sum), 1, ostream);
574 sum = encodedSize;
577 encodedSize = sum;
635 fprintf( out_stream, "0x%08x, ", sum); /* panic dialog x */