Searched defs:sum (Results 1 - 4 of 4) sorted by relevance

/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.c104 int sum = 0; local
106 /* run through the directory and sum up the file block sizes */
124 sum += s.st_blocks / 2;
127 printf("total %d\n", sum);
/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/adb/
H A Dtransport.c215 unsigned sum; local
222 sum = 0;
224 sum += *x++;
226 p->msg.data_check = sum;
1171 unsigned count, sum; local
1176 sum = 0;
1178 sum += *x++;
1181 if(sum != p->msg.data_check) {

Completed in 777 milliseconds