/ast/src/lib/libpp/ |
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);
|
/ast/src/cmd/vczip/tests/ |
H A D | tvcsum.c | 27 Vcchar_t* sum; member in struct:_pair_s 39 Vcchar_t *sum, hex[1024]; local 45 { if((n = vcxencode(&xx, Md5[k].str, strlen((char*)Md5[k].str), &sum)) < 0 ) 49 if(vchexcode(sum, n, hex, sizeof(hex), 1) != 32) 51 if(strcmp((char*)Md5[k].sum, (char*)hex) != 0)
|
/ast/src/lib/libast/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 };
|
/ast/src/lib/libsum/ |
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 | 62 register Crc_t* sum; local 71 if (sum = newof(0, Crc_t, 1, 0)) 73 sum->method = (Method_t*)method; 74 sum->name = name; 87 sum->done = v ? strtoul(v + 1, NiL, 0) : ~sum->done; 89 sum->init = v ? strtoul(v + 1, NiL, 0) : ~sum->init; 91 sum->rotate = 1; 94 sum 138 Crc_t* sum = (Crc_t*)p; local 147 Crc_t* sum = (Crc_t*)p; local 165 register Crc_t* sum = (Crc_t*)p; local [all...] |
/ast/src/cmd/codexlib/sum/ |
H A D | sum.c | 8 #include <sum.h> 14 Sum_t* sum; member in struct:State_s 27 register Sum_t* sum; local 33 if (!(sum = sumopen(s))) 45 state->sum = sum; 53 return suminit(((State_t*)p->data)->sum); 59 return sumclose(((State_t*)p->data)->sum); 68 sumblock(((State_t*)CODEX(disc)->data)->sum, buf, r); 78 sumblock(((State_t*)CODEX(disc)->data)->sum, bu [all...] |
/ast/src/cmd/paxlib/arj/ |
H A D | arj.c | 33 #define SUM "sum-crc-0xedb88320-init-done" 40 Sfio_t* sum; member in struct:Ar_s 56 if (ar->sum) 57 sfdisc(ar->sum, SF_POPDISC); 71 Codexdata_t sum; local 82 if (!(ar->sum = codexnull()) || codex(ar->sum, NiL, SUM, 0, &ar->codexdisc, NiL) <= 0) 84 ar->sum = 0; 87 sfwrite(ar->sum, buf + 4, n); 88 codexdata(ar->sum, 117 Codexdata_t sum; local 202 Codexdata_t sum; local [all...] |
/ast/src/cmd/paxlib/lha/ |
H A D | lha.c | 32 #define SUM "sum-crc-0xa001" 204 Codexdata_t sum; local 229 if (codexdata(sp, &sum) <= 0) 231 else if (!paxchecksum(pax, ap, f, ar->checksum, sum.num & 0xffff))
|
/ast/src/cmd/paxlib/rar/ |
H A D | rar.c | 31 #define SUM "sum-crc-0xedb88320-init-done" 38 Sfio_t* sum; member in struct:Ar_s 53 if (ar->sum) 54 sfdisc(ar->sum, SF_POPDISC); 78 if (!(ar->sum = codexnull()) || codex(ar->sum, NiL, SUM, 0, &ar->codexdisc, NiL) <= 0) 80 ar->sum = 0; 102 Codexdata_t sum; local 118 sfsync(ar->sum); 119 sfwrite(ar->sum, bu 215 Codexdata_t sum; local [all...] |
/ast/src/lib/libz/ |
H A D | crc32.c | 346 unsigned long sum; local 348 sum = 0; 351 sum ^= *mat; 355 return sum;
|
/ast/src/lib/libcmd/ |
H A D | cksum.c | 26 * sum -- list file checksum and size 30 "[-?\n@(#)$Id: sum (AT&T Research) 2012-04-20 $\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...] |
/ast/src/lib/libpz/ |
H A D | pzconvert.c | 102 memsum_4(register uint32_t sum, const void* buf, size_t size) argument 108 sum = (sum << 4) + sum + *s++ + 97531; 109 return sum;
|
/ast/src/cmd/paxlib/zoo/ |
H A D | zoo.c | 30 #include <sum.h> 35 #define SUM "sum-crc-0xa001" 263 Codexdata_t sum; local 290 if (codexdata(sp, &sum) <= 0) 292 else if (!paxchecksum(pax, ap, f, ar->checksum, sum.num))
|
/ast/src/cmd/tw/ |
H A D | expr.c | 33 #include <sum.h> 39 Sum_t* sum; member in struct:Exsum_s 100 EXID("sum", FUNCTION, X_sum, S|A(1,S), 0), 136 * return sum() for path 140 sum(Exsum_t* sum, const char* path) argument 146 suminit(sum->sum); 150 sumblock(sum->sum, [all...] |
/ast/src/cmd/3d/ |
H A D | lib.c | 464 register int sum; local 466 sum = 0; 472 sum += n; 474 return(sum);
|
H A D | map.c | 125 register int sum = 0; local 143 sum += n; 153 sum += n; 161 sum += n; 175 sum = p - buf; 177 return sum;
|
H A D | init.c | 64 register int sum = 0; local 175 sum += n; 184 sum += n; 186 return(sum); 570 register int sum = 0; local 590 sum += n; 605 sum += n; 620 sum += n; 635 sum += n; 651 sum [all...] |
/ast/src/cmd/pax/ |
H A D | delta.c | 98 unsigned long sum; local 120 sum = ap->memsum; 144 ap->memsum = sum; 241 ap->sum = 1; 278 ap->sum = 0; 321 bp->sum++; 339 bp->sum--; 938 if (ap->sum <= 0) 939 ap->sum++;
|
H A D | pax-cpio.c | 645 aschk_checksum(Pax_t* pax, Archive_t* ap, File_t* f, void* ab, size_t n, register unsigned long sum) argument 652 sum += *b++; 653 return sum;
|
H A D | pax-tar.c | 94 tar_checksum(Archive_t* ap, int check, unsigned long sum) argument 153 if ((sum &= TAR_SUMASK) == u) 155 if (sum == (s &= TAR_SUMASK)) 167 error(state.keepgoing ? 1 : 3, "%s: %s format checksum error (%ld != %ld or %ld)", ap->name, ap->format->name, sum, u, s); 169 error(state.keepgoing ? 1 : 3, "%s: %s format checksum error (%ld != %ld)", ap->name, ap->format->name, sum, u); 303 ap->sum -= 2; 318 ap->sum += 2; 665 ap->sum -= 2; 669 ap->sum += 3; 937 unsigned long sum; local [all...] |
/ast/src/cmd/sortlib/sum/ |
H A D | sortsum.c | 27 "[-1lp0s5P?\n@(#)$Id: sum (AT&T Research) 2011-08-23 $\n]" 29 "[+PLUGIN?sum - sort uniq summary discipline]" 53 "[+sum (s)?sum]" 63 "[+sort -k.2.1 -lsum,op=sum::integer::.6.2?Sorts on the 1 byte " 65 "and computes the sum of the integers in the 2 byte fixed width " 73 "\n\n--library=sum[,option[=value]...]\n\n" 127 Summary_t* sum; member in struct:State_s 159 register Summary_t* sum; local 189 for (sum 421 register Summary_t* sum; local [all...] |
/ast/src/lib/libast/include/ |
H A D | tm.h | 121 short* sum; /* days in months before i */ member in struct:__anon276
|
/ast/src/cmd/paxlib/zip/ |
H A D | zip.c | 33 #define SUM "sum-crc-0xedb88320-init-done" 313 Codexdata_t sum; local 336 if (codexdata(sp, &sum) <= 0) 338 else if (!paxchecksum(pax, ap, f, ar->checksum, sum.num))
|
/ast/src/cmd/sortlib/sync/ |
H A D | ss.h | 161 Ssfield_t* sum; /* optional sum fields */ member in struct:Ss_s
|