Home
last modified time | relevance | path

Searched refs:WEIGHT (Results 1 – 11 of 11) sorted by relevance

/dragonfly/games/battlestar/
HDcommand1.c215 if (WEIGHT > 5) in news()
216 WEIGHT -= 5; in news()
218 WEIGHT = 0; in news()
235 WEIGHT = 0; in news()
238 if (carrying > WEIGHT || encumber > CUMBER) in news()
HDcypher.c324 if (WEIGHT == 0) { in cypher()
336 carrying * 100 / WEIGHT); in cypher()
359 printf("%d kilogram%s\n", WEIGHT, in cypher()
360 (WEIGHT == 1 ? "." : "s.")); in cypher()
426 printf("WEIGHT (was %d) = ", WEIGHT); in cypher()
429 sscanf(buffer, "%d", &WEIGHT); in cypher()
HDsave.c47 fread(&WEIGHT, sizeof WEIGHT, 1, fp); in restore()
101 fwrite(&WEIGHT, sizeof WEIGHT, 1, fp); in save()
HDglobals.c35 int WEIGHT = MAXWEIGHT; variable
HDinit.c125 WEIGHT = 9; /* that'll get him! */ in checkout()
HDcommand7.c69 hurt = rnd(50) % (WEIGHT - carrying) - in fight()
HDextern.h305 extern int WEIGHT;
HDcommand3.c192 WEIGHT = MAXWEIGHT; in drink()
HDcommand5.c134 WEIGHT = MAXWEIGHT; in love()
HDcommand4.c52 heavy = (carrying + objwt[value]) <= WEIGHT; in take()
/dragonfly/contrib/zstd/lib/compress/
HDzstd_opt.c30 # define WEIGHT(stat) ((void)opt, ZSTD_bitWeight(stat))
34 # define WEIGHT(stat,opt) ((void)opt, ZSTD_fracWeight(stat)) macro
38 # define WEIGHT(stat,opt) (opt ? ZSTD_fracWeight(stat) : ZSTD_bitWeight(stat)) macro
75 optPtr->litSumBasePrice = WEIGHT(optPtr->litSum, optLevel); in ZSTD_setBasePrices()
76 optPtr->litLengthSumBasePrice = WEIGHT(optPtr->litLengthSum, optLevel); in ZSTD_setBasePrices()
77 optPtr->matchLengthSumBasePrice = WEIGHT(optPtr->matchLengthSum, optLevel); in ZSTD_setBasePrices()
78 optPtr->offCodeSumBasePrice = WEIGHT(optPtr->offCodeSum, optLevel); in ZSTD_setBasePrices()
231 …assert(WEIGHT(optPtr->litFreq[literals[u]], optLevel) <= optPtr->litSumBasePrice); /* literal co… in ZSTD_rawLiteralsCost()
232 price -= WEIGHT(optPtr->litFreq[literals[u]], optLevel); in ZSTD_rawLiteralsCost()
242 if (optPtr->priceType == zop_predef) return WEIGHT(litLength, optLevel); in ZSTD_litLengthPrice()
[all …]