Home
last modified time | relevance | path

Searched refs:prob (Results 1 – 25 of 54) sorted by relevance

123

/openbsd-src/games/hack/
H A Ddef.objects.h73 #define FOOD(name,prob,delay,weight,nutrition) { name, NULL, NULL, 1, 1,\ argument
74 FOOD_SYM, prob, delay, weight, 0, 0, nutrition }
158 #define WEAPON(name,prob,wt,ldam,sdam) { name, NULL, NULL, 1, 0 /*%%*/,\ argument
159 WEAPON_SYM, prob, 0, wt, ldam, sdam, 0 }
199 #define ARMOR(name,prob,delay,ac,can) { name, NULL, NULL, 1, 0,\ argument
200 ARMOR_SYM, prob, delay, 8, ac, can, 0 }
239 #define SCROLL(name,text,prob) { name, text, NULL, 0, 1,\ argument
240 SCROLL_SYM, prob, 0, 3, 0, 0, 0 }
267 #define WAND(name,metal,prob,flags) { name, metal, NULL, 0, 0,\ argument
268 WAND_SYM, prob, 0, 3, flags, 0, 0 }
[all …]
H A Dhack.o_init.c137 int prob = rn2(100); in probtype() local
139 while((prob -= objects[i].oc_prob) >= 0) i++; in probtype()
/openbsd-src/gnu/usr.bin/perl/t/op/
H A Drand.t41 my $prob = 1/$nslots; # probability of a particular slot being
65 my $mean = $reps * $prob;
66 my $stddev = sqrt($reps * $prob * (1 - $prob));
/openbsd-src/gnu/gcc/gcc/
H A Dloop-unswitch.c92 compare_and_jump_seq (rtx op0, rtx op1, enum rtx_code comp, rtx label, int prob, in compare_and_jump_seq() argument
130 REG_NOTES (jump) = gen_rtx_EXPR_LIST (REG_BR_PROB, GEN_INT (prob), in compare_and_jump_seq()
408 int irred_flag, prob; in unswitch_loop() local
442 prob = true_edge->probability; in unswitch_loop()
446 prob, cinsn); in unswitch_loop()
449 e->probability = prob; in unswitch_loop()
450 e->count = latch_edge->count * prob / REG_BR_PROB_BASE; in unswitch_loop()
H A Dcfg.c874 int prob; in update_bb_profile_for_threading() local
889 prob = edge_frequency * REG_BR_PROB_BASE / bb->frequency; in update_bb_profile_for_threading()
891 prob = 0; in update_bb_profile_for_threading()
892 if (prob > taken_edge->probability) in update_bb_profile_for_threading()
898 taken_edge->probability, prob); in update_bb_profile_for_threading()
899 prob = taken_edge->probability; in update_bb_profile_for_threading()
903 taken_edge->probability -= prob; in update_bb_profile_for_threading()
904 prob = REG_BR_PROB_BASE - prob; in update_bb_profile_for_threading()
908 if (prob <= 0) in update_bb_profile_for_threading()
920 else if (prob != REG_BR_PROB_BASE) in update_bb_profile_for_threading()
[all …]
H A Dvalue-prof.c176 tree op1, tree op2, tree value, int prob, gcov_type count, in tree_divmod_fixed_value() argument
239 e12->probability = prob; in tree_divmod_fixed_value()
243 e13->probability = REG_BR_PROB_BASE - prob; in tree_divmod_fixed_value()
267 int prob; in tree_divmod_fixed_value_transform() local
311 prob = (count * REG_BR_PROB_BASE + all / 2) / all; in tree_divmod_fixed_value_transform()
316 result = tree_divmod_fixed_value (stmt, op, op1, op2, tree_val, prob, count, all); in tree_divmod_fixed_value_transform()
339 tree_mod_pow2 (tree stmt, tree operation, tree op1, tree op2, int prob, in tree_mod_pow2() argument
406 e12->probability = prob; in tree_mod_pow2()
410 e13->probability = REG_BR_PROB_BASE - prob; in tree_mod_pow2()
434 int prob; in tree_mod_pow2_value_transform() local
[all …]
H A Dbb-reorder.c479 int prob, freq; in find_traces_1_round() local
511 prob = e->probability; in find_traces_1_round()
521 best_prob = prob; in find_traces_1_round()
530 || prob < branch_th || EDGE_FREQUENCY (e) < exec_th in find_traces_1_round()
537 if (better_edge_p (bb, e, prob, freq, best_prob, best_freq, in find_traces_1_round()
541 best_prob = prob; in find_traces_1_round()
584 prob = e->probability; in find_traces_1_round()
589 || prob < branch_th || freq < exec_th in find_traces_1_round()
849 better_edge_p (basic_block bb, edge e, int prob, int freq, int best_prob, in better_edge_p() argument
859 if (prob > best_prob + diff_prob) in better_edge_p()
[all …]
H A Dpredict.c198 probability_reliable_p (int prob) in probability_reliable_p() argument
202 && (prob <= HITRATE (1) || prob >= HITRATE (99)))); in probability_reliable_p()
507 int prob = INTVAL (XEXP (prob_note, 0)); in combine_predictions_for_insn() local
509 BRANCH_EDGE (bb)->probability = prob; in combine_predictions_for_insn()
510 FALLTHRU_EDGE (bb)->probability = REG_BR_PROB_BASE - prob; in combine_predictions_for_insn()
662 int prob; in predict_loops() local
670 prob = (REG_BR_PROB_BASE in predict_loops()
674 if (prob == REG_BR_PROB_BASE) in predict_loops()
675 prob = REG_BR_PROB_BASE - 1; in predict_loops()
677 prob); in predict_loops()
H A Dsched-rgn.c237 static int *prob; variable
1294 prob[bb] = REG_BR_PROB_BASE; in compute_dom_prob_ps()
1298 prob[bb] = 0; in compute_dom_prob_ps()
1324 prob[bb] += ((prob[pred_bb] * in_edge->probability) / REG_BR_PROB_BASE); in compute_dom_prob_ps()
1332 (100 * prob[bb]) / REG_BR_PROB_BASE); in compute_dom_prob_ps()
1381 int tf = prob[trg], cf = prob[i]; in compute_trg_info()
2719 prob = XNEWVEC (int, current_nr_blocks); in schedule_region()
2858 free (prob); in schedule_region()
H A Dcfgloopmanip.c422 int freq, prob, tot_prob; in loopify() local
432 prob = EDGE_SUCC (switch_bb, 0)->probability; in loopify()
433 tot_prob = prob + EDGE_SUCC (switch_bb, 1)->probability; in loopify()
467 scale_loop_frequencies (loop, prob, tot_prob); in loopify()
468 scale_loop_frequencies (succ_bb->loop_father, tot_prob - prob, tot_prob); in loopify()
H A Dprofile.c530 int prob; in compute_branch_probabilities() local
540 prob = e->probability; in compute_branch_probabilities()
541 index = prob * 20 / REG_BR_PROB_BASE; in compute_branch_probabilities()
H A Dreorg.c974 int prob = INTVAL (XEXP (note, 0)); in mostly_true_jump() local
976 if (prob >= REG_BR_PROB_BASE * 9 / 10) in mostly_true_jump()
978 else if (prob >= REG_BR_PROB_BASE / 2) in mostly_true_jump()
980 else if (prob >= REG_BR_PROB_BASE / 10) in mostly_true_jump()
H A Dcfgrtl.c1018 int prob = INTVAL (XEXP (note, 0)); in force_nonfallthru_and_redirect() local
1020 b->probability = prob; in force_nonfallthru_and_redirect()
1021 b->count = e->count * prob / REG_BR_PROB_BASE; in force_nonfallthru_and_redirect()
H A Dparams.def504 "min-spec-prob",
519 "sched-spec-prob-cutoff",
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dcfgcleanup.c612 int prob; local
619 prob = edge_frequency * REG_BR_PROB_BASE / first->frequency;
621 prob = 0;
622 if (prob > t->probability)
623 prob = t->probability;
624 t->probability -= prob;
625 prob = REG_BR_PROB_BASE - prob;
626 if (prob <= 0)
634 / (double) prob);
H A Dsched-rgn.c238 static float *prob; variable
243 #define GET_SRC_PROB(bb_src, bb_trg) ((int) (100.0 * (prob[bb_src] / \
244 prob[bb_trg])))
1055 prob[bb] = 0.0;
1059 prob[bb] = 1.0;
1107 prob[bb] += 0.9 * prob[BLOCK_TO_BB (pred)] / nr_out_edges;
1109 prob[bb] += prob[BLOCK_TO_BB (pred)] / nr_out_edges;
1119 (int) (100.0 * prob[bb]));
2753 prob = (float *) xmalloc ((current_nr_blocks) * sizeof (float));
2872 free (prob);
H A Dprofile.c643 int prob; in compute_branch_probabilities() local
653 prob = e->probability; in compute_branch_probabilities()
654 index = prob * 20 / REG_BR_PROB_BASE; in compute_branch_probabilities()
664 XEXP (note, 0) = GEN_INT (prob); in compute_branch_probabilities()
667 = gen_rtx_EXPR_LIST (REG_BR_PROB, GEN_INT (prob), in compute_branch_probabilities()
H A Dcfglayout.c484 int prob = INTVAL (XEXP (note, 0)); in fixup_reorder_chain() local
486 e_fake->probability = prob; in fixup_reorder_chain()
487 e_fake->count = e_fall->count * prob / REG_BR_PROB_BASE; in fixup_reorder_chain()
H A Dcfgrtl.c989 int prob = INTVAL (XEXP (note, 0)); local
991 b->probability = prob;
992 b->count = e->count * prob / REG_BR_PROB_BASE;
H A Dreorg.c953 int prob = INTVAL (XEXP (note, 0)); local
955 if (prob >= REG_BR_PROB_BASE * 9 / 10)
957 else if (prob >= REG_BR_PROB_BASE / 2)
959 else if (prob >= REG_BR_PROB_BASE / 10)
/openbsd-src/games/hunt/huntd/
H A Dexecute.c595 pickup(PLAYER *pp, int y, int x, int prob, int obj) in pickup() argument
615 if (rand_num(100) < prob) in pickup()
/openbsd-src/gnu/llvm/llvm/lib/Passes/
H A DPassRegistry.def218 FUNCTION_ANALYSIS("branch-prob", BranchProbabilityAnalysis())
347 FUNCTION_PASS("print<branch-prob>", BranchProbabilityPrinterPass(dbgs()))
/openbsd-src/sbin/pfctl/
H A Dparse.y259 u_int32_t prob; member
1973 filter_opts.prob = (u_int32_t)p;
1974 if (filter_opts.prob == 0)
1975 filter_opts.prob = 1;
5930 r->prob = opts->prob; in filteropts_to_rule()
H A Dpfctl_parser.c956 if (r->prob) { in print_rule()
959 snprintf(buf, sizeof(buf), "%f", r->prob*100.0/(UINT_MAX+1.0)); in print_rule()
/openbsd-src/sys/net/
H A Dpf_ioctl.c829 PF_MD5_UPD_HTONL(rule, prob, y); in pf_hash_rule()
3189 to->prob = from->prob; in pf_rule_copyin()

123