Home
last modified time | relevance | path

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

12345678910>>...14

/illumos-gate/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 …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/
H A Dtst.signedkeyspos.d82 @i32["mouse", -2] = sum(-2);
83 @i32["bear", -2] = sum(-22);
88 @i32["mouse", 0] = sum(0);
89 @i32["bear", 0] = sum(10);
90 @i32["cat", 0] = sum(100);
91 @i32["mouse", 1] = sum(1);
92 @i32["bear", 1] = sum(11);
93 @i32["cat", 1] = sum(111);
94 @i32["mouse", 2] = sum(2);
95 @i32["bear", 2] = sum(22);
[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);
60 @chars['a'] = sum(1);
61 @chars['s'] = sum(1);
62 @chars['d'] = 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);
103 @i16[(short)0] = sum(0);
107 @i32[-2] = sum(-2);
108 @i32[-1] = sum(-1);
109 @i32[0] = sum(0);
110 @i32[1] = sum(1);
[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);
55 @tour["Calgary", i++, j] = sum(5 - j);
60 @tour["Prague", i++, j] = sum(5 - j);
61 @tour["London", 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.c158 sum->done = v ? strtoul(v + 1, NiL, 0) : ~sum->done; in crc_open()
203 sum->tab=sum->tabdata; in crc_open()
215 sum->sum = sum->init; in crc_init()
237 register Crcnum_t c = sum->sum; in crc_block()
281 sum->sum = c; in crc_block()
289 register Crcnum_t c = sum->sum; in crc_block()
299 sum->sum = c; in crc_block()
313 c = sum->sum; in crc_done()
316 n = sum->size ^ sum->xorsize; in crc_done()
330 sum->sum = c ^ sum->done; in crc_done()
[all …]
H A Dsum-prng.c56 register Prng_t* sum; in prng_open() local
65 sum->name = name; 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()
86 if (!sum->init) in prng_open()
89 return (Sum_t*)sum; in prng_open()
97 sum->sum = sum->init; in prng_init()
105 register Prngnum_t c = sum->sum; in prng_block()
110 c = c * sum->mpy + sum->add + *b++; in prng_block()
[all …]
H A DMamfile40 make sum
42 make sum.req
53 exec - "sum"|sum)
111 done sum-crc.c
113 done sum-bsd.c
117 done sum-att.c
119 meta FEATURE/sum features/%>FEATURE/% features/sum sum
199 done sum.h
228 prev sum.req
229sum.req' || ${STDCMP} 2>/dev/null -s sum.req ${INSTALLROOT}/lib/lib/sum || { ${STDMV} ${INSTALLROO…
[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.c136 sum = ip_ocsum(w, mlen >> 1, sum); in ip_cksum()
167 sum += psum; in ip_cksum()
299 sum = ip_ocsum(w, mlen>>1, sum); in ip_cksum()
378 sum = (sum & 0xFFFF) + (sum >> 16); in ip_cksum()
379 sum = (sum & 0xFFFF) + (sum >> 16); in ip_cksum()
473 sum = ip_ocsum(w, mlen >> 1, sum); in ip_md_cksum()
528 sum = (sum & 0xffff) + (sum >> 16); in ip_md_cksum()
529 sum = (sum & 0xffff) + (sum >> 16); in ip_md_cksum()
554 sum = (sum & 0xFFFF) + (sum >> 16); in ip_csum_hdr()
555 sum = ~(sum + (sum >> 16)) & 0xFFFF; in ip_csum_hdr()
[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.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;
106 FOLD_SUM(sum);
113 sum = (sum << 8) + PREV_ONE(startp);
168 #define SUM1(i) sum += *((uint16_t *)ptr)++; sum += *((uint16_t *)ptr)++
188 sum += ((uint16_t *)ptr)[i * 2]; sum += ((uint16_t *)ptr)[(i * 2) + 1]
239 FOLD_SUM(sum);
242 sum = ((sum << 8) | (sum >> 8)) & 0xFFFF;
[all …]
/illumos-gate/usr/src/boot/lib/libstand/
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/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
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
333 cp sum/cms sum/cmsprev
[all …]
/illumos-gate/usr/src/lib/libmp/common/
H A Dmult.c73 int sum; in m_mult() local
96 sum = 0; 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()
117 if (sum >= 0) in m_mult()
118 sum >>= fifteen; in m_mult()
120 sum = 0xfffe0000 | (sum >> fifteen); in m_mult()
[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.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()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dkrb5_encode.c71 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()
152 sum += length; in encode_krb5_td_trusted_certifiers()
[all …]
H A Dasn1_encode.c407 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()
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()
575 *retlen = sum; in encode_a_field()
605 *retlen = sum; in encode_fields()
638 *retlen = sum; in just_encode_sequence()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dfio.c363 sum = fchksum;
367 sum <<= 1;
368 sum++;
370 sum <<= 1;
371 sum += c;
422 fchksum = sum;
456 sum = fchksum;
519 sum <<= 1;
520 sum++;
522 sum <<= 1;
[all …]
/illumos-gate/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()
/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()
223 sumblock(state->sum, "\r", 1); in pr()
230 sumdone(state->sum); in pr()
391 sumclose(state->sum); in verify()
392 if (!(state->sum = sumopen(s))) in verify()
549 …if (!state.sum && !(state.sum = sumopen(error_info.id)) && !(state.sum = sumopen(astconf("UNIVERSE… in b_cksum()
550 state.sum = sumopen(NiL); in b_cksum()
[all …]

12345678910>>...14