/src/games/trek/ |
attack.c | 58 ** Under certain conditions you can get a critical hit. This 59 ** sort of hit damages devices. The probability that a given 69 ** it) depends on the amount of the hit and the "damfac[]" 80 int hit, i, l; local in function:attack 118 /* complete the hit */ 121 hit = Etc.klingon[i].power * pow(dustfac, tothe) * Param.hitfac; 126 /* see how much of hit shields will absorb */ 131 shldabsb = propor * chgfac * hit; 136 /* actually do the hit */ 137 printf("\aHIT: %d units", hit); [all...] |
phaser.c | 104 int hit; local in function:phaser 167 hit = getintpar("units"); 168 if (hit < 0) 170 if (hit == 0) 172 extra += hit; 179 b->units = hit; 180 hit = getintpar("course"); 181 if (hit < 0 || hit > 360) 183 b->angle = hit * 0.0174532925 [all...] |
/src/games/larn/ |
diag.c | 37 int hit, dam; local in function:diag 74 lprcat("\n\nHere's a Table for the to hit percentages\n"); 77 lprcat("\n to hit: if (rnd(22) < (2[monst AC] + your level + dex + WC/8 -1)/2) then hit"); 79 lprcat("\n to hit: if rnd(22) < to hit then player hits\n"); 80 lprcat("\n Each entry is as follows: to hit / damage / number hits to kill\n"); 84 hit = 2 * monster[i].armorclass + 2 * monster[i].level + 16; 88 (long) (hit / 2), (long) max(0, dam + 2), (long) (monster[i].hitpoints / (dam + 2) + 1), 89 (long) ((hit + 2) / 2), (long) max(0, dam + 10), (long) (monster[i].hitpoints / (dam + 10) + 1) [all...] |
/src/games/sail/ |
pl_3.c | 56 int guns, car, ready, shootat, hit; local in function:acceptcombat 146 hit = HDT[index][target-1]; 148 hit = HDTrake[index][target-1]; 150 hit++; 151 hit += QUAL[index][mc->qual-1]; 155 hit--; 157 hit -= 2; 161 hit++; 163 hit += 2; 167 hit-- [all...] |
dr_1.c | 276 int shootat, hit; local in function:compcombat 354 hit = HDT[indx][target-1]; 356 hit = HDTrake[indx][target-1]; 358 hit++; 359 hit += QUAL[indx][capship(sp)->specs->qual - 1]; 363 hit--; 365 hit -= 2; 374 hit++; 376 hit += 2; 380 hit-- [all...] |
/src/usr.sbin/rpcbind/ |
pmap_svc.c | 153 register struct pmaplist *hit = NULL; local in function:find_service_pmap 160 hit = pml; 164 return (hit);
|
rpcb_svc_com.c | 166 * find_service returns a hit even if 1399 rpcblist_ptr hit = NULL; local in function:find_service 1407 hit = rbl; 1411 return (hit);
|
/src/regress/sys/uvm/pdsim/ |
pdsim.c | 53 int hit; member in struct:__anon6eb722e60108 196 stats[index].hit++; 280 stats[i].hit, stats[i].fault, irr[i]);
|
/src/games/hack/ |
hack.zap.c | 89 /* bhitm: monster mtmp was hit by the effect of wand otmp */ 98 hit("wand", mtmp, exclam(tmp)); 144 * object obj was hit by the effect of wand otmp 359 hit(const char *str, struct monst *mtmp, const char *force) function in typeref:typename:void 381 * or when a monster is hit; the monster is returned, and bhitpos is set to 391 /* fns called when mon/obj hit */ 469 if (rn2(20) >= 10 + u.ulevel) { /* we hit ourselves */ 574 hit(fltxt, mon, exclam(tmp));
|
/src/sys/fs/nfs/server/ |
nfs_nfsdcache.c | 42 * - I think a false hit is more serious than a false miss 43 * - A false hit for an RPC that has Op(s) that order via seqid# must be 45 * - A valid hit will probably happen a long time after the original reply 77 * - a hit (reply from cache) 157 * hit. For V4, the non-idempotent Op will return NFSERR_RESOURCE in 609 int hit, ret = 0; local in function:nfsrc_gettcp 617 hit = 1; 649 hit = 0; 654 * Can be a hit only if one entry left. 655 * Note possible hit entry and put nfsrc_templist back on has [all...] |
/src/sys/kern/ |
vfs_cache.c | 322 SDT_PROBE_DEFINE3(vfs, namecache, lookup, hit, "struct vnode *", 540 bool hit; local in function:cache_lookup 608 hit = false; 611 SDT_PROBE(vfs, namecache, lookup, hit, dvp, name, 614 hit = true; 617 return hit; 632 SDT_PROBE(vfs, namecache, lookup, hit, dvp, name, namelen, 0, 0); 763 SDT_PROBE(vfs, namecache, lookup, hit, dvp, name, namelen, 0, 0); 853 * The queue is partially sorted. Once we hit dots, nothing 864 * Record a hit on the entry. This is an unlocked read bu [all...] |
/src/sys/external/bsd/drm2/dist/drm/vmwgfx/ |
vmwgfx_binding.c | 1026 unsigned long hit = 0; local in function:vmw_binding_emit_dirty 1028 while ((hit = find_next_bit(&cbs->dirty, VMW_BINDING_NUM_BITS, hit)) 1031 switch (hit) { 1050 __clear_bit(hit, &cbs->dirty); 1051 hit++;
|
/src/sys/fs/nilfs/ |
nilfs_subr.c | 871 int hit, error; local in function:nilfs_lookup_name_in_dir 894 hit = dirhash_lookup(dirh, name, namelen, &dirh_ep); 895 /* if no hit, abort the search */ 896 if (!hit) 899 /* check this hit */
|
/src/sys/dev/ic/ |
ciss.c | 1279 int hit = 0; local in function:ciss_intr_simple_intx 1292 hit = (!TAILQ_EMPTY(&q)); 1298 return hit;
|
/src/sys/netinet6/ |
ip6_input.c | 253 int hit, off = sizeof(struct ip6_hdr), nest; local in function:ip6_input 440 rt = rtcache_lookup2(ro, &u.dst, 1, &hit); 441 if (hit)
|
/src/sys/netinet/ |
tcp_vtw.h | 289 uint64_t hit[2]; /* <! lookups that hit */ member in struct:vtw_stats
|
/src/sys/dev/qbus/ |
if_qtreg.h | 219 uint16_t hit; member in struct:qt_init
|
/src/sys/arch/hp300/dev/ |
dcm.c | 1300 int s, unit, brd, port, hit = 0; local in function:dcmmctl 1320 hit++; 1325 hit++; 1330 hit++; 1339 if (hit) {
|
/src/usr.bin/deroff/ |
deroff.c | 1441 int hit; local in function:comline 1486 hit = 1; 1488 printf("preliminary hit macro %c%c ", c1, c2); 1492 hit = YES; 1495 hit = (filesp == files); 1498 hit = !inmacro; 1501 hit = inmacro; 1504 hit = parag; 1507 hit = !keepblock; 1510 hit = 0 [all...] |
/src/sys/net/ |
route.h | 501 int hit; local in function:rtcache_lookup1 503 return rtcache_lookup2(ro, dst, clone, &hit);
|
/src/sys/dev/usb/ |
ohci.c | 2269 int hit; local in function:ohci_abortx 2370 hit = 0; 2372 hit |= headp == p->physaddr; 2410 if (hit) { 2421 DPRINTFN(1, "no hit", 0, 0, 0, 0);
|
ehci.c | 3393 int hit; local in function:ehci_abortx 3468 hit = 0; 3470 hit |= cur == sqtd->physaddr; 3476 if (hit && sqtd != NULL) { 3489 DPRINTF("no hit", 0, 0, 0, 0);
|
/src/sys/fs/udf/ |
udf_subr.c | 3090 * until we get a hit. 4598 int hit, error; local in function:udf_lookup_name_in_dir 4634 hit = dirhash_lookup(dirh, s_dirent->d_name, s_dirent->d_namlen, &dirh_ep); 4635 /* if no hit, abort the search */ 4636 if (!hit) 4639 /* check this hit */ 4834 int hit, refcnt; local in function:udf_dir_detach 4869 hit = dirhash_lookup(dirh, s_dirent->d_name, s_dirent->d_namlen, &dirh_ep); 4870 /* if no hit, abort the search */ 4871 if (!hit) 4991 int hit; local in function:udf_dir_update_rootentry 5111 int file_char, refcnt, icbflags, addr_type, hit, error; local in function:udf_dir_attach [all...] |