Home
last modified time | relevance | path

Searched refs:ux (Results 1 – 25 of 72) sorted by relevance

123

/openbsd/src/lib/libm/src/ld80/
De_fmodl.c59 } ux, uy; in fmodl() local
65 ux.e = x; in fmodl()
67 sx = ux.bits.ext_sign; in fmodl()
71 (ux.bits.ext_exp == BIAS + LDBL_MAX_EXP) || /* or x not finite */ in fmodl()
75 if(ux.bits.ext_exp<=uy.bits.ext_exp) { in fmodl()
76 if((ux.bits.ext_exp<uy.bits.ext_exp) || in fmodl()
77 (ux.bits.ext_frach<=uy.bits.ext_frach && in fmodl()
78 (ux.bits.ext_frach<uy.bits.ext_frach || in fmodl()
79 ux.bits.ext_fracl<uy.bits.ext_fracl))) { in fmodl()
82 if(ux.bits.ext_frach==uy.bits.ext_frach && in fmodl()
[all …]
/openbsd/src/games/hack/
Dhack.c101 for(x = u.ux-1; x < u.ux+2; x++) in unsee()
137 for(x = u.ux-1; x < u.ux+2; x++) in seeoff()
165 u.ux = u.ustuck->mx; in domove()
171 } while(!isok(u.ux+u.dx, u.uy+u.dy) || in domove()
172 IS_ROCK(levl[u.ux+u.dx][u.uy+u.dy].typ)); in domove()
174 if(!isok(u.ux+u.dx, u.uy+u.dy)){ in domove()
180 ust = &levl[(int)u.ux][(int)u.uy]; in domove()
181 oldx = u.ux; in domove()
183 if(!u.uswallow && (trap = t_at(u.ux+u.dx, u.uy+u.dy)) && trap->tseen) in domove()
185 if(u.ustuck && !u.uswallow && (u.ux+u.dx != u.ustuck->mx || in domove()
[all …]
Dhack.read.c210 (struct permonst *) 0, u.ux, u.uy); in doread()
237 if ((mtmp = m_at(u.ux+i, u.uy+j))) in doread()
283 int oux = u.ux, ouy = u.uy; in doread()
287 int uroom = inroom(u.ux, u.uy); in doread()
289 if(uroom != inroom(u.ux, u.uy)) known = TRUE; in doread()
304 if(ttmp->tx != u.ux || ttmp->ty != u.uy) in doread()
325 if(gtmp->gx != u.ux || gtmp->gy != u.uy) in doread()
349 if(obj->ox == u.ux && obj->oy == u.uy) ctu++; in doread()
480 setworn(mkobj_at(CHAIN_SYM, u.ux, u.uy), W_CHAIN); in doread()
481 setworn(mkobj_at(BALL_SYM, u.ux, u.uy), W_BALL); in doread()
[all …]
Dhack.do.c93 mkgold(amount, u.ux, u.uy); in drop()
96 if(Invisible) newsym(u.ux, u.uy); in drop()
130 obj->ox = u.ux; in dropy()
134 if(Invisible) newsym(u.ux,u.uy); in dropy()
149 if(u.ux != xdnstair || u.uy != ydnstair) { in dodown()
169 if(u.ux != xupstair || u.uy != yupstair) { in doup()
219 u.ux = FAR; /* hack */ in goto_level()
246 u.ux = xdnstair; in goto_level()
248 if(!u.ux) { /* entering a maze from below? */ in goto_level()
249 u.ux = xupstair; /* this will confuse the player! */ in goto_level()
[all …]
Dhack.pri.c84 curs(u.ux-1, u.uy+1); in swallowed()
86 curx = u.ux+2; in swallowed()
87 curs(u.ux-1, u.uy+2); in swallowed()
89 curx = u.ux+2; in swallowed()
90 curs(u.ux-1, u.uy+3); in swallowed()
92 curx = u.ux+2; in swallowed()
94 u.udisx = u.ux; in swallowed()
250 if(!Invisible) at(u.ux,u.uy,u.usym); in prme()
275 levl[(int)(u.udisx = u.ux)][(int)(u.udisy = u.uy)].scrsym = u.usym; in docrt()
345 curs(u.ux, u.uy+2); in curs_on_u()
[all …]
Dhack.search.c77 for(lx = u.ux; (num = levl[lx-1][(int)u.uy].typ) && num != CORR; lx--) ; in findit()
78 for(hx = u.ux; (num = levl[hx+1][(int)u.uy].typ) && num != CORR; hx++) ; in findit()
79 for(ly = u.uy; (num = levl[(int)u.ux][ly-1].typ) && num != CORR; ly--) ; in findit()
80 for(hy = u.uy; (num = levl[(int)u.ux][hy+1].typ) && num != CORR; hy++) ; in findit()
121 for(x = u.ux-1; x < u.ux+2; x++) in dosearch()
122 for(y = u.uy-1; y < u.uy+2; y++) if(x != u.ux || y != u.uy) { in dosearch()
168 x = u.ux + u.dx; in doidtrap()
Dhack.trap.c129 if(makemon(PM_PIERCER,u.ux,u.uy)) { in dotrap()
140 mksobj_at(ARROW, u.ux, u.uy); in dotrap()
149 mksobj_at(ROCK, u.ux, u.uy); in dotrap()
152 if(Invisible) newsym(u.ux, u.uy); in dotrap()
172 mksobj_at(DART, u.ux, u.uy); in dotrap()
179 newsym(u.ux,u.uy); in dotrap()
182 newsym(u.ux,u.uy); in dotrap()
327 if ((trap = t_at(u.ux,u.uy))) in float_down()
391 u.ux = nux; in teleds()
404 if(!Blind) read_engr_at(u.ux,u.uy); in teleds()
[all …]
Dhack.bones.c93 otmp->ox = u.ux; in savebones()
106 if(!(mtmp = makemon(PM_GHOST, u.ux, u.uy))) return; in savebones()
107 mtmp->mx = u.ux; in savebones()
111 mkgold(somegold() + d(dlevel,30), u.ux, u.uy); in savebones()
Dhack.vault.c125 if((u.ux == fcx && u.uy == fcy) || cansee(fcx,fcy) || in restfakecorr()
166 int tmp = inroom(u.ux, u.uy); in invault()
180 for(x = u.ux-dd; x <= u.ux+dd; x++) { in invault()
181 if(y != u.uy-dd && y != u.uy+dd && x != u.ux-dd) in invault()
182 x = u.ux+dd; in invault()
195 x = u.ux; y = u.uy; in invault()
Dhack.apply.c266 int bchx = u.ux, bchy = u.uy; in bchit()
329 ((dig_down && (dpx != u.ux || dpy != u.uy)) || in dig()
401 struct trap *ttmp = t_at(u.ux, u.uy); in dighole()
409 ttmp = maketrap(u.ux, u.uy, TRAPDOOR); in dighole()
448 rx = u.ux + u.dx; in use_pick_axe()
468 rx = u.ux + u.dx; in use_pick_axe()
502 if(dig_pos.x != u.ux || dig_pos.y != u.uy in use_pick_axe()
505 dig_pos.x = u.ux; in use_pick_axe()
Dhack.zap.c209 struct obj *otmp = o_at(u.ux, u.uy); in dozap()
227 (void) makemon((struct permonst *) 0, u.ux, u.uy); in dozap()
270 mksobj_at(ROCK, u.ux, u.uy); in dozap()
273 if(Invisible) newsym(u.ux, u.uy); in dozap()
279 zx = u.ux+u.dx; in dozap()
316 u.ux, u.uy, u.dx, u.dy); in dozap()
377 bhitpos.x = u.ux; in bhit()
420 bhitpos.x = u.ux; in boomhit()
442 if (bhitpos.x == u.ux && bhitpos.y == u.uy) { /* ct == 9 */ in boomhit()
548 } else if(sx == u.ux && sy == u.uy) { in buzz()
Dhack.wizard.c119 if((u.ux != otmp->ox || u.uy != otmp->oy) && in wiz_hit()
158 if(inroom(u.ux,u.uy) != inroom(mtmp->mx,mtmp->my)) return; in inrange()
159 tx = u.ux - mtmp->mx; in inrange()
200 (void) makemon((struct permonst *)0, u.ux, u.uy); in inrange()
Dhack.mon.c170 mtmp->mx = u.ux; in justswld()
267 scared = (nearby && (sengr_at("Elbereth", u.ux, u.uy) || in dochug()
268 sobj_at(SCR_SCARE_MONSTER, u.ux, u.uy))); in dochug()
348 || levl[(int)u.ux][(int)u.uy].typ == STAIRS))) { in m_move()
379 gx = u.ux; in m_move()
392 if(mroom < 0 || mroom != inroom(u.ux,u.uy)){ in m_move()
431 gx = u.ux; in m_move()
567 if (nx == u.ux && ny == u.uy) { in mfndpos()
621 return((x-u.ux)*(x-u.ux) + (y-u.uy)*(y-u.uy)); in dist()
717 u.ux = mtmp->mx; in unstuck()
[all …]
Dhack.shk.c267 int roomno = inroom(u.ux,u.uy); in inshop()
658 (u.ux == ESHK(shopkeeper)->shk.x && u.uy == ESHK(shopkeeper)->shk.y) || in addtobill()
659 (u.ux == ESHK(shopkeeper)->shd.x && u.uy == ESHK(shopkeeper)->shd.y) || in addtobill()
715 if(!inshop() || (u.ux == ESHK(shopkeeper)->shk.x && u.uy == ESHK(shopkeeper)->shk.y) || in subfrombill()
716 (u.ux == ESHK(shopkeeper)->shd.x && u.uy == ESHK(shopkeeper)->shd.y)) in subfrombill()
919 inroom(u.ux+u.dx, u.uy+u.dy) + 1 == u.uinshop && in shkcatch()
921 u.ux == ESHK(shkp)->shd.x && u.uy == ESHK(shkp)->shd.y) { in shkcatch()
983 gx = u.ux; in shk_move()
985 if(shkroom < 0 || shkroom != inroom(u.ux,u.uy)) in shk_move()
992 gx = u.ux; in shk_move()
[all …]
Dhack.dog.c84 struct monst *mtmp = makemon(&li_dog,u.ux,u.uy); in makedog()
225 uroom = inroom(u.ux,u.uy); in dog_move()
288 gx = u.ux; in dog_move()
306 gx = u.ux; in dog_move()
312 if(after && udist <= 4 && gx == u.ux && gy == u.uy) in dog_move()
315 if (!IS_ROOM(levl[(int)u.ux][(int)u.uy].typ) || !rn2(4) || in dog_move()
334 if(gx == u.ux && gy == u.uy && (dogroom != uroom || dogroom < 0)){ in dog_move()
Dhack.main.c182 u.ux = FAR; /* prevent nscr() */ in main()
311 u.ux = xupstair; in main()
318 if ((mtmp = m_at(u.ux, u.uy))) in main()
332 read_engr_at(u.ux,u.uy); in main()
Dhack.cmd.c178 u.ux0 = u.ux + u.dx; in rhack()
322 if(!isroom(u.ux+xdir[ui], u.uy+ydir[ui])) in finddir()
333 if(isroom(u.ux+xdir[ui], u.uy+ydir[ui])) in finddir()
Dhack.makemon.c125 if(x == u.ux && y == u.uy && ptr->mlet != ' ') in makemon()
212 || (x == u.ux && y == u.uy) in goodpos()
234 u.ux = tx; in rloc()
Dhack.unix.c349 if(md = makemon(&pm_mail_daemon, u.ux, u.uy)) /* always succeeds */ in newmail()
371 int uroom = inroom(u.ux, u.uy); in mdrush()
375 int fx = u.ux, fy = u.uy; in mdrush()
Dhack.potion.c114 newsym(u.ux,u.uy); in dodrink()
159 if(objs->ox != u.ux || objs->oy != u.uy) in dodrink()
442 if(!(mtmp = makemon(PM_GHOST,u.ux,u.uy))){ in ghost_from_bottle()
Dhack.engrave.c123 wipe_engr_at(u.ux, u.uy, cnt); in u_wipe_engr()
203 struct engr *ep, *oep = engr_at(u.ux,u.uy); in doengrave()
318 ep->engr_x = u.ux; in doengrave()
/openbsd/src/lib/libm/src/
De_atan2l.c57 } ux, uy; in atan2l() local
65 ux.e = x; in atan2l()
66 expsignx = (ux.bits.ext_sign << 15) | ux.bits.ext_exp; in atan2l()
70 ((ux.bits.ext_frach&~LDBL_NBIT) in atan2l()
72 | ux.bits.ext_frachm in atan2l()
75 | ux.bits.ext_fraclm in atan2l()
77 | ux.bits.ext_fracl)!=0) || /* x is NaN */ in atan2l()
88 if (expsignx==BIAS && ((ux.bits.ext_frach&~LDBL_NBIT) in atan2l()
90 | ux.bits.ext_frachm in atan2l()
93 | ux.bits.ext_fraclm in atan2l()
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
Dcbrt.c35 } ut, ux; in cbrtl() local
42 ux.t = x; in cbrtl()
44 hx = ux.pt[n0]; /* high word of x */ in cbrtl()
48 if((hx| ux.pt[1-n0])==0) in cbrtl()
49 return(ux.t); /* cbrt(0) is itself */ in cbrtl()
51 ux.pt[n0] = hx; in cbrtl()
61 r=ut.t*ut.t/ux.t; in cbrtl()
70 r=ux.t/s; in cbrtl()
/openbsd/src/sys/dev/usb/
Duhci.c583 struct uhci_xfer *ux; in uhci_allocx() local
585 ux = pool_get(uhcixfer, PR_NOWAIT | PR_ZERO); in uhci_allocx()
587 if (ux != NULL) in uhci_allocx()
588 ux->isdone = 1; in uhci_allocx()
590 return ((struct usbd_xfer *)ux); in uhci_allocx()
596 struct uhci_xfer *ux = (struct uhci_xfer*)xfer; in uhci_freex() local
599 if (!ux->isdone) { in uhci_freex()
604 pool_put(uhcixfer, ux); in uhci_freex()
1090 struct uhci_xfer *ux, *nextex; in uhci_softintr() local
1111 for (ux = LIST_FIRST(&sc->sc_intrhead); ux; ux = nextex) { in uhci_softintr()
[all …]
/openbsd/src/lib/libc/arch/sparc64/fpu/
Dfpu_qp.c185 _QP_TTOQ(ux, ux, u_long, -1, u_long, a[0])
192 _QP_QTOT4(ux, x, u_long, a)

123