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

/system/core/libacc/tests/data/
H A Dcontinue.c2 int i, j, sum; local
3 sum = 0;
8 sum += i * j;
11 return sum;
/system/core/toolbox/
H A Dhd.c19 int sum; local
63 sum = 0;
75 sum += buf[i];
90 printf("sum %x\n", sum);
H A Dls.c94 int sum = 0; local
96 /* run through the directory and sum up the file block sizes */
114 sum += s.st_blocks / 2;
117 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.c191 unsigned sum; local
198 sum = 0;
200 sum += *x++;
202 p->msg.data_check = sum;
1026 unsigned count, sum; local
1031 sum = 0;
1033 sum += *x++;
1036 if(sum != p->msg.data_check) {
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/data_ctrl/Ctrl/4X/
H A DackEmulUtil.c1133 UINT32 sum=0; local
1140 sum = sum + (UINT32) word16;
1143 /* take only 16 bits out of the 32 bit sum*/
1144 /*temp = (sum & 0xffff0000)>>16;*/
1145 sum = (sum & 0x0000ffff)+((sum & 0xffff0000)>>16);
1147 sum = ~sum;
1162 UINT32 sum=0; local
[all...]

Completed in 8 milliseconds