HomeSort by: relevance | last modified time | path
    Searched refs:ny (Results 1 - 25 of 29) sorted by relevancy

1 2

  /src/games/hack/
hack.vault.c 269 int x, y, dx, dy, gx, gy, nx, ny, typ; local
287 for (ny = y - 1; ny <= y + 1; ny++) {
288 if (nx == x || ny == y)
289 if (nx != x || ny != y)
290 if (isok(nx, ny))
291 if (!IS_WALL(typ = (crm = &levl[nx][ny])->typ) && typ != POOL) {
295 egd->fakecorr[i].fy == ny)
297 if ((i = inroom(nx, ny)) >= 0 && rooms[i].rtype == VAULT
    [all...]
hack.mon.c 320 int nx, ny, omx, omy, appr, nearer, cnt, i, j; local
472 ny = poss[i].y;
474 if (nx == mtmp->mtrack[j].x && ny == mtmp->mtrack[j].y)
480 int d1 = DIST(nx, ny, gx, gy);
485 nearer = (DIST(nx, ny, gx, gy) < DIST(nix, niy, gx, gy));
491 niy = ny;
578 int x, y, nx, ny, cnt = 0, ntyp; local
595 for (ny = y - 1; ny <= y + 1; ny++
    [all...]
hack.dog.c 192 int nx, ny, omx, omy, appr, nearer, j; local
365 ny = poss[i].y;
367 mtmp2 = m_at(nx, ny);
384 if ((info[i] & ALLOW_TRAPS) && (trap = t_at(nx, ny))) {
394 if (obj->ox != nx || obj->oy != ny)
407 niy = ny;
430 if (nx == mtmp->mtrack[j].x && ny == mtmp->mtrack[j].y)
438 nearer = GDIST(nx, ny);
447 niy = ny;
hack.shk.c 942 xchar gx, gy, omx, omy, nx, ny, nix, niy; local
1050 ny = poss[i].y;
1051 if (levl[nx][ny].typ == ROOM
1058 if (uondoor && (ib = sobj_at(ICE_BOX, nx, ny))) {
1060 niy = ny;
1068 (appr && (zz = GDIST(nix, niy)) && zz > GDIST(nx, ny))
1070 (appr && GDIST(nx, ny) < GDIST(nix, niy))
1074 niy = ny;
  /src/external/bsd/tmux/dist/
grid-view.c 95 grid_view_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny,
101 grid_clear(gd, px, py, nx, ny, bg);
138 grid_view_insert_lines(struct grid *gd, u_int py, u_int ny, u_int bg)
146 grid_move_lines(gd, py + ny, py, sy - py - ny, bg);
152 u_int ny, u_int bg)
160 ny2 = rlower + 1 - py - ny;
162 grid_clear(gd, 0, py + ny2, gd->sx, ny - ny2, bg);
167 grid_view_delete_lines(struct grid *gd, u_int py, u_int ny, u_int bg)
175 grid_move_lines(gd, py, py + ny, sy - py - ny, bg)
    [all...]
grid.c 287 grid_free_lines(struct grid *gd, u_int py, u_int ny)
291 for (yy = py; yy < py + ny; yy++)
362 grid_trim_history(struct grid *gd, u_int ny)
364 grid_free_lines(gd, 0, ny);
365 memmove(&gd->linedata[0], &gd->linedata[ny],
366 (gd->hsize + gd->sy - ny) * (sizeof *gd->linedata));
376 u_int ny; local
381 ny = gd->hlimit / 10;
382 if (ny < 1)
383 ny = 1
    [all...]
screen-write.c 567 u_int px, u_int py, u_int nx, u_int ny)
576 if (nx == 0 || ny == 0)
579 for (yy = py; yy < py + ny; yy++) {
682 screen_write_vline(struct screen_write_ctx *ctx, u_int ny, int top, int bottom)
695 for (i = 1; i < ny - 1; i++) {
699 screen_write_set_cursor(ctx, cx, cy + ny - 1);
758 screen_write_box(struct screen_write_ctx *ctx, u_int nx, u_int ny,
786 screen_write_set_cursor(ctx, cx, cy + ny - 1);
797 for (i = 1; i < ny - 1; i++) {
821 u_int ny)
    [all...]
image.c 121 image_check_line(struct screen *s, u_int py, u_int ny)
127 if (py + ny > im->py && py < im->py + im->sy) {
136 image_check_area(struct screen *s, u_int px, u_int py, u_int nx, u_int ny)
142 if (py + ny <= im->py || py >= im->py + im->sy)
menu.c 445 u_int nx, ny, w, h; local
451 ny = md->py;
463 if (ny + h > c->tty.sy) {
465 ny = 0;
467 ny = c->tty.sy - h;
470 md->py = ny;
tty.c 1112 u_int py, u_int nx, u_int ny)
1120 yoff + ny <= ctx->woy || yoff >= ctx->woy + ctx->wsy)
1232 u_int nx, u_int ny, u_int *i, u_int *j, u_int *x, u_int *y, u_int *rx,
1237 if (!tty_is_visible(tty, ctx, px, py, nx, ny))
1264 if (yoff >= ctx->woy && yoff + ny <= ctx->woy + ctx->wsy) {
1268 *ry = ny;
1269 } else if (yoff < ctx->woy && yoff + ny > ctx->woy + ctx->wsy) {
1278 *ry = ny - *j;
1285 if (*ry > ny)
1286 fatalx("%s: y too big, %u > %u", __func__, *ry, ny);
2082 u_int px, py, nx, ny; local
2107 u_int px, py, nx, ny; local
2132 u_int px, py, nx, ny; local
    [all...]
window-copy.c 4492 struct screen_write_ctx *ctx, u_int py, u_int ny)
4496 for (yy = py; yy < py + ny; yy++)
4529 window_copy_redraw_lines(struct window_mode_entry *wme, u_int py, u_int ny)
4537 for (i = py; i < py + ny; i++)
5679 window_copy_scroll_up(struct window_mode_entry *wme, u_int ny)
5686 if (data->oy < ny)
5687 ny = data->oy;
5688 if (ny == 0)
5690 data->oy -= ny;
5698 screen_write_deleteline(&ctx, ny, 8)
5934 u_int cy, yy, ny, nd; local
5960 u_int cy, yy, ny, nd; local
    [all...]
  /src/games/dab/
main.cc 104 size_t ny, nx, nn = 1, wt = 0; local
134 ny = nx = 3;
138 ny = nx = atoi(argv[optind]);
143 ny = atoi(argv[optind+1]);
172 sc = TTYSCRN::create(acs, &ny, &nx);
176 BOARD b(ny, nx, sc);
algor.cc 48 _edge1 = (_b.nx() * _b.ny()) * 2;
50 _edge2 = (_b.nx() * (_b.ny() - 1)) + ((_b.nx() - 1) * _b.ny());
52 _maxedge = _b.nx() * _b.ny() * 2;
59 RANDOM rdy(b.ny()), rdx(b.nx());
61 for (y = rdy(); y < b.ny(); y = rdy()) {
86 BOX bbox(b.ny() - 1, x, b);
89 for (size_t y = 0; y < _b.ny(); y++) {
188 RANDOM rdy(b.ny()), rdx(b.nx());
190 for (y = rdy(); y < b.ny(); y = rdy())
    [all...]
human.cc 144 _cury = (b.ny() * 2) + (_cury & 1);
145 if (_cury >= (b.ny() * 2) + 1)
board.h 53 size_t ny(void) const { return _ny; } function in class:BOARD
  /src/games/hunt/huntd/
makemaze.c 101 int ny, nx;
109 ny = y + *ip++;
111 if (candig(ny, nx))
112 dig(ny, nx);
  /src/sys/dev/wscons/
wscons_rops.c 191 int srcy, dsty, ny; local
195 ny = rc->rc_font->height * nrows;
198 rc->rc_raswidth, ny, RAS_SRC,
209 int starty, ny, op; local
212 ny = rc->rc_font->height * nrows;
218 rc->rc_raswidth, ny, op,
  /src/external/bsd/libfido2/dist/src/
es384.c 191 int ny; local
212 (ny = BN_num_bytes(y)) < 0 || (size_t)ny > sizeof(pk->y)) {
219 dy = sizeof(pk->y) - (size_t)ny;
222 (ny = BN_bn2bin(y, pk->y + dy)) < 0 || (size_t)ny > sizeof(pk->y)) {
es256.c 348 int ny; local
369 (ny = BN_num_bytes(y)) < 0 || (size_t)ny > sizeof(pk->y)) {
376 dy = sizeof(pk->y) - (size_t)ny;
379 (ny = BN_bn2bin(y, pk->y + dy)) < 0 || (size_t)ny > sizeof(pk->y)) {
  /src/external/gpl2/groff/dist/src/preproc/grn/
hgraph.cpp 590 int ny; local
617 ny = cy + (int) (ys + 0.5);
619 HGtline(nx, ny); /* put out a point on circle */
718 int ny; local
754 ny = y[j] + (int) (t * dy[j] + t2 * d2y[j] / 2 + t3 * d3y[j] / 6);
755 HGtline(nx, ny);
  /src/external/bsd/pcc/dist/pcc/cc/ccom/
symtabs.c 531 int ny = *new++; local
532 if (ny == 'u' && *new == '8')
533 ny = '8', new++;
534 if (strtype && ny != strtype)
536 strtype = ny;
  /src/external/gpl3/gcc.old/dist/gcc/
rtl.cc 432 rtx nx, ny;
441 && ((*cb) (&x, &y, &nx, &ny)))
442 return rtx_equal_p_cb (nx, ny, cb);
427 rtx nx, ny; local
  /src/external/gpl2/groff/dist/src/devices/grolbp/
lbp.h 173 char nx[4],ny[4]; local
175 vdmprintf("}\"%s%s\x1e",vdmnum(newx,nx),vdmnum(newy,ny));
  /src/external/gpl3/gcc.old/dist/libquadmath/math/
lgammaq_neg.c 513 __float128 ny0, ny0_eps, ny, ny_eps; local
518 ny = y + n_up;
519 ny_eps = y - (ny - n_up) + y_eps;
520 y = ny;
  /src/lib/libcurses/
refresh.c 1517 domvcur(WINDOW *win, int oy, int ox, int ny, int nx)
1521 oy, ox, ny, nx, win );
1526 if (oy == ny && ox == nx) {
1534 win->alines[ny]->flags &= ~__ISPASTEOL;
1536 __mvcur(oy, ox, ny, nx, 1);

Completed in 55 milliseconds

1 2