| /openbsd-src/games/canfield/cfscores/ |
| H A D | cfscores.c | 87 struct betinfo total; in printuser() local 95 i = read(dbfd, (char *)&total, sizeof(total)); in printuser() 100 if (i == 0 || total.hand == 0) { in printuser() 106 if (total.worth >= 0) { in printuser() 129 printf("| Hands %8ld |\n", total.hand); in printuser() 130 printf("| Inspections %8ld |\n", total.inspection); in printuser() 131 printf("| Games %8ld |\n", total.game); in printuser() 132 printf("| Runs %8ld |\n", total.runs); in printuser() 133 printf("| Information %8ld |\n", total.information); in printuser() 134 printf("| Think time %8ld |\n", total.thinktime); in printuser() [all …]
|
| /openbsd-src/usr.sbin/unbound/daemon/ |
| H A D | stats.c | 441 void server_stats_add(struct ub_stats_info* total, struct ub_stats_info* a) in server_stats_add() 443 total->svr.num_queries += a->svr.num_queries; in server_stats_add() 444 total->svr.num_queries_ip_ratelimited += a->svr.num_queries_ip_ratelimited; in server_stats_add() 445 total->svr.num_queries_cookie_valid += a->svr.num_queries_cookie_valid; in server_stats_add() 446 total->svr.num_queries_cookie_client += a->svr.num_queries_cookie_client; in server_stats_add() 447 total->svr.num_queries_cookie_invalid += a->svr.num_queries_cookie_invalid; in server_stats_add() 448 total->svr.num_queries_missed_cache += a->svr.num_queries_missed_cache; in server_stats_add() 449 total->svr.num_queries_prefetch += a->svr.num_queries_prefetch; in server_stats_add() 450 total->svr.num_queries_timed_out += a->svr.num_queries_timed_out; in server_stats_add() 451 if (total in server_stats_add() 434 server_stats_add(struct ub_stats_info * total,struct ub_stats_info * a) server_stats_add() argument [all...] |
| /openbsd-src/usr.sbin/unbound/testcode/ |
| H A D | unittcpreuse.c | 157 static void check_removal(struct outside_network* outnet, int position, int total) in check_removal() argument 162 for(i=0; i<total; i++) { in check_removal() 165 check_tree_and_list(outnet, total); in check_removal() 169 check_tree_and_list(outnet, total-1); in check_removal() 173 static void check_snip(struct outside_network* outnet, int total) in check_snip() argument 178 for(i=0; i<total; i++) { in check_snip() 181 check_tree_and_list(outnet, total); in check_snip() 185 check_tree_and_list(outnet, --total); in check_snip() 234 struct waiting_tcp* first, struct waiting_tcp* last, size_t total) in check_waiting_tcp_list() argument 242 unit_assert(i<total); /* otherwise we are looping */ in check_waiting_tcp_list() [all …]
|
| /openbsd-src/usr.sbin/nsd/ |
| H A D | ipc.c | 243 stats_add(struct nsdst* total, struct nsdst* s) in stats_add() argument 246 for(i=0; i<sizeof(total->qtype)/sizeof(stc_type); i++) in stats_add() 247 total->qtype[i] += s->qtype[i]; in stats_add() 248 for(i=0; i<sizeof(total->qclass)/sizeof(stc_type); i++) in stats_add() 249 total->qclass[i] += s->qclass[i]; in stats_add() 250 total->qudp += s->qudp; in stats_add() 251 total->qudp6 += s->qudp6; in stats_add() 252 total->ctcp += s->ctcp; in stats_add() 253 total->ctcp6 += s->ctcp6; in stats_add() 254 total->ctls += s->ctls; in stats_add() [all …]
|
| /openbsd-src/gnu/gcc/gcc/config/vax/ |
| H A D | vax.c | 538 vax_rtx_costs (rtx x, int code, int outer_code, int *total) in vax_rtx_costs() argument 556 *total = ((unsigned HOST_WIDE_INT) ~INTVAL (x) <= 077) ? 1 : 2; in vax_rtx_costs() 565 *total = 1; in vax_rtx_costs() 573 *total = 3; in vax_rtx_costs() 578 *total = vax_float_literal (x) ? 5 : 8; in vax_rtx_costs() 580 *total = ((CONST_DOUBLE_HIGH (x) == 0 in vax_rtx_costs() 589 *total = 2; in vax_rtx_costs() 593 *total = 3; in vax_rtx_costs() 600 *total = 16; /* 4 on VAX 9000 */ in vax_rtx_costs() 603 *total = 9; /* 4 on VAX 9000, 12 on VAX 2 */ in vax_rtx_costs() [all …]
|
| /openbsd-src/games/mille/ |
| H A D | mille.c | 93 if (!restore || (Player[PLAYER].total >= 5000 in main() 94 || Player[COMP].total >= 5000)) { in main() 95 if (Player[COMP].total < Player[PLAYER].total) in main() 97 else if (Player[COMP].total > Player[PLAYER].total) in main() 99 Player[COMP].total = 0; in main() 100 Player[PLAYER].total = 0; in main() 121 } while (Player[COMP].total < 5000 in main() 122 && Player[PLAYER].total < 5000); in main()
|
| H A D | misc.c | 207 if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000) { in check_more() 214 if (Player[PLAYER].total > Player[COMP].total) in check_more() 216 else if (Player[PLAYER].total < Player[COMP].total) in check_more() 218 Player[COMP].total = 0; in check_more() 219 Player[PLAYER].total = 0; in check_more()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/ |
| H A D | gcov.c | 147 gcov_type total; member 828 gcov_type total; local 867 total = 0; 870 total += arcptr->arc_count; 871 bb_graph[i].exec_count = total; 877 total = 0; 880 total += arcptr->arc_count; 881 bb_graph[i].exec_count = total; 890 total = 0; 895 total += arcptr->arc_count; [all …]
|
| H A D | timevar.c | 430 struct timevar_time_def *total = &timevars[TV_TOTAL].elapsed; local 482 (total->user == 0 ? 0 : tv->elapsed.user / total->user) * 100); 489 (total->sys == 0 ? 0 : tv->elapsed.sys / total->sys) * 100); 496 (total->wall == 0 ? 0 : tv->elapsed.wall / total->wall) * 100); 505 fprintf (fp, "%7.2f ", total->user); 508 fprintf (fp, "%7.2f ", total->sys); 511 fprintf (fp, "%7.2f\n", total->wall); 533 print_time (str, total) in print_time() argument 535 long total; 540 str, total / 1000000, total % 1000000, [all …]
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | timevar.c | 389 struct timevar_time_def *total = &timevars[TV_TOTAL].elapsed; in timevar_print() local 442 (total->user == 0 ? 0 : tv->elapsed.user / total->user) * 100); in timevar_print() 449 (total->sys == 0 ? 0 : tv->elapsed.sys / total->sys) * 100); in timevar_print() 456 (total->wall == 0 ? 0 : tv->elapsed.wall / total->wall) * 100); in timevar_print() 462 (total->ggc_mem == 0 in timevar_print() 464 : (float) tv->elapsed.ggc_mem / total->ggc_mem) * 100); in timevar_print() 472 fprintf (fp, "%7.2f ", total->user); in timevar_print() 475 fprintf (fp, "%7.2f ", total->sys); in timevar_print() 478 fprintf (fp, "%7.2f ", total->wall); in timevar_print() 480 fprintf (fp, "%8u kB\n", (unsigned) (total->ggc_mem >> 10)); in timevar_print() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/lib/TAP/Parser/ |
| H A D | Aggregator.pm | 68 total 72 $SUMMARY_METHOD_FOR{total} = 'tests_run'; 76 next if 'total' eq $method; 93 next if 'total' eq $summary; 259 $self->total 260 && $self->total == $self->passed 275 my $total = $self->total; 279 ( $self->has_errors || $total != $passed ) ? 'FAIL' 280 : $total 337 sub total { shift->{total} } global() subroutine [all...] |
| /openbsd-src/gnu/gcc/libgomp/testsuite/libgomp.c/ |
| H A D | omp_matvec.c | 22 float A[SIZE][SIZE], b[SIZE], c[SIZE], total; in main() local 26 total = 0.0; in main() 45 #pragma omp parallel shared(A,b,c,total) private(tid,i) in main() 59 total = total + c[i]; in main() 61 printf("Running total= %.2f\n",total); in main() 68 printf("\nMatrix-vector total - sum of all c[] = %.2f\n\n",total); in main()
|
| /openbsd-src/gnu/usr.bin/cvs/lib/ |
| H A D | strtoul.c | 25 unsigned long total = 0; local 84 if (total > maxdiv 85 || (total == maxdiv && digit > maxrem)) 87 total = (total * base) + digit; 99 return negate ? -total : total;
|
| /openbsd-src/regress/usr.bin/ssh/ |
| H A D | modpipe.c | 80 size_t total; in main() local 100 for (total = 0;;) { in main() 110 if (mods[i].offset < total || in main() 111 mods[i].offset >= total + s) in main() 115 buf[mods[i].offset - total] ^= mods[i].m1; in main() 118 buf[mods[i].offset - total] &= mods[i].m1; in main() 119 buf[mods[i].offset - total] |= mods[i].m2; in main() 133 total += s; in main() 138 if (mods[i].offset < total) in main()
|
| /openbsd-src/usr.sbin/pkg_add/OpenBSD/ProgressMeter/ |
| H A D | Term.pm | 32 sub count_and($self, $progress, $done, $total, $method, @r) 35 $progress->show($$done, $total); 49 my $total = 0; 50 $plist->compute_count(\$total); 51 $total = 1 if $total == 0; 52 return $total; 68 $plist->{total} //= $progress->compute_count($plist); 70 $progress->show($count, $plist->{total}); 71 $plist->count_and($progress, \$count, $plist->{total}, 212 sub show($self, $current, $total) [all …]
|
| /openbsd-src/gnu/llvm/lldb/tools/lldb-vscode/ |
| H A D | ProgressEvent.cpp | 27 uint64_t completed, uint64_t total, in ProgressEvent() argument 33 const bool calculate_percentage = total != UINT64_MAX; in ProgressEvent() 43 } else if (completed == total) { in ProgressEvent() 54 (uint32_t)((double)completed / (double)total * 100.0), (uint32_t)99); in ProgressEvent() 69 uint64_t completed, uint64_t total, in Create() argument 72 if (completed > 0 && completed < total && !prev_event) in Create() 74 ProgressEvent event(progress_id, message, completed, total, prev_event); in Create() 165 uint64_t total) { in Update() argument 167 progress_id, std::nullopt, completed, total, &GetMostRecentEvent())) { in Update() 214 uint64_t completed, uint64_t total) { in Push() argument [all …]
|
| /openbsd-src/sys/arch/hppa/stand/mkboot/ |
| H A D | mkboot.c | 182 register int n, total; in putfile() local 238 total = 0; in putfile() 251 total += n; in putfile() 257 load.count = htobe32(4 + total); in putfile() 261 warnx("wrote %d bytes of file \'%s\'", total, from_file); in putfile() 263 total += sizeof(load); in putfile() 265 lseek(to, -total, SEEK_CUR); in putfile() 268 lseek(to, total - sizeof(load), SEEK_CUR); in putfile() 272 n = sizeof(int) - total % sizeof(int); in putfile() 273 if (total in putfile() [all...] |
| /openbsd-src/gnu/usr.bin/perl/t/op/ |
| H A D | hash.t | 144 my ($used, $total)= (0,0); 145 ($used, $total)= ($1,$2) if $ratio =~ /$expect/; 146 cmp_ok($total, '>', 0, "$desc has >0 array size ($total)"); 148 cmp_ok($used, '<=', $total, 150 return ($used, $total); 173 my ($used, $total) = validate_hash("$desc (-$count)", $h); 174 is($total, $total0, "$desc ($count) has same array size"); 218 my (undef, $total) = validate_hash($desc, $h); 219 ok($total [all...] |
| H A D | each.t | 89 my $total = 0; 91 $total += $key while $key = each %hash; 92 is ($total, 100, "test scalar each"); 96 $total = 0; 97 $total += $key while $key = each %hash; 98 is ($total, 100, "test scalar keys resets iterator"); 101 $total = 0; 102 $total += $key while $key = each %hash; 103 isnt ($total, 100, "test iterator of each is being maintained"); 107 $total = 0; [all …]
|
| /openbsd-src/gnu/llvm/llvm/docs/CommandGuide/ |
| H A D | llvm-bcanalyzer.rst | 116 The total number of blocks of any kind in the bitcode file. 120 The total number of function definitions in the bitcode file. 124 The total number of types defined in the Global Types Pool. 128 The total number of constants (of any type) defined in the Constant Pool. 132 The total number of basic blocks defined in all functions in the bitcode file. 136 The total number of instructions defined in all functions in the bitcode file. 140 The total number of long instructions defined in all functions in the bitcode 147 The total number of operands used in all instructions in the bitcode file. 151 The total number of compaction tables in all functions in the bitcode file. 155 The total number of symbol tables in all functions in the bitcode file. [all …]
|
| /openbsd-src/sys/dev/pci/drm/i915/ |
| H A D | i915_drm_client.c | 56 u64 total = 0; in busy_add() local 62 total += intel_context_get_total_runtime_ns(ce); in busy_add() 65 return total; in busy_add() 75 u64 total = atomic64_read(&client->past_runtime[class]); in show_client_class() local 80 total += busy_add(ctx, class); in show_client_class() 85 uabi_class_names[class], total); in show_client_class()
|
| /openbsd-src/gnu/gcc/gcc/config/i386/ |
| H A D | netware.c | 44 unsigned total = 0; in gen_stdcall_or_fastcall_decoration() local 71 total += parm_size; in gen_stdcall_or_fastcall_decoration() 82 total / BITS_PER_UNIT)); in gen_stdcall_or_fastcall_decoration() 92 unsigned total = 0; in gen_regparm_prefix() local 117 total += parm_size; in gen_regparm_prefix() 122 if (nregs > total / BITS_PER_WORD) in gen_regparm_prefix() 123 nregs = total / BITS_PER_WORD; in gen_regparm_prefix()
|
| /openbsd-src/usr.bin/dig/lib/dns/rdata/generic/ |
| H A D | opt_41.c | 76 unsigned int total; in fromwire_opt() local 88 total = 0; in fromwire_opt() 96 total += 4; in fromwire_opt() 175 total += length; in fromwire_opt() 180 if (tregion.length < total) in fromwire_opt() 182 memmove(tregion.base, sregion.base, total); in fromwire_opt() 183 isc_buffer_forward(source, total); in fromwire_opt() 184 isc_buffer_add(target, total); in fromwire_opt()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/config/pdp11/ |
| H A D | pdp11.h | 1247 total = COSTS_N_INSNS(2); \ 1249 total = COSTS_N_INSNS (11); \ 1253 total = COSTS_N_INSNS(2); \ 1255 total = COSTS_N_INSNS (25); \ 1259 total = COSTS_N_INSNS(2); \ 1261 total = COSTS_N_INSNS (26); \ 1265 total = COSTS_N_INSNS (3); \ 1269 total = COSTS_N_INSNS(1); \ 1273 total = COSTS_N_INSNS(1); \ 1275 total = COSTS_N_INSNS(6); \ [all …]
|
| /openbsd-src/sys/dev/microcode/myx/ |
| H A D | build.c | 43 size_t rlen, total = 0; in myx_build_firmware() local 71 rlen = ulen - total; in myx_build_firmware() 75 if (fwrite(&ufw[total], rlen, 1, f) < 1) { in myx_build_firmware() 81 total += rlen; in myx_build_firmware() 82 } while (total < ulen); in myx_build_firmware()
|