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

1234567

/illumos-gate/usr/src/common/net/dhcp/
H A Dipv4_sum.c38 uint_t sum = 0; local
46 sum += (uint_t)*cp++;
47 if (sum >= oneword) { /* Wrap carries into low bit */
48 sum -= oneword;
49 sum++;
52 return ((uint16_t)~sum);
H A Dudp_sum.c56 uint_t sum = 0; local
85 sum += *sp++;
86 if (sum >= BIT_WRAP) {
88 sum -= BIT_WRAP;
89 sum++;
101 return (~sum == 0 ? ~0 : ~sum);
/illumos-gate/usr/src/boot/lib/libstand/
H A Din_cksum.c57 int sum = 0, oddbyte = 0, v = 0; local
63 sum += v + *cp++;
68 sum += *(u_short *)cp;
74 sum += *cp++ << 8;
75 sum += *cp++;
77 sum += *cp++;
78 sum += *cp++ << 8;
90 sum += v;
91 sum = (sum >> 1
[all...]
/illumos-gate/usr/src/lib/libpp/common/
H A Dppmacref.c31 ppmacref(struct ppsymbol* sym, char* file, int line, int type, unsigned long sum) argument
43 sum = strsum(sym->macro->value, (long)sym->macro->arity);
44 p += sfsprintf(p, MAXTOKEN, " %lu", sum);
/illumos-gate/usr/src/ucbcmd/sum/
H A Dsum.c27 unsigned int sum; local
38 "sum: Can't open %s\n", argv[i]);
44 sum = 0;
48 if (sum&01)
49 sum = (sum>>1) + 0x8000;
51 sum >>= 1;
52 sum += c;
53 sum &= 0xFFFF;
58 "sum
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dib_stats.c88 uint64_t *sum; local
100 sum = (uint64_t *)&stats;
102 *(sum++) += *(src++);
H A Dstats.c122 uint64_t *sum; local
138 sum = (uint64_t *)&stats;
142 *(sum++) += *(src++);
/illumos-gate/usr/src/lib/libast/common/tm/
H A Dtmdata.c175 * sum of days in months before month i
178 static short sum[] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }; variable
282 Tm_data_t _tm_data_ = { format, lex, digit, days, sum, leap, zone };
/illumos-gate/usr/src/cmd/tic/
H A Dtic_hash.c176 * The current hash function is the sum of each consectutive pair
184 long sum = 0; local
187 sum += *string + (*(string + 1) << 8);
191 return (sum % Hashtabsize);
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dbiosacpi.c111 u_int8_t *cp, sum; local
121 sum = 0;
123 sum += *(cp + idx);
124 if (sum != 0)
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dencode.c52 ** the sum of the original character value and the offset exceeds 256, then
75 ** If the sum is 0x01, replace it with 0x01 0x02. If the sum
141 int sum; local
143 sum = cnt[i] + cnt[(i+1)&0xff] + cnt[(i+'\'')&0xff];
144 if( sum<m ){
145 m = sum;
/illumos-gate/usr/src/common/ucode/
H A Ducode_utils.c83 * If there is extended signature table, total_size is the sum of
105 ucode_checksum_intel(uint32_t sum, uint32_t size, uint8_t *code) argument
112 sum += lcode[i];
114 return (sum);
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dchecksum.c51 * update and epilogue sum functions (stolen from libcmd)
54 sumupd(long sum, char *cp, unsigned long cnt) argument
57 return (sum);
60 sum += *cp++ & 0x00ff;
62 return (sum);
66 sumepi(long sum) argument
70 _sum = LSW(sum) + MSW(sum);
103 long sum = 0; local
159 sum
[all...]
/illumos-gate/usr/src/cmd/spell/
H A Dhashlook.c58 long sum; local
66 sum = (long)t<<(HASHWIDTH-INDEXWIDTH);
103 sum += t;
104 if (sum < h)
106 return (sum == h);
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_sack.c188 * uint32_t *sum: (referenced) total num of bytes of all the notsack'ed
193 int32_t *num, uint32_t *sum)
240 *sum -= tmp->end - tmp->begin;
248 *sum -= end - tmp->begin;
251 *sum -= tmp->end - begin;
269 *sum -= end - begin;
272 *sum -= end - tmp->begin;
279 tmp_sum = *sum;
321 *sum = tmp_sum;
333 * uint32_t *sum
192 tcp_notsack_insert(notsack_blk_t **head, tcp_seq begin, tcp_seq end, int32_t *num, uint32_t *sum) argument
337 tcp_notsack_remove(notsack_blk_t **head, tcp_seq end, int32_t *num, uint32_t *sum) argument
391 tcp_notsack_update(notsack_blk_t **head, tcp_seq begin, tcp_seq end, int32_t *num, uint32_t *sum) argument
[all...]
/illumos-gate/usr/src/stand/lib/tcp/
H A Dtcp_sack.c194 * uint32_t *sum: (referenced) total num of bytes of all the notsack'ed
199 int32_t *num, uint32_t *sum)
246 *sum -= tmp->end - tmp->begin;
254 *sum -= end - tmp->begin;
257 *sum -= tmp->end - begin;
274 *sum -= end - begin;
277 *sum -= end - tmp->begin;
284 tmp_sum = *sum;
326 *sum = tmp_sum;
338 * uint32_t *sum
198 tcp_notsack_insert(notsack_blk_t **head, tcp_seq begin, tcp_seq end, int32_t *num, uint32_t *sum) argument
342 tcp_notsack_remove(notsack_blk_t **head, tcp_seq end, int32_t *num, uint32_t *sum) argument
398 tcp_notsack_update(notsack_blk_t **head, tcp_seq begin, tcp_seq end, int32_t *num, uint32_t *sum) argument
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_make.c124 unsigned int len, sum=0; local
128 sum += len;
131 sum += len;
133 *retlen = sum;
140 unsigned int len, sum=0; local
144 sum += len;
147 sum += len;
149 *retlen = sum;
/illumos-gate/usr/src/lib/libsum/common/
H A Dsum-prng.c56 register Prng_t* sum; local
62 if (sum = newof(0, Prng_t, 1, 0))
64 sum->method = (Method_t*)method;
65 sum->name = name;
75 sum->mpy = strtoul(t, NiL, 0);
77 sum->add = v ? strtoul(v + 1, NiL, 0) : ~sum->add;
79 sum->init = v ? strtoul(v + 1, NiL, 0) : ~sum->init;
83 if (!sum
95 Prng_t* sum = (Prng_t*)p; local
104 Prng_t* sum = (Prng_t*)p; local
[all...]
/illumos-gate/usr/src/lib/libmp/common/
H A Dmult.c73 int sum; local
96 sum = 0;
99 sum += *aptr++ * bcache;
100 *cptr++ = (short)(sum & LOWBITS);
101 if (sum >= 0)
102 sum >>= fifteen;
104 sum = 0xfffe0000 | (sum >> fifteen);
106 *cptr = (short)sum;
112 sum
[all...]
/illumos-gate/usr/src/common/crypto/rng/
H A Dfips_random.c31 * Adds val1 and val2 and stores result into sum. The various input
38 * subtraction. A null sum pointer parameter is allowed. The
43 fips_add160(uint32_t *sum, uint32_t const *val1, uint32_t const *val2, argument
59 if (sum) {
60 sum[i] = partialsum;
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dcvrt_spd_data.c106 uint32_t sum; local
206 sum = compute_crc32(*sp_seg_ptr, sizeof (sp_seg_body) - 5);
209 ((char *)(&sum))[c];
/illumos-gate/usr/src/cmd/dispadmin/
H A Dsubr.c68 long sum; local
74 sum = product + htp->hrt_rem;
75 if (sum - htp->hrt_rem == product) {
76 return (sum);
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_opl.c124 opl_avg(uint_t sum, uint_t cnt) argument
126 unsigned long long s = sum * 10;
/illumos-gate/usr/src/cmd/adbgen/common/
H A Dadbsub.c88 int rcount, width, sum, i; local
92 sum = rcount = 0;
173 sum += width * rcount;
175 return (sum);
/illumos-gate/usr/src/cmd/sh/
H A Dhash.c165 unsigned int sum = 0; local
169 sum += *key++;
171 return(sum + s);

Completed in 72 milliseconds

1234567