/osnet-11/usr/src/lib/libpp/common/ |
H A D | ppmacref.c | 31 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);
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/List/Util/lib/List/ |
H A D | 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
|
/osnet-11/usr/src/lib/libast/common/tm/ |
H A D | 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 };
|
/osnet-11/usr/src/lib/libparted/common/libparted/fs/amiga/ |
H A D | asfs.c | 38 int i, sum; local 42 for (i = 0, sum = 1; i < 128*blocksize; i++) sum += PED_BE32_TO_CPU (block[i]); 43 if (sum != 0) return 0;
|
H A D | affs.c | 39 uint32_t sum; local 43 for (i = 0, sum = 0; i < 128*blocksize; i++) 44 sum += PED_BE32_TO_CPU (block[i]); 45 if (sum) return 0;
|
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/ |
H A D | xsize.h | 58 size_t sum = size1 + size2; local 59 return (sum >= size1 ? sum : SIZE_MAX);
|
/osnet-11/usr/src/lib/libsqlite/src/ |
H A D | 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;
|
H A D | func.c | 511 ** sum() or avg() aggregate computation. 515 double sum; /* Sum of terms */ member in struct:SumCtx 520 ** Routines used to compute the sum or average. 527 p->sum += sqliteAtoF(argv[0], 0); 534 sqlite_set_result_double(context, p ? p->sum : 0.0); 540 sqlite_set_result_double(context, p->sum/(double)p->cnt); 550 double sum; /* Sum of terms */ member in struct:StdDevCtx 566 p->sum += x; 577 sqrt((p->sum2 - p->sum*p->sum/rCn [all...] |
/osnet-11/usr/src/lib/libmp/common/ |
H A D | 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 [all...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1_make.c | 126 unsigned int len, sum=0; local 130 sum += len; 133 sum += len; 135 *retlen = sum; 143 unsigned int len, sum=0; local 147 sum += len; 150 sum += len; 152 *retlen = sum;
|
H A D | asn1_encode.c | 408 unsigned int length, sum = 0; local 411 sum = length; 412 retval = asn1_make_etag(buf, a->tagtype, a->tagval, sum, &length); 414 sum += length; 415 *retlen = sum; 441 unsigned int sum = 0; local 453 sum += length; 498 sum += length; 515 sum += length; 565 sum 594 unsigned int sum = 0; local 626 unsigned int sum = 0; local 658 unsigned int sum = 0; local [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/partmap/ |
H A D | dvh.c | 55 grub_uint32_t sum = 0; local 60 sum += *pos; 62 return ! sum;
|
H A D | sun.c | 78 grub_uint16_t sum = 0; local 83 sum ^= *pos; 85 return ! sum;
|
H A D | sunpc.c | 66 grub_uint16_t sum = 0; local 71 sum ^= *pos; 73 return ! sum;
|
/osnet-11/usr/src/lib/libsum/common/ |
H A D | 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 95 Prng_t* sum = (Prng_t*)p; local 104 Prng_t* sum = (Prng_t*)p; local [all...] |
H A D | sum-crc.c | 119 register Crc_t* sum; local 128 if (sum = newof(0, Crc_t, 1, 0)) 130 sum->method = (Method_t*)method; 131 sum->name = name; 136 sum->init=0; 137 sum->done=0xffffffff; 138 sum->xorsize=0x0; 139 sum->addsize=0x1; 140 sum->rotate=1; 143 sum 213 Crc_t* sum = (Crc_t*)p; local 236 Crc_t* sum = (Crc_t*)p; local 288 Crc_t* sum = (Crc_t*)p; local 307 register Crc_t* sum = (Crc_t*)p; local [all...] |
/osnet-11/usr/src/cmd/sendmail/libsm/ |
H A D | vfscanf.c | 369 size_t sum = 0; local 374 sum += n; 380 if (sum == 0) 387 sum += width; 393 nread += sum;
|
/osnet-11/usr/src/lib/libcmd/common/ |
H A D | cksum.c | 26 * sum -- list file checksum and size 30 "[-?\n@(#)$Id: sum (AT&T Research) 2010-07-28 $\n]" 32 "[+NAME?cksum,md5sum,sum - print file checksum and block count]" 38 " \batt\b method is a true sum, all others are order dependent.]" 81 " matched, non-0 means at least one sum failed to match. Ignored for" 113 #include <sum.h> 127 Sum_t* oldsum; /* previous sum method */ 135 Sum_t* sum; /* sum method */ member in struct:State_s 174 * compute and print sum o [all...] |
/osnet-11/usr/src/grub/grub-0.97/netboot/ |
H A D | pci_io.c | 357 unsigned char sum; local 375 sum = 0; 377 sum += check->chars[i]; 378 if (sum != 0)
|
/osnet-11/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_fat.c | 423 unsigned char sum; local 426 for (sum = 0, i = 0; i< 11; i++) 427 sum = ((sum >> 1) | (sum << 7)) + dir_buf[i]; 429 if (sum == alias_checksum)
|
H A D | smp-imps.c | 290 unsigned sum = 0; local 294 sum += *((unsigned char *) (start++)); 297 return (sum & 0xFF); 465 int sum; local 478 sum = get_checksum ((unsigned) local_cth_ptr, 480 if (local_cth_ptr->sig != IMPS_CTH_SIGNATURE || sum) 484 (unsigned) (fps_ptr->cth_ptr), sum)); 494 sum = (get_checksum (((unsigned) local_cth_ptr) 498 if (sum) 501 ((" Bad Extended MP Config Table checksum 0x%x\n", sum)); [all...] |
/osnet-11/usr/src/cmd/sendmail/db/db/ |
H A D | db_dup.c | 220 db_indx_t halfbytes, i, indx, lastsum, nindex, oindex, s, sum; local 247 for (sum = 0, lastsum = 0, i = 0; i < NUM_ENT(h); i++) { 249 sum += size; 251 if (lastsum < halfbytes && sum >= halfbytes) { 254 (db_indx_t)(sum - halfbytes)) { 262 lastsum = sum; 265 sum += BKEYDATA_SIZE(GET_BKEYDATA(h, i)->len); 267 sum += BOVERFLOW_SIZE; 269 if (lastsum < halfbytes && sum >= halfbytes) { 271 if ((db_indx_t)(sum [all...] |
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | mon.c | 366 struct hdr sum; /* summary header (for 'pseudo' block) */ local 377 for (sum.nfns = 0, ap = &firstAnchor; ap != NULL; ap = ap->next) { 378 sum.nfns += ap->monBuffer->nfns; /* accum num of cells */ 385 sum.lpc = histp->monBuffer->lpc; 386 sum.hpc = histp->monBuffer->hpc; 388 ok = (write(fd, (char *)&sum, sizeof (sum)) == sizeof (sum));
|
H A D | hsearch.c | 538 unsigned int sum = 0; /* Counts probes */ local 554 sum += prcnt; 559 printf("Total probes = %d\n", sum);
|
/osnet-11/usr/src/grub/grub2/grub-core/net/ |
H A D | ip.c | 100 grub_uint32_t sum = 0; local 104 sum += grub_be_to_cpu16 (grub_get_unaligned16 (ip++)); 105 if (sum > 0xFFFF) 106 sum -= 0xFFFF; 110 sum += *((grub_uint8_t *) ip) << 8; 111 if (sum > 0xFFFF) 112 sum -= 0xFFFF; 115 if (sum >= 0xFFFF) 116 sum -= 0xFFFF; 118 return grub_cpu_to_be16 ((~sum) [all...] |