/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | in6_cksum.c | 85 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);} 99 int sum = 0; local 138 sum += w[0]; 140 sum += w[1]; 141 sum += w[2]; sum += w[3]; sum += w[4]; sum [all...] |
H A D | esp_input.c | 221 u_char sum[AH_MAXSUMSIZE]; local 243 if (esp_auth(m, off, m->m_pkthdr.len - off - siz, sav, sum)) { 250 if (bcmp(sum0, sum, siz) != 0) { 666 u_char sum[AH_MAXSUMSIZE]; local 688 if (esp_auth(m, off, m->m_pkthdr.len - off - siz, sav, sum)) { 695 if (bcmp(sum0, sum, siz) != 0) {
|
H A D | esp_core.c | 1082 esp_auth(m0, skip, length, sav, sum) 1087 u_char *sum; 1179 bcopy(sumbuf, sum, siz); /*XXX*/
|
H A D | icmp6.c | 376 int code, sum, noff; local 408 if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) { 411 icmp6->icmp6_type, sum, ip6_sprintf(&ip6->ip6_src)));
|
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/ |
H A D | ufs_attrlist.c | 64 reduce(int *sum) argument 68 l_util.l = *sum; 69 *sum = l_util.s[0] + l_util.s[1]; 70 if (*sum > 65535) 71 *sum -= 65535; 80 int sum; local 82 sum = 0; 85 sum += w[0]; sum += w[1]; 86 sum [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | in_cksum.c | 99 q_util.q = sum; \ 100 sum = q_util.s[0] + q_util.s[1] + q_util.s[2] + q_util.s[3]; \ 104 q_util.q = sum; \ 106 sum = l_util.s[0] + l_util.s[1]; \ 107 ADDCARRY(sum); \ 110 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);} 128 u_int32_t sum = a + b; local 131 return (sum); 137 u_int64_t sum; local 152 u_int32_t sum = 0; local 219 u_int32_t sum = a + b; local 228 u_int64_t sum; local 242 u_int32_t sum = 0; local [all...] |
H A D | ip_dummynet.h | 82 * sum of all weights. 364 int sum; /* sum of weights of all active sessions */ member in struct:dn_pipe
|
H A D | ip_input.c | 541 u_short sum; local 681 sum = !(m->m_pkthdr.csum_flags & CSUM_IP_VALID); 691 sum = in_cksum(m, hlen); 699 sum = 0; 704 if (sum) { 1077 sum = IPREASS_HASH(ip->ip_src.s_addr, ip->ip_id); 1082 for (fp = ipq[sum].next; fp != &ipq[sum]; fp = fp->next) 1140 fp, &ipq[sum], &div_info, &args.divert_rule); 1142 m = ip_reass(m, fp, &ipq[sum]); [all...] |
H A D | ip_dummynet.c | 678 p->V += (len<<MY_M) / p->sum ; /* update V */ 729 p->sum = 0 ; 815 pe->sum -= q->fs->weight ; 1292 * the sum of weights for the pipe; otherwise, remove flow from 1300 pipe->sum += fs->weight ; /* add weight of new queue */ 1898 b->pipe->sum -= b->weight * b->backlogged ;
|
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/ |
H A D | IOHibernateRestoreKernel.c | 248 uint32_t sum; local 260 sum = hibernate_sum((uint8_t *) src, PAGE_SIZE); 267 return (sum); 305 uint32_t sum; local 386 sum = gIOHibernateCurrentHeader->actualRestore1Sum; 388 gIOHibernateCurrentHeader->diag[1] = sum; 445 sum += store_one_page(gIOHibernateCurrentHeader->processorFlags, 497 sum += store_one_page(gIOHibernateCurrentHeader->processorFlags, 506 gIOHibernateCurrentHeader->actualImage1Sum = sum;
|
H A D | IORangeAllocator.cpp | 368 IORangeScalar sum = 0; local 371 sum += elements[index].end - elements[index].start + 1; 373 return( sum );
|
H A D | IOHibernateIO.cpp | 1710 uint32_t restore1Sum, sum, sum1, sum2; local 1825 // sum __HIB sect, with zeros for the stack 1987 sum = hibernate_sum(src, page_size); 2014 sum2 += sum; 2016 sum1 += sum; 2196 uint32_t sum; local 2211 sum = gIOHibernateCurrentHeader->actualImage1Sum; 2214 HIBLOG("hibernate_machine_init: state %d, image pages %d, sum was %x, image1Size %qx, conflictCount %d, nextFree %x\n", 2215 gIOHibernateState, pagesDone, sum, gIOHibernateCurrentHeader->image1Size, 2307 sum [all...] |
H A D | IONVRAM.cpp | 1157 UInt32 cnt, checksum, sum = 0; local 1161 sum += tmpBuffer[cnt]; 1163 checksum = (sum >> 16) + (sum & 0x0000FFFF);
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/console/panic_ui/ |
H A D | genimage.c | 208 unsigned int i, pixels, sum, encodedSize, fg24= 0xFFFFFF, bg24=0x222222; local 449 for(sum=0,i=0; i<encodedSize; i++) 451 sum += fileArr[i]; 452 sum <<= sum&1; local 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); 478 unsigned int quantity, line, col, depth, sum; local 554 sum <<= sum&1; local [all...] |
H A D | qtif2kraw.c | 113 unsigned int i, pixels, sum, encodedSize, fg24= 0xFFFFFF, bg24=0x222222; local 257 for (sum=0,i=0; i<encodedSize; i++) 259 sum += fileArr[i]; 260 sum <<= sum&1; local 279 fwrite(&sum, sizeof(sum), 1, ostream); 280 sum = encodedSize; 283 encodedSize = sum;
|
/macosx-10.5.8/xnu-1228.15.4/libkern/stdio/ |
H A D | scanf.c | 320 size_t sum = 0; local 323 sum += n; 326 if (sum == 0) 330 sum += width; 336 nread += sum;
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/console/ |
H A D | panic_dialog.c | 446 unsigned int sum, i; local 455 for (sum=0,i=0; i<size; i++) { 456 sum += newimage->data[i]; 457 sum <<= sum&1; local 460 if ( sum != newimage->pd_sum )
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/YarrowCoreLib/src/ |
H A D | prng.c | 524 UINT sum; 569 for(i=K,sum=0;i<TOTAL_SOURCES;sum+=temp[i++]); /* Stupid C trick */ 570 if(sum>THRESHOLD)
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/ |
H A D | xsumas.s | 37 * r5 - Accumulated sum value 43 * This is the internet (IP, TCP) checksum algorithm, which is the 1s-complement sum 47 * final sum is folded down to 16 bits. On 32-bit machines we use "adde", which is 50 * all 64-bits into a 16-bit sum at the end. We cannot use "adde" on 64-bit sums, 52 * is set on the low 32-bits of the sum.) 91 ; r5 = accumulated sum parameter 136 ; r5 = accumulated sum parameter 177 ; r5 = accumulated sum parameter 214 ; r5 = accumulated sum parameter 243 ; r5 = accumulated sum paramete [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ |
H A D | kdp_udp.c | 354 unsigned int high, low, sum; local 364 sum = (high << 8) + low; 365 sum = (sum >> 16) + (sum & 65535); 367 return (sum > 65535 ? sum - 65535 : sum);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/ |
H A D | asp_proto.c | 1610 unsigned char sum; local 1628 sum = 0; 1631 sum += curr_scb->tmo_delta; 1632 if (sum > scb->tmo_delta) { 1633 sum -= curr_scb->tmo_delta; 1634 scb->tmo_delta -= sum; 1640 scb->tmo_delta -= sum; 2156 int err, len, sum, rval; local 2260 for (rval = 0, sum = 0; mdata && (rval == 0); mdata = gbuf_cont(mdata)) 2264 if ((len + sum) > datbu [all...] |
H A D | atp_write.c | 1009 unsigned int sum; local 1026 sum = 0; 1029 sum += curr_trp->tr_tmo_delta; 1030 if (sum > trp->tr_tmo_delta) { 1031 sum -= curr_trp->tr_tmo_delta; 1032 trp->tr_tmo_delta -= sum; 1038 trp->tr_tmo_delta -= sum;
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/ |
H A D | hw_vm.s | 225 rlwinm r9,r9,0,0,31 ; Clean top half of sum
|