Home
last modified time | relevance | path

Searched refs:score (Results 1 – 25 of 85) sorted by relevance

1234

/openbsd-src/games/battlestar/
H A Dcommand6.c144 int score; in rate() local
146 score = max(max(pleasure, power), ego); in rate()
147 if (score == pleasure) { in rate()
148 if (score < 5) in rate()
150 else if (score < 20) in rate()
152 else if (score < 35) in rate()
157 if (score == power) { in rate()
158 if (score < 5) in rate()
160 else if (score < 8) in rate()
162 else if (score < 13) in rate()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/asan/
H A Dasan_scariness_score.h39 score = 0; in Clear()
45 score += add_to_score; in Scare()
47 int GetScore() const { return score; } in GetScore()
50 if (score && flags()->print_scariness) in Print()
51 Printf("SCARINESS: %d (%s)\n", score, descr); in Print()
53 static void PrintSimple(int score, const char *descr) { in PrintSimple()
56 SSB.Scare(score, descr); in PrintSimple()
61 int score;
/openbsd-src/games/tetris/
H A Dtetris.c63 int score; variable
121 score += 10; in elide()
124 score += 30; in elide()
127 score += 70; in elide()
130 score += 150; in elide()
271 score++; in main()
334 score++; in main()
349 score, score == 1 ? "" : "s", level, score * level); in main()
352 score, score == 1 ? "" : "s", level, (double)PRE_PENALTY, in main()
353 (int)(score * level * PRE_PENALTY)); in main()
[all …]
H A Dscores.c157 if (score > sp->hs_score) { in savescore()
161 sp->hs_score = score; /* new score */ in savescore()
164 } else if (score == sp->hs_score) { in savescore()
175 sp->hs_score = score; in savescore()
413 sp->hs_score == score && in printem()
/openbsd-src/gnu/gcc/gcc/config/score/
H A Dt-score-elf2 score-mdaux.o: $(srcdir)/config/score/score-mdaux.c $(CONFIG_H) $(SYSTEM_H) \
6 $(srcdir)/config/score/score-mdaux.c
9 $(T)crti.o: $(srcdir)/config/score/crti.asm $(GCC_PASSES)
11 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/score/crti.asm
13 $(T)crtn.o: $(srcdir)/config/score/crtn.asm $(GCC_PASSES)
15 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/score/crtn.asm
17 LIB1ASMSRC = score/mul-div.S
H A Dscore7.md24 (define_automaton "score")
26 (define_cpu_unit "core" "score")
/openbsd-src/games/backgammon/backgammon/
H A Dpubeval.c85 float score; in pubeval() local
92 score = 0.0; in pubeval()
95 score += wr[i] * x[i]; in pubeval()
98 score += wc[i] * x[i]; in pubeval()
100 return (score); in pubeval()
/openbsd-src/gnu/usr.bin/perl/ext/Hash-Util/lib/Hash/
H A DUtil.pm579 above indicate a poor score. In practice it should be around 0.95 to 1.05.
582 $score= sum( $count[$length] * ($length * ($length + 1) / 2) )
614 my $score;
617 $score += $length_counts[$_] * ( $_ * ($_ + 1 ) / 2 );
619 $score = $score /
630 return $keys, $buckets, $used, $keys ? ($score, $used/$buckets, ($keys-$used)/$keys, $mean, $stddev, @length_counts) : ();
654 including the quality score translated into "Good", "Poor" and "Bad",
655 (score<=1.05, score<
[all...]
/openbsd-src/sys/dev/pci/drm/apple/
H A Dparser.c313 s64 score; member
319 if (color->score >= cmode->score) in fill_color_mode()
333 color->score = cmode->score; in fill_color_mode()
349 out->sdr_444.score = -1; in parse_color_modes()
350 out->sdr_rgb.score = -1; in parse_color_modes()
351 out->best.score = -1; in parse_color_modes()
378 ret = parse_int(it.handle, &cmode.score); in parse_color_modes()
390 if (is_virtual || cmode.score < 0 || cmode.id < 0) in parse_color_modes()
393 trace_iomfb_color_mode(handle->dcp, cmode.id, cmode.score, in parse_color_modes()
428 struct dcp_display_mode *out, s64 *score, int width_mm, in parse_mode() argument
[all …]
H A Dtrace.h324 … struct dimension *horiz, struct dimension *vert, s64 best_color_mode, bool is_virtual, s64 score),
325 TP_ARGS(id, horiz, vert, best_color_mode, is_virtual, score),
332 __field(s64, score)),
339 __entry->score = score;),
344 __entry->is_virtual, __entry->score));
347 … struct dimension *horiz, struct dimension *vert, s64 best_color_mode, bool is_virtual, s64 score),
348 TP_ARGS(id, horiz, vert, best_color_mode, is_virtual, score));
351 … struct dimension *horiz, struct dimension *vert, s64 best_color_mode, bool is_virtual, s64 score),
352 TP_ARGS(id, horiz, vert, best_color_mode, is_virtual, score));
494 TP_PROTO(struct apple_dcp *dcp, u32 id, u32 score, u32 depth,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Analysis/models/
H A Dlog_reader.py96 score = None
100 score = read_tensor(f, score_spec)
102 yield context, observation_id, features, score
107 for ctx, obs_id, features, score in read_stream(args[1]):
114 if score:
115 pretty_print_tensor_value(score)
/openbsd-src/games/cribbage/
H A Dsupport.c197 prpeg(int score, int peg, bool myturn) in prpeg() argument
206 if (score <= 0 || score >= glimit) { in prpeg()
209 if (score == 0) in prpeg()
216 x = (score - 1) % 30; in prpeg()
217 if (score > 90 || (score > 30 && score <= 60)) { in prpeg()
225 mvprintw(SCORE_Y + (myturn ? 7 : 1), SCORE_X + 10, "%3d", score); in prpeg()
H A Dscore.c102 int score; in scorehand() local
108 score = 0; in scorehand()
115 score++; in scorehand()
126 score += 5; in scorehand()
131 score += 4; in scorehand()
143 score += i; in scorehand()
153 score += i; in scorehand()
163 return (score); in scorehand()
H A Dcribbage.n29 placed between the two players, and each keeps his own score on the two
32 score, the player advances one peg an appropriate number of holes (one per
33 point) away from the game end of the board. The second score is recorded
35 each subsequent score, the rear peg is jumped ahead of the other, the
36 distance between the two pegs always showing the amount of this last score.
59 cards -- cards that are least likely to create a score in the crib.
106 rank alone; the suits do not matter. Nor does the score
110 score 3 for run; 5, 2, 4, 3 played in that order score 4
116 does not score if it is interrupted by a go.
134 Four cards of the same suit in hand score 4; four
[all …]
H A Dcrib.c294 if (score(mycrib)) in playhand()
606 prtable(int score) in prtable() argument
609 mvwprintw(Tablewin, (Tcnt + 2) * 2, Tcnt + 1, "%2d", score); in prtable()
618 score(bool mycrib) in score() function
/openbsd-src/usr.bin/mg/
H A Ddisplay.c48 struct score { struct
91 struct score *score; /* [NROW * NROW] */ variable
193 TRYREALLOCARRAY(score, newrow, newrow * sizeof(struct score)); in vtresize()
930 struct score *sp; in setscores()
931 struct score *sp1; in setscores()
940 score[0].s_itrace = 0; /* [0, 0] */ in setscores()
941 score[0].s_jtrace = 0; in setscores()
942 score[0].s_cost = 0; in setscores()
943 sp = &score[1]; /* Row 0, inserts. */ in setscores()
955 sp = &score[nrow]; /* Column 0, deletes. */ in setscores()
[all …]
/openbsd-src/games/worm/
H A Dworm.c63 int score = 0; variable
244 printf("\nYou won!\nYour final score was %d\n\n", score); in newpos()
352 score += amt; in process()
355 wprintw(stw, "Score: %3d", score); in process()
394 printf("Your final score was %d\n", score); in crash()
/openbsd-src/games/quiz/
H A Dquiz.c56 void score(u_int, u_int, u_int);
287 score(rights, wrongs, guesses); in quiz()
308 score(rights, wrongs, guesses); in quiz()
337 score(u_int r, u_int w, u_int g) in score() function
/openbsd-src/sbin/iked/
H A Dpolicy.c1005 unsigned int i, score, chosen_score = 0; in proposals_negotiate() local
1023 score = proposals_match(plocal, ppeer, match, in proposals_negotiate()
1025 log_debug("%s: score %d", __func__, score); in proposals_negotiate()
1026 if (score && (!chosen_score || score < chosen_score)) { in proposals_negotiate()
1027 chosen_score = score; in proposals_negotiate()
1082 unsigned int i, j, type, score, requiredh = 0, nodh = 0, noauth = 0; in proposals_match() local
1170 for (i = score = 0; i < IKEV2_XFORMTYPE_MAX; i++) { in proposals_match()
1175 score = 0; in proposals_match()
1179 score = 0; in proposals_match()
1184 score = 0; in proposals_match()
[all …]
/openbsd-src/gnu/llvm/llvm/utils/filecheck_lint/
H A Dfilecheck_lint.py226 score, best_match = find_best_match(potential_directive)
227 if score == 0: # This is an actual directive, ignore.
229 elif score <= threshold and best_match not in _ignore:
/openbsd-src/games/sail/
H A Ddr_2.c148 score(char movement[], size_t movementl, struct ship *ship, struct ship *to, in score() function
233 new = score(temp, templ, f, t, rakeme); in try()
244 new = score(temp, templ, f, t, rakeme); in try()
254 new = score(temp, templ, f, t, rakeme); in try()
/openbsd-src/games/snake/
H A Dsnake.c95 short score; member
515 return (iscore > scores[nscores - 1].score); in post()
521 oldbest = scores[0].score; in post()
522 scores[nscores].score = iscore; in post()
527 scores[0].score = iscore; in post()
532 while (rank-- > 0 && iscore > scores[rank].score) { in post()
929 printf("%2d.\t$%d\t%s\n", i+1, scores[i].score, scores[i].name); in snscore()
996 scores[nscores].score = 0; in readscores()
/openbsd-src/sys/dev/pci/drm/scheduler/
H A Dsched_main.c155 atomic_inc(rq->sched->score); in drm_sched_rq_add_entity()
177 atomic_dec(rq->sched->score); in drm_sched_rq_remove_entity()
273 atomic_dec(sched->score); in drm_sched_job_done()
984 num_score = atomic_read(sched->score); in drm_sched_pick_best()
1095 * @score: optional score atomic shared with other schedulers in drm_sched_init()
1105 atomic_t *score, const char *name, struct device *dev) in drm_sched_init()
1114 sched->score = score ? score in drm_sched_init()
1097 drm_sched_init(struct drm_gpu_scheduler * sched,const struct drm_sched_backend_ops * ops,unsigned hw_submission,unsigned hang_limit,long timeout,struct workqueue_struct * timeout_wq,atomic_t * score,const char * name,struct device * dev) drm_sched_init() argument
[all...]
/openbsd-src/games/adventure/
H A Ddone.c47 score(void) /* sort of like 20000 */ in score() function
109 printf("\n\n\nYou scored %d out of a ", (sc = score())); in done()
/openbsd-src/gnu/usr.bin/perl/regen/
H A Dmph.pl652 my $score= _get_popularity($popularity, $i, $wlen);
653 if (_compare_score($score, $best_score) > 0) {
654 $best_score= $score;
663 score => $best_score,
699 my $cand_score= $cand->{score};
723 my $cand_score= _merge_score($cand1->{score}, $cand2->{score});

1234