Home
last modified time | relevance | path

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

12345678910>>...14

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/multiaggs/
H A Dtst.many.d41 @agg0[0] = sum(0);
42 @agg1[1] = sum(1);
43 @agg2[2] = sum(2);
44 @agg3[3] = sum(3);
45 @agg4[4] = sum(4);
46 @agg5[5] = sum(5);
47 @agg6[6] = sum(6);
48 @agg7[7] = sum(7);
49 @agg8[8] = sum(8);
50 @agg9[9] = sum(9);
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/
H A Dtst.signedkeyspos.d47 @i8["cat", (char)-2] = sum(-2);
48 @i8["dog", (char)-2] = sum(-22);
49 @i8["mouse", (char)-2] = sum(-222);
50 @i8["cat", (char)-1] = sum(-1);
51 @i8["dog", (char)-1] = sum(-11);
52 @i8["mouse", (char)-1] = sum(-111);
53 @i8["cat", (char)0] = sum(0);
54 @i8["dog", (char)0] = sum(10);
55 @i8["mouse", (char)0] = sum(100);
56 @i8["cat", (char)1] = sum(1);
[all …]
H A Dtst.order.d31 @[8] = sum(1);
32 @[6] = sum(1);
33 @[7] = sum(1);
34 @[5] = sum(1);
35 @[3] = sum(1);
36 @[0] = sum(1);
37 @[9] = sum(1);
39 @tour["Ghent"] = sum(1);
40 @tour["Berlin"] = sum(1);
41 @tour["London"] = sum(1);
[all …]
H A Dtst.signedkeys.d92 @i8[(char)-2] = sum(-2);
93 @i8[(char)-1] = sum(-1);
94 @i8[(char)0] = sum(0);
95 @i8[(char)1] = sum(1);
96 @i8[(char)2] = sum(2);
98 @i16[(short)-2] = sum(-2);
99 @i16[(short)-1] = sum(-1);
100 @i16[(short)0] = sum(0);
101 @i16[(short)1] = sum(1);
102 @i16[(short)2] = sum(2);
[all …]
H A Dtst.keysort.d34 @tour["Ghent", i++, j] = sum(5 - j);
37 @tour["Berlin", i++, j] = sum(5 - j);
40 @tour["London", i++, j] = sum(5 - j);
41 @tour["Dublin", i++, j] = sum(5 - j);
44 @tour["Shanghai", i++, j] = sum(5 - j);
47 @tour["Zurich", i++, j] = sum(5 - j);
50 @tour["Regina", i++, j] = sum(5 - j);
51 @tour["Winnipeg", i++, j] = sum(5 - j);
52 @tour["Edmonton", i++, j] = sum(5 - j);
53 @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);
/illumos-gate/usr/src/contrib/ast/src/lib/libsum/
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 DMamfile40 make sum
42 make sum.req
51 exec - for i in sum md ast
53 exec - "sum"|sum)
73 exec - } > sum.req
75 done sum.req generated
78 make sum-sha2.c implicit
88 done sum-sha2.c dontcare
89 make sum-sha1.c implicit
90 done sum-sha1.c dontcare
[all …]
H A DRELEASE1 12-02-29 sum-sha2.c: bitcount[] order reversed to allow a single noalias buffer copy
3 08-06-05 sum-lmd.c: align context to largest int
5 08-02-11 sum-lmd.c,features/sum: add wrapper for solaris -lmd
6 07-10-29 sum.h,sumlib.c: add SUM_LEGACY for legacy output format
7 07-09-21 sum-sha1.c: reinstate Steve Reid's public domain implementation
8 07-07-26 sumlib.c: drop GPL sum-sha1.c
9 05-02-14 sumlib.c: split into sum-*.c
10 05-02-14 sum-sha2.c: add SHA { 256 384 512 }
11 04-02-29 Makefile: compile with $(CC.PIC) for codexlib/sum $(CC.DLL)
13 03-12-16 sum.h,sumlib.c: add sumdata()
/illumos-gate/usr/src/uts/common/os/
H A Dip_cksum.c80 ip_cksum(mblk_t *mp, int offset, uint_t sum) in ip_cksum() argument
134 sum = ip_ocsum(w, mlen >> 1, sum); in ip_cksum()
165 sum += psum; in ip_cksum()
177 return (ip_ocsum(w, mlen >> 1, sum)); in ip_cksum()
242 sum += ((psum << 8) & 0xffff) in ip_cksum()
247 sum += psum; in ip_cksum()
287 sum += *(uchar_t *)w << 8; in ip_cksum()
289 sum += *(uchar_t *)w; in ip_cksum()
297 sum = ip_ocsum(w, mlen>>1, sum); in ip_cksum()
308 sum += *(uchar_t *)w; in ip_cksum()
[all …]
H A Dcpu_uarray.c55 uint64_t sum = 0; in cpu_uarray_sum() local
61 sum = UINT64_OVERFLOW_ADD(sum, addend); in cpu_uarray_sum()
64 return (sum); in cpu_uarray_sum()
70 uint64_t sum = 0; in cpu_uarray_sum_all() local
75 sum = UINT64_OVERFLOW_ADD(sum, addend); in cpu_uarray_sum_all()
79 return (sum); in cpu_uarray_sum_all()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dipcsum.c34 #define FOLD_SUM(sum) \ argument
35 { sum = (sum >> 16) + (sum & 0xFFFF); sum = (sum >> 16) + (sum & 0xFFFF); }
68 ip_csum(mp, offset, sum) in ip_csum() argument
71 uint32_t sum;
94 sum += U16_FETCH(startp);
100 sum += U8_FETCH_FIRST(startp);
103 FOLD_SUM(sum);
110 sum = (sum << 8) + PREV_ONE(startp);
115 sum += PREV_TWO(startp);
121 sum += NEXT_ONE(endp);
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Din_cksum.c54 int sum = 0, oddbyte = 0, v = 0; in in_cksum() local
60 sum += v + *cp++; in in_cksum()
65 sum += *(ushort_t *)cp; in in_cksum()
71 sum += *cp++ << 8; in in_cksum()
72 sum += *cp++; in in_cksum()
74 sum += *cp++; in in_cksum()
75 sum += *cp++ << 8; in in_cksum()
87 sum += v; in in_cksum()
88 sum = (sum >> 16) + (sum & 0xffff); /* add in accumulated carries */ in in_cksum()
89 sum += sum >> 16; /* add potential last carry */ in in_cksum()
[all …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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()
/illumos-gate/usr/src/ucbcmd/sum/
H A Dsum.c25 unsigned int sum; in main() local
42 sum = 0; in main()
46 if (sum&01) in main()
47 sum = (sum>>1) + 0x8000; in main()
49 sum >>= 1; in main()
50 sum += c; in main()
51 sum &= 0xFFFF; in main()
60 (void) printf("%05u %5lld", sum, in main()
/illumos-gate/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 …]
/illumos-gate/usr/src/cmd/bnu/
H A Dfio.c347 int c, sum, nl, len; local
361 sum = fchksum;
364 if (sum & 0x8000) {
365 sum <<= 1;
366 sum++;
368 sum <<= 1;
369 sum += c;
370 sum &= 0xffff;
416 sprintf(op, "\176\176%04x\r", sum);
420 fchksum = sum;
[all …]
/illumos-gate/usr/src/common/net/dhcp/
H A Dipv4_sum.c36 uint_t sum = 0; in ipv4cksum() local
44 sum += (uint_t)*cp++; in ipv4cksum()
45 if (sum >= oneword) { /* Wrap carries into low bit */ in ipv4cksum()
46 sum -= oneword; in ipv4cksum()
47 sum++; in ipv4cksum()
50 return ((uint16_t)~sum); in ipv4cksum()
H A Dudp_sum.c54 uint_t sum = 0; in udp_chksum() local
83 sum += *sp++; in udp_chksum()
84 if (sum >= BIT_WRAP) { in udp_chksum()
86 sum -= BIT_WRAP; in udp_chksum()
87 sum++; in udp_chksum()
99 return (~sum == 0 ? ~0 : ~sum); in udp_chksum()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
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 …]

12345678910>>...14