Searched refs:tx (Results 1 - 25 of 60) sorted by relevance

123

/seL4-refos-master/libs/libmuslc/src/linux/
H A Dadjtimex.c4 int adjtimex(struct timex *tx) argument
6 return syscall(SYS_adjtimex, tx);
H A Dadjtime.c9 struct timex tx = { 0 }; local
15 tx.offset = in->tv_sec*1000000 + in->tv_usec;
16 tx.modes = ADJ_OFFSET_SINGLESHOT;
18 if (syscall(SYS_adjtimex, &tx) < 0) return -1;
20 out->tv_sec = tx.offset / 1000000;
21 if ((out->tv_usec = tx.offset % 1000000) < 0) {
/seL4-refos-master/libs/libmuslc/src/math/
H A D__rem_pio2f.c45 double tx[1],ty[1]; local
67 tx[0] = u.f;
68 n = __rem_pio2_large(tx,ty,e0,1,0);
H A D__rem_pio2.c52 double tx[3],ty[2]; local
161 tx[i] = (double)(int32_t)z;
162 z = (z-tx[i])*0x1p24;
164 tx[i] = z;
166 while (tx[i] == 0.0)
168 n = __rem_pio2_large(tx,ty,(int)(ix>>20)-(0x3ff+23),i+1,1);
H A D__rem_pio2l.c73 double tx[NX],ty[NY]; local
118 tx[i] = (double)(int32_t)z;
119 z = (z-tx[i])*0x1p24;
121 tx[i] = z;
122 while (tx[i] == 0)
124 n = __rem_pio2_large(tx, ty, ex-0x3fff-23, i+1, NY);
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Dtrap.h17 xchar tx,ty; member in struct:trap
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Dtrap.h17 xchar tx,ty; member in struct:trap
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dmkroom.c232 int sh, tx, ty, goldlim, type = sroom->rtype; local
237 tx = ty = goldlim = 0;
244 for(tx = sroom->lx; tx <= sroom->hx; tx++)
246 if(IS_THRONE(levl[tx][ty].typ))
252 tx = mm.x; ty = mm.y;
253 } while (occupied((xchar)tx, (xchar)ty) && --i > 0);
258 tx = sroom->lx + (sroom->hx - sroom->lx + 1)/2;
262 if ((int) levl[tx][t
[all...]
H A Dmail.c277 md_rush(md,tx,ty)
279 register int tx, ty; /* destination of mail daemon */
301 /* Find a good location next to (fx,fy) closest to (tx,ty). */
302 d1 = dist2(fx,fy,tx,ty);
306 d2 = dist2(fx+dx,fy+dy,tx,ty);
321 if (fx == tx && fy == ty) break;
H A Dhack.c707 * Find a path from the destination (u.tx,u.ty) back to (u.ux,u.uy).
717 if (!guess && iflags.travel1 && distmin(u.ux, u.uy, u.tx, u.ty) == 1) {
719 if (test_move(u.ux, u.uy, u.tx-u.ux, u.ty-u.uy, TEST_MOVE)) {
720 u.dx = u.tx-u.ux;
728 if (u.tx != u.ux || u.ty != u.uy) {
732 xchar tx, ty, ux, uy; local
743 tx = u.ux; ty = u.uy; ux = u.tx; uy = u.ty;
745 tx = u.tx; t
[all...]
H A Dwizard.c68 int du = distu(ttmp->tx, ttmp->ty);
334 xchar tx = STRAT_GOALX(strat), local
342 if((u.ux == tx && u.uy == ty) || where == STRAT_PLAYER) {
348 if(!MON_AT(tx, ty) || (mtmp->mx == tx && mtmp->my == ty)) {
350 rloc_to(mtmp, tx, ty); /* clean old pos */
368 (void) mnearto(mtmp, tx, ty, FALSE);
H A Dteleport.c1165 register xchar tx, ty, otx, oty; local
1178 tx = rn1(COLNO-3,2);
1181 } while (!goodpos(tx, ty, (struct monst *)0, 0) ||
1184 (!within_bounded_area(tx, ty, dndest.lx, dndest.ly,
1187 within_bounded_area(tx, ty, dndest.nlx, dndest.nly,
1190 if (flooreffects(obj, tx, ty, "fall")) {
1196 && (!costly_spot(tx, ty) ||
1197 !index(in_rooms(tx, ty, 0), *in_rooms(otx, oty, 0)))) {
1205 place_object(obj, tx, ty);
1206 newsym(tx, t
[all...]
H A Ddo_name.c50 int sidx, tx, ty; local
72 c = nh_poskey(&tx, &ty, &sidx);
80 if (!isok(tx, ty)) continue;
82 cx = tx;
144 for (tx = lo_x; tx <= hi_x; tx++) {
145 k = levl[tx][ty].glyph;
148 cx = tx, cy = ty;
H A Dtrap.c252 ttmp->tx = x;
1286 (void)scatter(trap->tx, trap->ty, 4,
1289 del_engr_at(trap->tx, trap->ty);
1290 wake_nearto(trap->tx, trap->ty, 400);
1291 if (IS_DOOR(levl[trap->tx][trap->ty].typ))
1292 levl[trap->tx][trap->ty].doormask = D_BROKEN;
1334 int tx, ty; local
1336 tx = x1; ty = y1;
1338 x2 = tx; y2 = ty;
1551 newsym(trap->tx, tra
[all...]
H A Dmklev.c254 register xchar tx, ty, xx, yy; local
269 tx = troom->lx-1;
271 finddpos(&tt, tx, troom->ly, tx, troom->hy);
283 tx = troom->hx+1;
285 finddpos(&tt, tx, troom->ly, tx, troom->hy);
296 tx = tt.x - dx;
304 dest.x = tx; dest.y = ty;
H A Dengrave.c1188 int tx, ty, tryct = 200; local
1192 tx = rn1(COLNO-3,2);
1194 } while (engr_at(tx, ty) ||
1195 !goodpos(tx, ty, (struct monst *)0, 0));
1197 ep->engr_x = tx;
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dmkroom.c232 int sh, tx, ty, goldlim, type = sroom->rtype; local
237 tx = ty = goldlim = 0;
244 for(tx = sroom->lx; tx <= sroom->hx; tx++)
246 if(IS_THRONE(levl[tx][ty].typ))
252 tx = mm.x; ty = mm.y;
253 } while (occupied((xchar)tx, (xchar)ty) && --i > 0);
258 tx = sroom->lx + (sroom->hx - sroom->lx + 1)/2;
262 if ((int) levl[tx][t
[all...]
H A Dmail.c277 md_rush(md,tx,ty)
279 register int tx, ty; /* destination of mail daemon */
301 /* Find a good location next to (fx,fy) closest to (tx,ty). */
302 d1 = dist2(fx,fy,tx,ty);
306 d2 = dist2(fx+dx,fy+dy,tx,ty);
321 if (fx == tx && fy == ty) break;
H A Dhack.c707 * Find a path from the destination (u.tx,u.ty) back to (u.ux,u.uy).
717 if (!guess && iflags.travel1 && distmin(u.ux, u.uy, u.tx, u.ty) == 1) {
719 if (test_move(u.ux, u.uy, u.tx-u.ux, u.ty-u.uy, TEST_MOVE)) {
720 u.dx = u.tx-u.ux;
728 if (u.tx != u.ux || u.ty != u.uy) {
732 xchar tx, ty, ux, uy; local
743 tx = u.ux; ty = u.uy; ux = u.tx; uy = u.ty;
745 tx = u.tx; t
[all...]
H A Dwizard.c68 int du = distu(ttmp->tx, ttmp->ty);
334 xchar tx = STRAT_GOALX(strat), local
342 if((u.ux == tx && u.uy == ty) || where == STRAT_PLAYER) {
348 if(!MON_AT(tx, ty) || (mtmp->mx == tx && mtmp->my == ty)) {
350 rloc_to(mtmp, tx, ty); /* clean old pos */
368 (void) mnearto(mtmp, tx, ty, FALSE);
H A Dteleport.c1165 register xchar tx, ty, otx, oty; local
1178 tx = rn1(COLNO-3,2);
1181 } while (!goodpos(tx, ty, (struct monst *)0, 0) ||
1184 (!within_bounded_area(tx, ty, dndest.lx, dndest.ly,
1187 within_bounded_area(tx, ty, dndest.nlx, dndest.nly,
1190 if (flooreffects(obj, tx, ty, "fall")) {
1196 && (!costly_spot(tx, ty) ||
1197 !index(in_rooms(tx, ty, 0), *in_rooms(otx, oty, 0)))) {
1205 place_object(obj, tx, ty);
1206 newsym(tx, t
[all...]
H A Ddo_name.c50 int sidx, tx, ty; local
72 c = nh_poskey(&tx, &ty, &sidx);
80 if (!isok(tx, ty)) continue;
82 cx = tx;
144 for (tx = lo_x; tx <= hi_x; tx++) {
145 k = levl[tx][ty].glyph;
148 cx = tx, cy = ty;
H A Dtrap.c252 ttmp->tx = x;
1286 (void)scatter(trap->tx, trap->ty, 4,
1289 del_engr_at(trap->tx, trap->ty);
1290 wake_nearto(trap->tx, trap->ty, 400);
1291 if (IS_DOOR(levl[trap->tx][trap->ty].typ))
1292 levl[trap->tx][trap->ty].doormask = D_BROKEN;
1334 int tx, ty; local
1336 tx = x1; ty = y1;
1338 x2 = tx; y2 = ty;
1551 newsym(trap->tx, tra
[all...]
H A Dmklev.c254 register xchar tx, ty, xx, yy; local
269 tx = troom->lx-1;
271 finddpos(&tt, tx, troom->ly, tx, troom->hy);
283 tx = troom->hx+1;
285 finddpos(&tt, tx, troom->ly, tx, troom->hy);
296 tx = tt.x - dx;
304 dest.x = tx; dest.y = ty;
H A Dengrave.c1188 int tx, ty, tryct = 200; local
1192 tx = rn1(COLNO-3,2);
1194 } while (engr_at(tx, ty) ||
1195 !goodpos(tx, ty, (struct monst *)0, 0));
1197 ep->engr_x = tx;

Completed in 182 milliseconds

123