Lines Matching refs:sum
13 uint32_t sum;29 for (sum = 0, i = 0; i < (BB_SIZE)/sizeof(uint32_t); i++) {30 uint32_t old = sum;32 sum += ntohl(*p++);34 if (sum < old)35 sum++;37 sum = ~sum;38 //fprintf(stderr, "checksum: 0x%lx\n", (long)sum);40 ((uint32_t *)bootblock)[1] = htonl(sum);