Home
last modified time | relevance | path

Searched refs:TestBit (Results 1 – 12 of 12) sorted by relevance

/openbsd/games/battlestar/
H A Dcommand4.c56 if ((TestBit(from, value) || tempwiz) && heavy && bulky && !TestBit(inven, value)) { in take()
61 if (TestBit(from, value)) in take()
91 if (TestBit(from, SWORD)) { in take()
105 if (TestBit(from, MAID)) { in take()
158 …if (TestBit(location[position].objects, BATHGOD) && (TestBit(wear, AMULET) || TestBit(inven, AMULE… in take()
273 if (TestBit(inven, MAID) || TestBit(location[position].objects, MAID)) in drop()
275 if (TestBit(inven, DEADWOOD) || TestBit(location[position].objects, DEADWOOD)) in drop()
277 if (TestBit(inven, DEADGOD) || TestBit(location[position].objects, DEADGOD)) in drop()
279 if (TestBit(inven, DEADTIME) || TestBit(location[position].objects, DEADTIME)) in drop()
281 if (TestBit(inven, DEADNATIVE) || TestBit(location[position].objects, DEADNATIVE)) in drop()
[all …]
H A Dcommand3.c40 if (TestBit(inven, SHOVEL)) { in dig()
92 if (TestBit(inven, n)) { in jump()
106 if (TestBit(inven, SHOVEL)) { in bury()
115 if (TestBit(inven, MAID) || TestBit(location[position].objects, MAID)) in bury()
117 if (TestBit(inven, DEADWOOD) || TestBit(location[position].objects, DEADWOOD)) in bury()
119 if (TestBit(inven, DEADGOD) || TestBit(location[position].objects, DEADGOD)) in bury()
121 if (TestBit(inven, DEADTIME) || TestBit(location[position].objects, DEADTIME)) in bury()
123 if (TestBit(inven, DEADNATIVE) || TestBit(location[position].objects, DEADNATIVE)) in bury()
145 if (TestBit(inven, value)) { in bury()
171 if (TestBit(inven, POTION)) { in drink()
[all …]
H A Dcommand7.c68 if (TestBit(inven, TWO_HANDED)) in fight()
70 else if (TestBit(inven, SWORD) || TestBit(inven, BROAD)) in fight()
72 …else if (TestBit(inven, KNIFE) || TestBit(inven, MALLET) || TestBit(inven, CHAIN) || TestBit(inven… in fight()
170 if (TestBit(inven, AMULET) || TestBit(wear, AMULET)) { in fight()
172 if (TestBit(inven, MEDALION) || TestBit(wear, MEDALION)) { in fight()
178 if (TestBit(inven, AMULET)) { in fight()
210 if (TestBit(inven, LASER)) { in fight()
248 …hurt = rnd(NUMOFINJURIES) - (TestBit(inven, SHIELD) != 0) - (TestBit(wear, MAIL) != 0) - (TestBit(… in fight()
249 …hurt += (TestBit(wear, AMULET) != 0) + (TestBit(wear, MEDALION) != 0) + (TestBit(wear, TALISMAN) !… in fight()
H A Dcommand1.c44 TestBit(location[position].objects, LAND) || in moveplayer()
133 … ((TestBit(inven, TALISMAN) || TestBit(wear, TALISMAN)) && (TestBit(inven, MEDALION) || TestBit(we… in news()
137 if (TestBit(location[position].objects, ELF)) { in news()
141 if (TestBit(location[position].objects, DARK)) { in news()
145 if (TestBit(location[position].objects, WOODSMAN)) { in news()
165 if (TestBit(location[position].objects, GIRL)) in news()
182 if (TestBit(location[position].objects, CYLON)) { in news()
240 (TestBit(location[position].objects, LAND) && fuel <= 0)) { in crash()
280 if (!notes[CANTSEE] || TestBit(inven, LAMPON) || in newlocation()
281 TestBit(location[position].objects, LAMPON)) { in newlocation()
H A Dcommand2.c80 if (TestBit(inven, value)) { in wearit()
89 if (TestBit(wear, value)) in wearit()
139 if (TestBit(inven, MEDALION)) { in use()
185 n == HALBERD) && TestBit(inven, n)); n++) in murder()
188 if (TestBit(inven, LASER)) { in murder()
218 if (TestBit(location[position].objects, BATHGOD)) { in murder()
225 if (TestBit(location[position].objects, NORMGOD)) { in murder()
237 if (TestBit(location[position].objects, TIMER)) { in murder()
247 if (TestBit(location[position].objects, NATIVE)) { in murder()
257 if (TestBit(location[position].objects, MAN)) { in murder()
[all …]
H A Dcommand5.c45 && TestBit(location[position].objects, BATHGOD)) { in kiss()
51 if (TestBit(location[position].objects, wordvalue[wordnumber])) { in kiss()
98 if ((TestBit(location[position].objects, BATHGOD) || in love()
99 TestBit(location[position].objects, NORMGOD)) && in love()
132 if (TestBit(location[position].objects, wordvalue[wordnumber])) { in love()
184 while (!TestBit(inven, n)) in zzz()
306 if (person && TestBit(location[position].objects, person)) { in give()
316 …if (result != -1 && (TestBit(location[position].objects, obj) || obj == AMULET || obj == MEDALION … in give()
H A Dcypher.c161 if (TestBit(location[position].objects, n) && objsht[n]) { in cypher()
201 if (TestBit(inven, n)) { in cypher()
222 if (TestBit(inven, n) || in cypher()
223 (TestBit(location[position].objects, n) && objsht[n])) { in cypher()
263 if (TestBit(inven, n)) in cypher()
283 if (TestBit(wear, n)) in cypher()
306 if (!notes[CANTSEE] || TestBit(inven, LAMPON) || in cypher()
307 TestBit(location[position].objects, LAMPON) in cypher()
498 if (TestBit(testarray, n) && in verb_with_all()
H A Dcommand6.c46 if (TestBit(location[position].objects, VIPER) && !notes[CANTLAUNCH]) { in launch()
66 if (notes[LAUNCHED] && TestBit(location[position].objects, LAND) && in land()
183 if (TestBit(location[position].objects, CAR)) { in drive()
200 if (TestBit(location[position].objects, HORSE)) { in ride()
225 if (TestBit(inven, MATCHES) && matchcount) { in light()
H A Dmisc.c54 if (TestBit(array, n)) in ucard()
H A Droom.c69 if (TestBit(p, n) && objdes[n]) in printobjs()
H A Dextern.h42 #define TestBit(array, index) (array[index/BITS] & (1U << (index % BITS))) macro
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp2296 int TestBit = -1; in emitCompareAndBranch() local
2320 TestBit = C->getValue().logBase2(); in emitCompareAndBranch()
2326 TestBit = 0; in emitCompareAndBranch()
2335 TestBit = BW - 1; in emitCompareAndBranch()
2346 TestBit = BW - 1; in emitCompareAndBranch()
2358 bool IsBitTest = TestBit != -1; in emitCompareAndBranch()
2360 if (TestBit < 32 && TestBit >= 0) in emitCompareAndBranch()
2382 MIB.addImm(TestBit); in emitCompareAndBranch()