Searched refs:gy (Results 1 - 13 of 13) sorted by relevance

/netbsd-6-1-5-RELEASE/games/hack/
H A Ddef.gen.h68 xchar gx,gy; member in struct:gen
H A Ddef.gold.h68 xchar gx,gy; member in struct:gold
H A Dhack.dog.c201 xchar gx = 0, gy = 0, gtyp, otyp; /* current goal */ local
204 #define GDIST(x,y) ((x-gx)*(x-gx) + (y-gy)*(y-gy))
275 gx = gy = 0; /* suppress 'used before set' message */
286 DDIST(obj->ox, obj->oy) < DDIST(gx, gy))) {
288 gy = obj->oy;
295 gy = obj->oy;
303 gy = u.uy;
309 gx = gy = FAR; /* random, far away */
311 if (dist(gx, gy) >
[all...]
H A Dhack.vault.c184 int x, y, dd, gx, gy; local
206 gy = y;
215 dy = (gy > y) ? 1 : (gy < y) ? -1 : 0;
216 if (abs(gx - x) >= abs(gy - y))
256 egd->gdy = gy;
269 int x, y, dx, dy, gx, gy, nx, ny, typ; local
315 gy = egd->gdy;
317 dy = (gy > y) ? 1 : (gy <
[all...]
H A Dhack.mon.c321 xchar gx, gy, nix, niy, chcnt; local
403 gy = u.uy;
420 gy = cp->y;
435 if ((dd = DIST(omx, omy, gold->gx, gold->gy)) < mind) {
438 gy = gold->gy;
450 gy = otmp->oy;
456 gy = u.uy;
480 int d1 = DIST(nx, ny, gx, gy);
481 int d2 = DIST(nix, niy, gx, gy);
[all...]
H A Dhack.shk.c942 xchar gx, gy, omx, omy, nx, ny, nix, niy; local
983 gy = ESHK(shkp)->shk.y;
984 satdoor = (gx == omx && gy == omy);
987 gy = u.uy;
996 gy = u.uy;
1001 #define GDIST(x,y) ((x-gx)*(x-gx)+(y-gy)*(y-gy))
1016 avoid = (u.uinshop && dist(gx, gy) > 8);
1025 appr = gx = gy = 0;
1029 if (omx == gx && omy == gy)
[all...]
H A Dhack.mkobj.c217 gold->gy = y;
H A Dhack.read.c347 if (gtmp->gx != u.ux || gtmp->gy != u.uy)
358 at(gtmp->gx, gtmp->gy, '$');
H A Dhack.invent.c355 if (gold->gx == x && gold->gy == y)
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/compile/
H A D921206-1.c12 int cx, cy, gx, gy, x, y; local
14 gy = 2 > g / 3 ? 2 : g / 3;
15 for (y = 0 > cy - gy ? 0 : cy - gy; y <= (sys - 1 < cy + gy ? sys : cy + gy); y++)
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.c-torture/compile/
H A D921206-1.c12 int cx, cy, gx, gy, x, y; local
14 gy = 2 > g / 3 ? 2 : g / 3;
15 for (y = 0 > cy - gy ? 0 : cy - gy; y <= (sys - 1 < cy + gy ? sys : cy + gy); y++)
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/execute/
H A D990326-1.c190 struct gy { struct
198 static struct gy y = { -2, -1, ~2 };
207 static struct gy y = { -66, -1, ~2 };
216 static struct gy y = { -66, -9, ~2 };
225 static struct gy y = { 0x0200, 0x0100, ~2 };
235 static struct gy y = { 0x0020, 0x0010, ~2 };
245 static struct gy y = { 0xc22f, 0xc11f, ~2 };
255 static struct gy y = { 0xfe20, 0xfd10, ~2 };
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.c-torture/execute/
H A D990326-1.c190 struct gy { struct
198 static struct gy y = { -2, -1, ~2 };
207 static struct gy y = { -66, -1, ~2 };
216 static struct gy y = { -66, -9, ~2 };
225 static struct gy y = { 0x0200, 0x0100, ~2 };
235 static struct gy y = { 0x0020, 0x0010, ~2 };
245 static struct gy y = { 0xc22f, 0xc11f, ~2 };
255 static struct gy y = { 0xfe20, 0xfd10, ~2 };

Completed in 181 milliseconds