Searched refs:dy (Results 1 - 25 of 73) sorted by relevance

123

/seL4-refos-master/libs/libmuslc/src/math/
H A Dtgamma.c112 double_t dy, z, r; local
151 dy = y - absx;
152 dy -= gmhalf;
154 dy = y - gmhalf;
155 dy -= absx;
164 dy = -dy;
167 r += dy * (gmhalf+0.5) * r / y;
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Dlev.h33 schar dx, dy; /* the general direction of the bubble's movement */ member in struct:bubble
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Dlev.h33 schar dx, dy; /* the general direction of the bubble's movement */ member in struct:bubble
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dhacklib.c300 register int dx = x0 - x1, dy = y0 - y1; local
302 if (dy < 0) dy = -dy;
306 return (dx < dy) ? dy : dx;
313 register int dx = x0 - x1, dy = y0 - y1; local
314 return dx * dx + dy * dy;
321 int dx = x0 - x1, dy local
[all...]
H A Dvision.c504 int dx, dy; /* one step from a lit door or lit wall (see below) */ local
619 dy = v_abs(u.uy-row); next_row = next_array[row];
621 start = max( 0, u.ux - ranges[dy]);
622 stop = min(COLNO-1, u.ux + ranges[dy]);
657 dy = v_abs(u.uy-row); next_row = next_array[row];
659 start = max( 0, u.ux - ranges[dy]);
660 stop = min(COLNO-1, u.ux + ranges[dy]);
700 dy = u.uy - row; dy = sign(dy);
1323 int dx, dy; local
1367 int dx, dy; local
1411 int dx, dy; local
1455 int dx, dy; local
[all...]
H A Ddothrow.c90 if(!u.dx && !u.dy && !u.dz) {
369 int x, y, dx, dy, x_change, y_change, err, i, prev_x, prev_y; local
374 dy = dest_cc->y - src_cc->y;
383 if (dy < 0) {
385 dy = -dy;
390 if (dx < dy) {
391 while (i++ < dy) {
396 if (err >= dy) {
398 err -= dy;
[all...]
H A Dmail.c282 register int dx, dy; /* direction counters */ local
303 for (dx = -1; dx <= 1; dx++) for(dy = -1; dy <= 1; dy++)
304 if ((dx || dy) && isok(fx+dx,fy+dy) &&
305 !IS_STWALL(levl[fx+dx][fy+dy].typ)) {
306 d2 = dist2(fx+dx,fy+dy,tx,ty);
310 nfy = fy+dy;
H A Dmkmaze.c65 * a wall spine in the (dx,dy) direction. Return 0 otherwise.
69 * in the direction given by (dx,dy). E.g. if 'x' is our location, 'W'
82 extend_spine(locale, wall_there, dx, dy)
84 int wall_there, dx, dy;
89 ny = 1 + dy;
99 } else { /* dy */
1047 b->dy + 1 - (!b->dy ? ry : (ry ? 1 : 0)),
1060 register int x, y, dx, dy; local
1066 if (u.dx && !rn2(!u.dy
[all...]
H A Dhack.c68 sx = u.ux + u.dx, sy = u.uy + u.dy; /* boulder starting position */
74 ry = u.uy + 2 * u.dy;
93 (!IS_DOOR(levl[rx][ry].typ) || !(u.dx && u.dy) || (
103 if (In_sokoban(&u.uz) && u.dx && u.dy) {
292 (!u.dx || !u.dy || (IS_ROCK(levl[u.ux][sy].typ)
543 /* return TRUE if (dx,dy) is an OK place to move
547 test_move(ux, uy, dx, dy, mode)
548 int ux, uy, dx, dy;
552 int y = uy+dy;
617 if (dx && dy
[all...]
H A Dextralev.c15 xchar dx, dy; member in struct:rogueroom
76 fromy = r[x][y].rly + r[x][y].dy;
113 fromy = r[x][y].rly + rn2(r[x][y].dy);
133 toy = r[x][y].rly + rn2(r[x][y].dy);
233 here.dy = rn1((y==2)?4:3, 2); /* 2-5 high, plus walls */
237 here.rly = rnd(((y==2) ? 5 : 4)- here.dy + 1);
254 hiy = 7*y + here.rly + here.dy - 1;
H A Dmklev.c256 register int dx, dy; local
267 dy = 0;
273 dy = -1;
281 dy = 0;
287 dy = 1;
297 ty = tt.y - dy;
298 if(nxcor && levl[xx+dx][yy+dy].typ)
303 org.x = xx+dx; org.y = yy+dy;
430 place_niche(aroom,dy,xx,yy)
432 int *dy, *x
468 int dy, xx, yy; local
[all...]
H A Ddo_name.c92 int dx, dy; local
97 dy = ydir[i];
101 dy = 8 * ydir[i];
107 dy -= sgn(dy) * (1 - (cx + dx));
110 dy += sgn(dy) * ((COLNO-1) - (cx + dx));
113 if (cy + dy < 0) {
114 dx -= sgn(dx) * (0 - (cy + dy));
115 dy
[all...]
H A Dmthrowu.c245 m_throw(mon, x, y, dx, dy, range, obj)
247 register int x,y,dx,dy,range; /* direction and range */
285 if (singleobj->cursed && (dx || dy) && !rn2(7)) {
294 dy = rn2(3)-1;
296 if (!dx && !dy) {
306 if (!isok(bhitpos.x+dx,bhitpos.y+dy)
307 || IS_ROCK(levl[bhitpos.x+dx][bhitpos.y+dy].typ)
308 || closed_door(bhitpos.x+dx, bhitpos.y+dy)
309 || (levl[bhitpos.x + dx][bhitpos.y + dy].typ == IRONBARS &&
322 bhitpos.y += dy;
[all...]
H A Dspell.c831 cc.x=u.dx;cc.y=u.dy;
834 if(!u.dx && !u.dy && !u.dz) {
841 explode(u.dx, u.dy,
847 u.dx = cc.x+rnd(3)-2; u.dy = cc.y+rnd(3)-2;
848 if (!isok(u.dx,u.dy) || !cansee(u.dx,u.dy) ||
849 IS_STWALL(levl[u.dx][u.dy].typ) || u.uswallow) {
852 u.dy = cc.y;
879 if (atme) u.dx = u.dy = u.dz = 0;
884 if(!u.dx && !u.dy
[all...]
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dhacklib.c300 register int dx = x0 - x1, dy = y0 - y1; local
302 if (dy < 0) dy = -dy;
306 return (dx < dy) ? dy : dx;
313 register int dx = x0 - x1, dy = y0 - y1; local
314 return dx * dx + dy * dy;
321 int dx = x0 - x1, dy local
[all...]
H A Dvision.c504 int dx, dy; /* one step from a lit door or lit wall (see below) */ local
619 dy = v_abs(u.uy-row); next_row = next_array[row];
621 start = max( 0, u.ux - ranges[dy]);
622 stop = min(COLNO-1, u.ux + ranges[dy]);
657 dy = v_abs(u.uy-row); next_row = next_array[row];
659 start = max( 0, u.ux - ranges[dy]);
660 stop = min(COLNO-1, u.ux + ranges[dy]);
700 dy = u.uy - row; dy = sign(dy);
1323 int dx, dy; local
1367 int dx, dy; local
1411 int dx, dy; local
1455 int dx, dy; local
[all...]
H A Ddothrow.c90 if(!u.dx && !u.dy && !u.dz) {
369 int x, y, dx, dy, x_change, y_change, err, i, prev_x, prev_y; local
374 dy = dest_cc->y - src_cc->y;
383 if (dy < 0) {
385 dy = -dy;
390 if (dx < dy) {
391 while (i++ < dy) {
396 if (err >= dy) {
398 err -= dy;
[all...]
H A Dmail.c282 register int dx, dy; /* direction counters */ local
303 for (dx = -1; dx <= 1; dx++) for(dy = -1; dy <= 1; dy++)
304 if ((dx || dy) && isok(fx+dx,fy+dy) &&
305 !IS_STWALL(levl[fx+dx][fy+dy].typ)) {
306 d2 = dist2(fx+dx,fy+dy,tx,ty);
310 nfy = fy+dy;
H A Dmkmaze.c65 * a wall spine in the (dx,dy) direction. Return 0 otherwise.
69 * in the direction given by (dx,dy). E.g. if 'x' is our location, 'W'
82 extend_spine(locale, wall_there, dx, dy)
84 int wall_there, dx, dy;
89 ny = 1 + dy;
99 } else { /* dy */
1047 b->dy + 1 - (!b->dy ? ry : (ry ? 1 : 0)),
1060 register int x, y, dx, dy; local
1066 if (u.dx && !rn2(!u.dy
[all...]
H A Dhack.c68 sx = u.ux + u.dx, sy = u.uy + u.dy; /* boulder starting position */
74 ry = u.uy + 2 * u.dy;
93 (!IS_DOOR(levl[rx][ry].typ) || !(u.dx && u.dy) || (
103 if (In_sokoban(&u.uz) && u.dx && u.dy) {
292 (!u.dx || !u.dy || (IS_ROCK(levl[u.ux][sy].typ)
543 /* return TRUE if (dx,dy) is an OK place to move
547 test_move(ux, uy, dx, dy, mode)
548 int ux, uy, dx, dy;
552 int y = uy+dy;
617 if (dx && dy
[all...]
H A Dextralev.c15 xchar dx, dy; member in struct:rogueroom
76 fromy = r[x][y].rly + r[x][y].dy;
113 fromy = r[x][y].rly + rn2(r[x][y].dy);
133 toy = r[x][y].rly + rn2(r[x][y].dy);
233 here.dy = rn1((y==2)?4:3, 2); /* 2-5 high, plus walls */
237 here.rly = rnd(((y==2) ? 5 : 4)- here.dy + 1);
254 hiy = 7*y + here.rly + here.dy - 1;
H A Dmklev.c256 register int dx, dy; local
267 dy = 0;
273 dy = -1;
281 dy = 0;
287 dy = 1;
297 ty = tt.y - dy;
298 if(nxcor && levl[xx+dx][yy+dy].typ)
303 org.x = xx+dx; org.y = yy+dy;
430 place_niche(aroom,dy,xx,yy)
432 int *dy, *x
468 int dy, xx, yy; local
[all...]
H A Ddo_name.c92 int dx, dy; local
97 dy = ydir[i];
101 dy = 8 * ydir[i];
107 dy -= sgn(dy) * (1 - (cx + dx));
110 dy += sgn(dy) * ((COLNO-1) - (cx + dx));
113 if (cy + dy < 0) {
114 dx -= sgn(dx) * (0 - (cy + dy));
115 dy
[all...]
H A Dmthrowu.c245 m_throw(mon, x, y, dx, dy, range, obj)
247 register int x,y,dx,dy,range; /* direction and range */
285 if (singleobj->cursed && (dx || dy) && !rn2(7)) {
294 dy = rn2(3)-1;
296 if (!dx && !dy) {
306 if (!isok(bhitpos.x+dx,bhitpos.y+dy)
307 || IS_ROCK(levl[bhitpos.x+dx][bhitpos.y+dy].typ)
308 || closed_door(bhitpos.x+dx, bhitpos.y+dy)
309 || (levl[bhitpos.x + dx][bhitpos.y + dy].typ == IRONBARS &&
322 bhitpos.y += dy;
[all...]
H A Dspell.c831 cc.x=u.dx;cc.y=u.dy;
834 if(!u.dx && !u.dy && !u.dz) {
841 explode(u.dx, u.dy,
847 u.dx = cc.x+rnd(3)-2; u.dy = cc.y+rnd(3)-2;
848 if (!isok(u.dx,u.dy) || !cansee(u.dx,u.dy) ||
849 IS_STWALL(levl[u.dx][u.dy].typ) || u.uswallow) {
852 u.dy = cc.y;
879 if (atme) u.dx = u.dy = u.dz = 0;
884 if(!u.dx && !u.dy
[all...]

Completed in 95 milliseconds

123