/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_msfees.c | 1022 int sum = 0; local 1067 sum += this; 1072 msyslog(LOG_ERR, "MSF%d: %d: This=%d (%d), other=%d/%d, sum=%d, count=%d, pps_step=%d, suspect=%x", ees->unit, p, ees->last_steps[p], this_step, other_step, third_step, sum, count, pps_step, suspect_4ms_step); 1073 if (count != 0) sum = ((sum * 60) + (count /2)) / count; 1085 ees->last_step_late += sincelast - ((sum) ? sum : ees->last_step_secs); 1096 sum = 4 * 60; 1101 ees->second, old_sincelast, ees->last_step_late, count, sum, [all...] |
/freebsd-11-stable/sys/dev/advansys/ |
H A D | advlib.c | 496 u_int16_t sum; local 503 sum = 0; 507 sum += *wbuf; 520 sum += *wbuf; 526 return (sum); 1249 u_int32_t sum; local 1252 sum = 0; 1255 sum += ADV_INW(adv, ADV_LRAM_DATA); 1256 return (sum); 1380 u_int16_t sum; local [all...] |
/freebsd-11-stable/sbin/routed/ |
H A D | rdisc.c | 675 u_int sum = 0; local 679 sum += *p++; 682 sum += *(u_char *)p; 685 sum = (sum >> 16) + (sum & 0xffff); 686 sum += (sum >> 16); 687 return (~sum);
|
/freebsd-11-stable/sys/net/altq/ |
H A D | altq_red.c | 547 int sum; local 567 sum = ~ntohs(ip->ip_sum) & 0xffff; 568 sum += (~otos & 0xffff) + ip->ip_tos; 569 sum = (sum >> 16) + (sum & 0xffff); 570 sum += (sum >> 16); /* add carry */ 571 ip->ip_sum = htons(~sum & 0xffff);
|
/freebsd-11-stable/tools/tools/ncpus/ |
H A D | acpidump.h | 36 u_char sum; member in struct:ACPIrsdp
|
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/ |
H A D | aircrack-ptw-lib.c | 285 static int doRound(PTW_tableentry sortedtable[][n], int keybyte, int fixat, uint8_t fixvalue, int * searchborders, uint8_t * key, int keylen, PTW_attackstate * state, uint8_t sum, int * strongbytes) { argument 296 if(doRound(sortedtable, keybyte+1, fixat, fixvalue, searchborders, key, keylen, state, (256-tmp+sum)%256, strongbytes) == 1) { 303 key[keybyte] = fixvalue-sum; 307 key[keybyte] = sortedtable[keybyte][i].b - sum;
|
/freebsd-11-stable/sys/kern/ |
H A D | kern_uuid.c | 203 int i, sum; local 211 sum = 0; 213 sum += addr[i]; 214 if (sum == 0)
|
/freebsd-11-stable/usr.sbin/ctm/ctm_rmail/ |
H A D | ctm_rmail.c | 248 #define add_ck(sum,x) \ 249 ((sum) += ((x)&0xff) + (sum) + (((sum)&0x8000) ? 1 : 0)) 376 * Must be a line of encoded data. Decode it, sum it, and save it.
|
/freebsd-11-stable/contrib/ntp/libparse/ |
H A D | clk_rawdcf.c | 192 u_long sum = 0; local 199 sum <<= 1; 200 sum |= (buf[i] != zero[i]); 202 return sum;
|
H A D | clk_meinberg.c | 163 unsigned int sum = 0; local 167 sum += *p++; 169 return (CSUM) sum;
|
/freebsd-11-stable/contrib/subversion/subversion/include/private/ |
H A D | svn_fs_fs_private.h | 88 /* sum of values in this bracket */ member in struct:svn_fs_fs__histogram_line_t 89 apr_uint64_t sum; 96 /* total sum over all brackets */ 150 /* sum of all ref_counts */ 153 /* sum of ref_count * expanded_size, 157 /* sum of all representation delta chain lengths */ 177 /* sum total of all rev / pack file sizes in bytes */ 186 /* sum of all changed path list sizes on disk in bytes */
|
/freebsd-11-stable/contrib/gcc/ |
H A D | cfg.c | 437 int sum = 0; 447 sum += e->probability; 448 if (EDGE_COUNT (bb->succs) && abs (sum - REG_BR_PROB_BASE) > 100) 449 fprintf (file, "Invalid sum of outgoing probabilities %.1f%%\n", 450 sum * 100.0 / REG_BR_PROB_BASE); 456 fprintf (file, "Invalid sum of outgoing counts %i, should be %i\n", 461 sum = 0; 463 sum += EDGE_FREQUENCY (e); 464 if (abs (sum - bb->frequency) > 100) 466 "Invalid sum o 431 int sum = 0; local [all...] |
/freebsd-11-stable/sys/dev/fe/ |
H A D | if_fe_cbus.c | 302 u_char sum; local 335 sum = fe_inb(sc, 0x1e); 337 sum ^= sc->enaddr[i]; 338 if (sum != 0) 806 u_char sum, save7; local 849 sum = fe_inb(sc, 0x1e); 851 sum ^= sc->enaddr[i]; 852 if (sum != 0)
|
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | reloc.c | 350 . in the relocation sum. If the target relocations don't have an 1428 bfd_vma a, b, sum; local 1472 sum = a + b; 1475 sign bit are junk now; ignore them. If the sum is 1477 if the sum is negative, make sure we did not have all 1487 if (((~(a ^ b)) & (a ^ sum)) & signmask & addrmask) 1498 will get sum == 0, but there is an overflow, since the 1501 operands when testing for the sum overflowing its final 1503 sum = (a + b) & addrmask; 1504 if ((a | b | sum) [all...] |
/freebsd-11-stable/sys/dev/firewire/ |
H A D | fwcrom.c | 226 uint32_t data, sum, crc = 0; local 231 sum = ((crc >> 12) ^ (data >> shift)) & 0xf; 232 crc = (crc << 4) ^ (sum << 12) ^ (sum << 5) ^ sum;
|
/freebsd-11-stable/sys/dev/snc/ |
H A D | dp83932subr.c | 449 u_int8_t rom_sum, sum = 0x00; local 455 sum = sum ^ eeprom[i]; 460 if (sum != rom_sum) { 463 sum, rom_sum);
|
/freebsd-11-stable/lib/libc/stdio/ |
H A D | vfscanf.c | 133 size_t sum = 0; local 136 sum += n; 140 if (sum == 0) 145 sum += width; 151 return (sum);
|
/freebsd-11-stable/contrib/gperf/src/ |
H A D | search.cc | 66 hash (keyword) = sum (asso_values[keyword[i] + alpha_inc[i]] : i in Pos) 85 sum (asso_values[c] : c in selchars[keyword]) are different. 120 sum (asso_values[alpha_unify[keyword[i] + alpha_inc[i]]] : i in Pos) 1060 Return the sum of this expression over all equivalence classes. */ 1061 unsigned int sum = 0; local 1081 sum += cls->_cardinality * cls->_cardinality; 1083 sum -= split_cardinalities[i] * split_cardinalities[i]; 1086 return sum; 1315 int sum = option[NOLENGTH] ? 0 : keyword->_allchars_length; local 1320 sum 1478 int sum = option[NOLENGTH] ? 0 : keyword->_allchars_length; local [all...] |
/freebsd-11-stable/sbin/ping/ |
H A D | ping.c | 200 static double tsum = 0.0; /* sum of all times, for doing average */ 201 static double tsumsq = 0.0; /* sum of all times squared, for std. dev. */ 1377 int nleft, sum; local 1386 sum = 0; 1390 * Our algorithm is simple, using a 32 bit accumulator (sum), we add 1395 sum += *w++; 1403 sum += last.us; 1407 sum = (sum >> 16) + (sum [all...] |
/freebsd-11-stable/usr.bin/diff/ |
H A D | diffreg.c | 1306 int sum; local 1308 sum = 1; 1324 sum = sum * 127 + chrtran(t); 1339 sum = sum * 127 + t; 1356 sum = sum * 127 + chrtran(t); 1370 * There is a remote possibility that we end up with a zero sum. 1373 return (sum [all...] |
/freebsd-11-stable/sbin/dump/ |
H A D | traverse.c | 849 int32_t sum, cnt, *lp; local 860 sum = 0; 863 sum += *lp++; 864 sum += *lp++; 865 sum += *lp++; 866 sum += *lp++; 868 spcl.c_checksum = CHECKSUM - sum;
|
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-udp.c | 535 uint16_t sum, udp_sum; local 546 sum = udp_cksum(ndo, ip, up, length + sizeof(struct udphdr)); 548 if (sum != 0) { 551 in_cksum_shouldbe(udp_sum, sum))); 553 ND_PRINT((ndo, "[udp sum ok] ")); 559 sum = udp6_cksum(ndo, ip6, up, length + sizeof(struct udphdr)); 562 if (sum != 0) { 565 in_cksum_shouldbe(udp_sum, sum))); 567 ND_PRINT((ndo, "[udp sum ok] "));
|
H A D | print-tcp.c | 370 uint16_t sum, tcp_sum; local 374 sum = tcp_cksum(ndo, ip, tp, length); 378 if (sum != 0) 380 in_cksum_shouldbe(tcp_sum, sum))); 386 sum = tcp6_cksum(ndo, ip6, tp, length); 390 if (sum != 0) 392 in_cksum_shouldbe(tcp_sum, sum)));
|
/freebsd-11-stable/sys/dev/qlxgbe/ |
H A D | ql_misc.c | 848 uint32_t sum = 0; local 852 sum += *buf++; 854 while (sum >> 16) 855 sum = (sum & 0xFFFF) + (sum >> 16); 857 return (~sum);
|
/freebsd-11-stable/contrib/gdtoa/ |
H A D | g_ddfmt.c | 127 z = sum(x, y);
|