HomeSort by: relevance | last modified time | path
    Searched defs:dx (Results 1 - 25 of 76) sorted by relevancy

1 2 3 4

  /src/games/trek/
compkl.c 62 int i, dx, dy; local in function:compkldist
70 dx = Ship.sectx - Etc.klingon[i].x;
72 d = dx * dx + dy * dy;
help.c 77 int dx = 0, dy = 0; local in function:help
105 dx = Now.base[i].x - Ship.quadx;
107 x = dx * dx + dy * dy;
139 dx = Etc.starbase.x + ranf(3) - 1;
140 if (dx < 0 || dx >= NSECTS)
144 Sect[dx][dy] != EMPTY)
151 Ship.sectx = dx;
153 Sect[dx][dy] = Ship.ship
    [all...]
snova.c 72 int dx, dy; local in function:snova
112 dx = ix - Ship.sectx;
114 if (dx * dx + dy * dy <= 2) {
132 dx = q->klings;
134 Now.klings -= dx;
140 Game.killk += dx;
klmove.c 62 ** if you can move their. Dx and dy are the increment. Fudgex
72 double dx, dy; local in function:klmove
96 dx = Ship.sectx - k->x + ranf(3) - 1;
98 bigger = dx;
103 dx = dx / bigger + 0.5;
107 dx = -dx;
115 lookx = nextx + dx;
161 lookx = nextx + dx;
    [all...]
move.c 85 double x, y, dx, dy; local in function:move
108 dx = -cos(angle);
110 bigger = fabs(dx);
114 dx /= bigger;
143 printf("dx = %.2f, dy = %.2f, xn = %.2f, n = %d\n",
144 dx, dy, xn, n);
149 ix = (x += dx);
158 dx = Ship.quadx * NSECTS + Ship.sectx + dx * xn;
160 if (dx < 0.0
    [all...]
torped.c 73 double x, y, dx, dy; local in function:torped
135 dx = -cos(angle);
137 bigger = fabs(dx);
141 dx /= bigger;
152 ix = x += dx;
computer.c 318 double dx, dy; local in function:kalc
325 dx = (Ship.quadx + Ship.sectx / quadsize) - (tqx + tsx / quadsize);
329 angle = atan2(dy, dx);
335 dx = dx * dx + dy * dy;
336 *dist = sqrt(dx);
phaser.c 100 double dx, dy; local in function:phaser
226 dx = Ship.sectx - k->x;
228 b->angle = atan2(dy, dx);
328 dx = Ship.sectx - k->x;
330 anglefactor = atan2(dy, dx) - b->angle;
  /src/lib/libcurses/
mvwin.c 48 * sized part of the parent window starting at dy, dx into the subwin.
52 mvderwin(WINDOW *win, int dy, int dx)
66 if (((win->maxx + dx) > parent->maxx) ||
71 win->derx = dx;
74 x = parent->begx + dx;
103 int dy, dx; local in function:mvwin
112 dx = bx - win->begx;
118 win->begx += dx;
125 if (bx < orig->begx || win->maxx + dx > orig->maxx)
  /src/games/warp/
them.c 338 int dx; local in function:modify_amoeba
351 dx = (nuke->strategy >> 2) & 3;
352 if (dx & 2)
353 dx = -1;
356 dx = -dx;
363 dx = rand_mod(3) - 1;
365 if (!dy && !dx)
371 x = (x + dx + XSIZE00) % XSIZE;
375 x = (x - dx + XSIZE00) % XSIZE
    [all...]
weapon.c 103 int dx; local in function:attack
123 for (dx= -1; dx<=1 ; dx++) {
125 if (dx||dy) {
135 curx = (curx + dx + XSIZE00) % XSIZE;
143 tract(nuke,dy,dx,rand_mod(3)?1:-1);
150 && -dx + attackee->velx == obj->velx)
153 -dx + attackee->velx);
157 -dx + attackee->velx - obj->velx)
    [all...]
  /src/sys/arch/news68k/dev/
ms.c 75 int button, dx, dy; local in function:ms_intr
111 dx = byte1 & MS_X_DATA;
113 dx = -dx;
120 dx, -dy, 0, 0,
  /src/sys/arch/atari/dev/
msvar.h 36 int8_t dx; member in struct:__anon62830f350108
47 int ms_dx; /* accumulated dx */
grfabs.c 187 long dx, dy, dd, ct; local in function:get_best_display_mode
195 dx = abs(dm->size.width - dim->width);
198 ct = dx + dy;
217 dx = abs(curr_mode->size.width - dim->width);
220 ct = dx + dy;
  /src/sys/arch/pmax/tc/
dtms.c 143 int buttons, dx, dy; local in function:dtms_handler
160 dx = -(-tmp & 0x1f);
162 dx = tmp & 0x1f;
172 dx, dy, 0, 0,
  /src/lib/libm/src/
s_cbrtl.c 40 double dr, dt, dx; local in function:cbrtl
98 dx = x;
101 dt = dt * (dx + dx + dr) / (dx + dr + dr);
105 dt = dt * (dx + dx + dr) / (dx + dr + dr);
  /src/lib/libc/gen/
disklabel.c 101 u_int32_t *dx; local in function:getdiskbyname
196 strcpy(psize, "dx"); /* XXX: strcpy is safe */
197 dx = dp->d_drivedata;
198 for (p = '0'; p < '0' + NDDATA; p++, dx++) {
200 getnumdflt(*dx, psize, 0);
  /src/sys/arch/i386/isa/
mms.c 213 signed char dx, dy; local in function:mmsintr
230 dx = bus_space_read_1(iot, ioh, MMS_DATA);
232 dx = (dx == -128) ? -127 : dx;
238 dx = dy = 0;
249 if (dx || dy || changed)
252 dx, dy, 0, 0,
  /src/sys/arch/vax/uba/
qvms.c 82 int dx, dy; member in struct:qvms_softc
217 sc->dx = data & MOUSE_X_SIGN;
220 if (sc->dx == 0)
221 sc->dx = -data;
223 sc->dx = data;
232 sc->dx, sc->dy, 0, 0,
  /src/sys/arch/arm/iomd/
qms.c 181 int16_t dx, dy; local in function:qms_intr
193 dx = x - sc->lastx;
197 dx, dy, 0, 0,
  /src/sys/sys/
rndsource.h 53 uint64_t dx; member in struct:rnd_delta_estimator
  /src/sys/dev/dec/
dzms.c 79 int dx, dy; member in struct:dzms_softc
214 sc->dx = data & MOUSE_X_SIGN;
217 if (sc->dx == 0)
218 sc->dx = -data;
220 sc->dx = data;
229 sc->dx, sc->dy, 0, 0,
  /src/games/hack/
hack.mkshop.c 330 int dx, dy; local in function:nexttodoor
332 for (dx = -1; dx <= 1; dx++)
334 if ((lev = &levl[sx + dx][sy + dy])->typ == DOOR ||
  /src/sys/arch/amiga/dev/
grfabs.c 119 long dx, dy, ct, dt = 0; local in function:get_best_display_mode
127 dx = ABS(long, (d->nominal_size.width - width));
129 ct = dx + dy;
  /src/sys/arch/arm/xscale/
pxa2x0_i2s.c 43 struct dmac_xfer *dx; member in struct:pxa2x0_i2s_dma
183 struct dmac_xfer *dx; local in function:pxa2x0_i2s_allocm
188 dx = pxa2x0_dmac_allocate_xfer();
189 if (dx == NULL) {
192 p->dx = dx;
215 dx->dx_cookie = sc;
216 dx->dx_priority = DMAC_PRIORITY_NORMAL;
217 dx->dx_dev_width = DMAC_DEV_WIDTH_4;
218 dx->dx_burst_size = DMAC_BURST_SIZE_32
313 struct dmac_xfer *dx; local in function:pxa2x0_i2s_start_output
363 struct dmac_xfer *dx; local in function:pxa2x0_i2s_start_input
    [all...]

Completed in 50 milliseconds

1 2 3 4