Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/titanic_41/usr/src/cmd/dtrace/test/tst/common/multiaggs/
H A Dtst.many.d43 @agg0[0] = sum(0);
44 @agg1[1] = sum(1);
45 @agg2[2] = sum(2);
46 @agg3[3] = sum(3);
47 @agg4[4] = sum(4);
48 @agg5[5] = sum(5);
49 @agg6[6] = sum(6);
50 @agg7[7] = sum(7);
51 @agg8[8] = sum(8);
52 @agg9[9] = sum(9);
[all …]
/titanic_41/usr/src/cmd/dtrace/test/tst/common/aggs/
H A Dtst.signedkeyspos.d50 @i8["cat", (char)-2] = sum(-2);
51 @i8["dog", (char)-2] = sum(-22);
52 @i8["mouse", (char)-2] = sum(-222);
53 @i8["cat", (char)-1] = sum(-1);
54 @i8["dog", (char)-1] = sum(-11);
55 @i8["mouse", (char)-1] = sum(-111);
56 @i8["cat", (char)0] = sum(0);
57 @i8["dog", (char)0] = sum(10);
58 @i8["mouse", (char)0] = sum(100);
59 @i8["cat", (char)1] = sum(1);
[all …]
H A Dtst.order.d33 @[8] = sum(1);
34 @[6] = sum(1);
35 @[7] = sum(1);
36 @[5] = sum(1);
37 @[3] = sum(1);
38 @[0] = sum(1);
39 @[9] = sum(1);
41 @tour["Ghent"] = sum(1);
42 @tour["Berlin"] = sum(1);
43 @tour["London"] = sum(1);
[all …]
H A Dtst.signedkeys.d95 @i8[(char)-2] = sum(-2);
96 @i8[(char)-1] = sum(-1);
97 @i8[(char)0] = sum(0);
98 @i8[(char)1] = sum(1);
99 @i8[(char)2] = sum(2);
101 @i16[(short)-2] = sum(-2);
102 @i16[(short)-1] = sum(-1);
103 @i16[(short)0] = sum(0);
104 @i16[(short)1] = sum(1);
105 @i16[(short)2] = sum(2);
[all …]
H A Dtst.keysort.d36 @tour["Ghent", i++, j] = sum(5 - j);
39 @tour["Berlin", i++, j] = sum(5 - j);
42 @tour["London", i++, j] = sum(5 - j);
43 @tour["Dublin", i++, j] = sum(5 - j);
46 @tour["Shanghai", i++, j] = sum(5 - j);
49 @tour["Zurich", i++, j] = sum(5 - j);
52 @tour["Regina", i++, j] = sum(5 - j);
53 @tour["Winnipeg", i++, j] = sum(5 - j);
54 @tour["Edmonton", i++, j] = sum(5 - j);
55 @tour["Calgary", i++, j] = sum(5 - j);
[all …]
H A Dtst.agghist.d21 @["demerit"] = sum(-10);
22 @["wtf"] = sum(10);
23 @["bot"] = sum(20);
25 @bagnoogle["SOAP/XML"] = sum(1);
26 @bagnoogle["XACML store"] = sum(5);
27 @bagnoogle["SAML token"] = sum(6);
29 @stalloogle["breakfast"] = sum(-5);
30 @stalloogle["non-diet pepsi"] = sum(-20);
31 @stalloogle["parrot"] = sum(-100);
/titanic_41/usr/src/lib/libsum/common/
H A Dsum-crc.c119 register Crc_t* sum; in crc_open() local
128 if (sum = newof(0, Crc_t, 1, 0)) in crc_open()
130 sum->method = (Method_t*)method; in crc_open()
131 sum->name = name; in crc_open()
136 sum->init=0; in crc_open()
137 sum->done=0xffffffff; in crc_open()
138 sum->xorsize=0x0; in crc_open()
139 sum->addsize=0x1; in crc_open()
140 sum->rotate=1; in crc_open()
143 sum->tab=posix_cksum_tab; in crc_open()
[all …]
H A Dsum-prng.c56 register Prng_t* sum; in prng_open() local
62 if (sum = newof(0, Prng_t, 1, 0)) in prng_open()
64 sum->method = (Method_t*)method; in prng_open()
65 sum->name = name; in prng_open()
75 sum->mpy = strtoul(t, NiL, 0); in prng_open()
77 sum->add = v ? strtoul(v + 1, NiL, 0) : ~sum->add; in prng_open()
79 sum->init = v ? strtoul(v + 1, NiL, 0) : ~sum->init; in prng_open()
83 if (!sum->mpy) in prng_open()
85 sum->mpy = FNV_MULT; in prng_open()
86 if (!sum->init) in prng_open()
[all …]
H A DRELEASE2 08-06-05 sum-lmd.c: align context to largest int
4 08-02-11 sum-lmd.c,features/sum: add wrapper for solaris -lmd
5 07-10-29 sum.h,sumlib.c: add SUM_LEGACY for legacy output format
6 07-09-21 sum-sha1.c: reinstate Steve Reid's public domain implementation
7 07-07-26 sumlib.c: drop GPL sum-sha1.c
8 05-02-14 sumlib.c: split into sum-*.c
9 05-02-14 sum-sha2.c: add SHA { 256 384 512 }
10 04-02-29 Makefile: compile with $(CC.PIC) for codexlib/sum $(CC.DLL)
12 03-12-16 sum.h,sumlib.c: add sumdata()
/titanic_41/usr/src/uts/common/os/
H A Dip_cksum.c42 unsigned int sum);
81 ip_cksum(mblk_t *mp, int offset, uint_t sum) in ip_cksum() argument
135 sum = ip_ocsum(w, mlen >> 1, sum); in ip_cksum()
166 sum += psum; in ip_cksum()
178 return (ip_ocsum(w, mlen >> 1, sum)); in ip_cksum()
243 sum += ((psum << 8) & 0xffff) in ip_cksum()
248 sum += psum; in ip_cksum()
288 sum += *(uchar_t *)w << 8; in ip_cksum()
290 sum += *(uchar_t *)w; in ip_cksum()
298 sum = ip_ocsum(w, mlen>>1, sum); in ip_cksum()
[all …]
/titanic_41/usr/src/uts/common/inet/ip/
H A Dipcsum.c37 #define FOLD_SUM(sum) \ argument
38 { sum = (sum >> 16) + (sum & 0xFFFF); sum = (sum >> 16) + (sum & 0xFFFF); }
71 ip_csum(mp, offset, sum) in ip_csum() argument
74 uint32_t sum;
97 sum += U16_FETCH(startp);
103 sum += U8_FETCH_FIRST(startp);
106 FOLD_SUM(sum);
113 sum = (sum << 8) + PREV_ONE(startp);
118 sum += PREV_TWO(startp);
124 sum += NEXT_ONE(endp);
[all …]
/titanic_41/usr/src/cmd/acct/
H A Dlastlogin.sh34 if test ! -r sum/loginlog; then
35 nulladm sum/loginlog
47 sort +1 - sum/loginlog | uniq -u +10 |\
48 sort +1 - sum/loginlog |uniq -u > sum/tmploginlog
49 cp sum/tmploginlog sum/loginlog
71 { print }' - sum/loginlog | \
76 { print }' > sum/tmploginlog
77 cp sum/tmploginlog sum/loginlog
78 rm -f sum/tmploginlog
H A Drunacct.sh35 _sum=/var/adm/acct/sum
309 cp nite/daytacct sum/tacct${_date}
310 if test ! -r sum/tacct; then
312 nulladm sum/tacct
316 rm -f sum/tacctprev
317 cp sum/tacct sum/tacctprev
318 acctmerg sum/tacctprev < sum/tacct${_date} > sum/tacct
328 nulladm sum/daycms
329 if test ! -r sum/cms; then
330 nulladm sum/cms
[all …]
/titanic_41/usr/src/lib/libmp/common/
H A Dmult.c73 int sum; in m_mult() local
96 sum = 0; in m_mult()
99 sum += *aptr++ * bcache; in m_mult()
100 *cptr++ = (short)(sum & LOWBITS); in m_mult()
101 if (sum >= 0) in m_mult()
102 sum >>= fifteen; in m_mult()
104 sum = 0xfffe0000 | (sum >> fifteen); in m_mult()
106 *cptr = (short)sum; in m_mult()
112 sum = 0; in m_mult()
115 sum += *aptr++ * bcache + *cptr; in m_mult()
[all …]
/titanic_41/usr/src/cmd/sgs/libelf/common/
H A Dchecksum.c54 sumupd(long sum, char *cp, unsigned long cnt) in sumupd() argument
57 return (sum); in sumupd()
60 sum += *cp++ & 0x00ff; in sumupd()
62 return (sum); in sumupd()
66 sumepi(long sum) in sumepi() argument
70 _sum = LSW(sum) + MSW(sum); in sumepi()
103 long sum = 0; in elf_checksum() local
159 sum = sumupd(sum, data->d_buf, data->d_size); in elf_checksum()
162 return (sumepi(sum)); in elf_checksum()
/titanic_41/usr/src/ucbcmd/sum/
H A Dsum.c27 unsigned int sum; in main() local
44 sum = 0; in main()
48 if (sum&01) in main()
49 sum = (sum>>1) + 0x8000; in main()
51 sum >>= 1; in main()
52 sum += c; in main()
53 sum &= 0xFFFF; in main()
62 (void) printf("%05u %5lld", sum, in main()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dkrb5_encode.c44 unsigned int length, sum = 0;\
71 sum += length; in encode_krb5_pa_pk_as_req()
80 sum += length; in encode_krb5_pa_pk_as_req_draft9()
89 sum += length; in encode_krb5_pa_pk_as_rep()
98 sum += length; in encode_krb5_pa_pk_as_rep_draft9()
107 sum += length; in encode_krb5_auth_pack()
116 sum += length; in encode_krb5_auth_pack_draft9()
125 sum += length; in encode_krb5_kdc_dh_key_info()
134 sum += length; in encode_krb5_reply_key_pack()
143 sum += length; in encode_krb5_reply_key_pack_draft9()
[all …]
H A Dasn1_encode.c404 unsigned int length, sum = 0; in krb5int_asn1_encode_a_thing() local
407 sum = length; in krb5int_asn1_encode_a_thing()
408 retval = asn1_make_etag(buf, a->tagtype, a->tagval, sum, &length); in krb5int_asn1_encode_a_thing()
410 sum += length; in krb5int_asn1_encode_a_thing()
411 *retlen = sum; in krb5int_asn1_encode_a_thing()
437 unsigned int sum = 0; in encode_a_field() local
449 sum += length; in encode_a_field()
492 sum += length; in encode_a_field()
509 sum += length; in encode_a_field()
557 sum += length; in encode_a_field()
[all …]
/titanic_41/usr/src/cmd/bnu/
H A Dfio.c349 int c, sum, nl, len; local
363 sum = fchksum;
366 if (sum & 0x8000) {
367 sum <<= 1;
368 sum++;
370 sum <<= 1;
371 sum += c;
372 sum &= 0xffff;
418 sprintf(op, "\176\176%04x\r", sum);
422 fchksum = sum;
[all …]
/titanic_41/usr/src/common/net/dhcp/
H A Dipv4_sum.c38 uint_t sum = 0; in ipv4cksum() local
46 sum += (uint_t)*cp++; in ipv4cksum()
47 if (sum >= oneword) { /* Wrap carries into low bit */ in ipv4cksum()
48 sum -= oneword; in ipv4cksum()
49 sum++; in ipv4cksum()
52 return ((uint16_t)~sum); in ipv4cksum()
H A Dudp_sum.c56 uint_t sum = 0; in udp_chksum() local
85 sum += *sp++; in udp_chksum()
86 if (sum >= BIT_WRAP) { in udp_chksum()
88 sum -= BIT_WRAP; in udp_chksum()
89 sum++; in udp_chksum()
101 return (~sum == 0 ? ~0 : ~sum); in udp_chksum()
/titanic_41/usr/src/lib/libcmd/common/
H A Dcksum.c135 Sum_t* sum; /* sum method */ member
188 state->oldsum = state->sum; in pr()
191 state->sum = state->oldsum; in pr()
196 suminit(state->sum); in pr()
207 sumblock(state->sum, "\r", 1); in pr()
217 sumblock(state->sum, p, r - p - (*r == '\n')); in pr()
220 sumblock(state->sum, p, e - p); in pr()
223 sumblock(state->sum, "\r", 1); in pr()
227 sumblock(state->sum, p, sfvalue(ip)); in pr()
230 sumdone(state->sum); in pr()
[all …]
/titanic_41/usr/src/cmd/dtrace/test/tst/common/java_api/
H A Dtst.printa.d45 @a[1, 2] = sum(1);
46 @b[1, 2] = sum(2);
47 @a[1, 3] = sum(3);
48 @b[2, 3] = sum(4);
49 @c = sum(3);
50 @d = sum(4);
/titanic_41/usr/src/stand/lib/tcp/
H A Dtcp_sack.c199 int32_t *num, uint32_t *sum) in tcp_notsack_insert() argument
246 *sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
254 *sum -= end - tmp->begin; in tcp_notsack_insert()
257 *sum -= tmp->end - begin; in tcp_notsack_insert()
274 *sum -= end - begin; in tcp_notsack_insert()
277 *sum -= end - tmp->begin; in tcp_notsack_insert()
284 tmp_sum = *sum; in tcp_notsack_insert()
326 *sum = tmp_sum; in tcp_notsack_insert()
343 uint32_t *sum) in tcp_notsack_remove() argument
346 uint32_t tmp_sum = *sum; in tcp_notsack_remove()
[all …]
/titanic_41/usr/src/uts/common/inet/tcp/
H A Dtcp_sack.c193 int32_t *num, uint32_t *sum) in tcp_notsack_insert() argument
240 *sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
248 *sum -= end - tmp->begin; in tcp_notsack_insert()
251 *sum -= tmp->end - begin; in tcp_notsack_insert()
269 *sum -= end - begin; in tcp_notsack_insert()
272 *sum -= end - tmp->begin; in tcp_notsack_insert()
279 tmp_sum = *sum; in tcp_notsack_insert()
321 *sum = tmp_sum; in tcp_notsack_insert()
338 uint32_t *sum) in tcp_notsack_remove() argument
341 uint32_t tmp_sum = *sum; in tcp_notsack_remove()
[all …]

12345678910>>...13