| /onnv/onnv-gate/usr/src/common/net/dhcp/ |
| ipv4_sum.c | 38 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);
|
| udp_sum.c | 56 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);
|
| /onnv/onnv-gate/usr/src/ucbcmd/sum/ |
| sum.c | 19 * Sum bytes in file mod 2^16 27 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 [all...] |
| /onnv/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/List/Util/lib/List/ |
| Util.pm | 12 @EXPORT_OK = qw(first min max minstr maxstr reduce sum shuffle); 51 sub sum (@) { reduce { $a + $b } @_ } subroutine 93 use List::Util qw(first max maxstr min minstr reduce shuffle sum); 193 $foo = reduce { $a + $b } 1 .. 10 # sum 202 =item sum LIST 204 Returns the sum of all the elements in LIST. 206 $foo = sum 1..10 # 55 207 $foo = sum 3,9,12 # 24 208 $foo = sum @bar, @baz # whatever
|
| /onnv/onnv-gate/usr/src/cmd/tic/ |
| tic_hash.c | 176 * 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);
|
| /onnv/onnv-gate/usr/src/lib/libast/common/tm/ |
| tmdata.c | 175 * 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 };
|
| /onnv/onnv-gate/usr/src/cmd/adbgen/common/ |
| adbsub.c | 88 int rcount, width, sum, i; local 92 sum = rcount = 0; 173 sum += width * rcount; 175 return (sum);
|
| /onnv/onnv-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
| cvrt_spd_data.c | 106 uint32_t sum; local 206 sum = compute_crc32(*sp_seg_ptr, sizeof (sp_seg_body) - 5); 209 ((char *)(&sum))[c];
|
| /onnv/onnv-gate/usr/src/cmd/sgs/libelf/common/ |
| checksum.c | 52 * update and epilogue sum functions (stolen from libcmd) 55 sumupd(long sum, char *cp, unsigned long cnt) 58 return (sum); 61 sum += *cp++ & 0x00ff; 63 return (sum); 67 sumepi(long sum) 71 _sum = LSW(sum) + MSW(sum); 78 long sum = 0; local 122 sum = sumupd(sum, data->d_buf, data->d_size) 131 long sum = 0; local [all...] |
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
| asn1_make.c | 124 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;
|
| /onnv/onnv-gate/usr/src/lib/libparted/common/libparted/fs/amiga/ |
| asfs.c | 37 int i, sum; local 41 for (i = 0, sum = 1; i < 128*blocksize; i++) sum += PED_BE32_TO_CPU (block[i]); 42 if (sum != 0) return 0;
|
| /onnv/onnv-gate/usr/src/cmd/dispadmin/ |
| subr.c | 68 long sum; local 74 sum = product + htp->hrt_rem; 75 if (sum - htp->hrt_rem == product) { 76 return (sum);
|
| /onnv/onnv-gate/usr/src/cmd/spell/ |
| hashlook.c | 58 long sum; local 66 sum = (long)t<<(HASHWIDTH-INDEXWIDTH); 103 sum += t; 104 if (sum < h) 106 return (sum == h);
|
| /onnv/onnv-gate/usr/src/lib/libmp/common/ |
| mult.c | 73 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 = 0 [all...] |
| /onnv/onnv-gate/usr/src/lib/libsqlite/src/ |
| encode.c | 52 ** 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;
|
| /onnv/onnv-gate/usr/src/cmd/sh/ |
| hash.c | 165 unsigned int sum = 0; local 169 sum += *key++; 171 return(sum + s);
|
| /onnv/onnv-gate/usr/src/uts/common/os/ |
| compress.c | 223 uint32_t sum = 0; local 226 sum = ((sum >> 1) | (sum << 31)) + *cp; 227 return (sum);
|
| ip_cksum.c | 42 unsigned int sum); 81 ip_cksum(mblk_t *mp, int offset, uint_t sum) 135 sum = ip_ocsum(w, mlen >> 1, sum); 166 sum += psum; 178 return (ip_ocsum(w, mlen >> 1, sum)); 243 sum += ((psum << 8) & 0xffff) 248 sum += psum; 284 * high part of (32 bit) sum is small 288 sum += *(uchar_t *)w << 8 538 uint32_t sum; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/format/ |
| defect.c | 208 register int *lp, i, sum = 0; local 216 sum ^= *(lp + i); 221 return (sum != list->header.cksum); 226 list->header.cksum = sum;
|
| /onnv/onnv-gate/usr/src/lib/libsum/common/ |
| sum-prng.c | 56 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->mpy 95 Prng_t* sum = (Prng_t*)p; local 104 Prng_t* sum = (Prng_t*)p; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/audio/utilities/ |
| AudioGain.cc | 104 // Accumulated sum is averaged by the cache size and number of sums 129 // Peak sum is averaged by the cache size 294 double sum; local 307 sum = 0.; 310 sum += fabs(*inptr); 312 sum /= (double)frames; 315 val = log10(1. + (9. * sum)); 331 "adjusted = %7.5f\n", sum, sv, val); 368 // calculate the sum of squares for a window around the sample; 369 // save the peak sum of squares [all...] |
| AudioList.cc | 167 Double sum; local 170 for (sum = 0., ep = first(); ep != 0; ep = ep->next) { 176 sum += x; 178 return (sum);
|
| Fir.cc | 60 double sum = *coefs * *in_buf; local 62 sum += *++coefs * *--in_buf; 63 return (sum);
|
| Resample.cc | 108 double sum = 0.0; local 112 sum += *coef * *--data_end; 115 return (sum);
|
| /onnv/onnv-gate/usr/src/cmd/bnu/ |
| pk0.c | 133 unsigned short sum; local 175 sum = (unsigned)chksum(pk->p_ib[x], pk->p_rsize) ^ (unsigned)(cntl&0377); 176 sum += pk->p_isum[x]; 177 if (sum == CHECK) { 577 short sum; local 581 sum = -1; 585 if (sum<0) { 586 sum <<= 1; 587 sum++; 589 sum <<= 1 [all...] |