Searched refs:sum (Results 1 - 6 of 6) sorted by relevance

/system/core/libnetutils/
H A Dpacket.c68 uint32_t sum = startsum; local
72 sum += *up++;
76 sum += (uint16_t) *(uint8_t *)up;
78 while ((upper16 = (sum >> 16)) != 0) {
79 sum = (sum & 0xffff) + upper16;
81 return sum;
84 static uint32_t finish_sum(uint32_t sum) argument
86 return ~sum & 0xffff;
166 uint32_t sum; local
[all...]
/system/core/toolbox/
H A Dhd.c20 int sum; local
64 sum = 0;
78 sum += buf[i];
93 printf("sum %x\n", sum);
H A Dls.c103 int sum = 0; local
105 /* run through the directory and sum up the file block sizes */
123 sum += s.st_blocks / 2;
126 printf("total %d\n", sum);
/system/extras/tests/ext4/
H A Drand_emmc_perf.c54 struct timeval sum = { 0 }; local
80 timeradd(&sum, &t, &sum);
88 total_usecs = (sum.tv_sec * 1000000LL) + sum.tv_usec;
/system/core/libmemtrack/
H A Dmemtrack.c143 ssize_t sum = 0; local
151 sum += p->types[type].records[j].size_in_bytes;
156 return sum;
/system/core/adb/
H A Dtransport.c220 unsigned sum; local
227 sum = 0;
229 sum += *x++;
231 p->msg.data_check = sum;
1217 unsigned count, sum; local
1222 sum = 0;
1224 sum += *x++;
1227 if(sum != p->msg.data_check) {

Completed in 98 milliseconds