Lines Matching refs:x
219 int x, // logical width of field in GetAdjacentCellState() argument
239 if (cellNumber < x) { in GetAdjacentCellState()
243 if ((x * y) - cellNumber <= x) { in GetAdjacentCellState()
247 if (cellNumber % x == 0) { in GetAdjacentCellState()
251 if ((cellNumber + 1) % x == 0) { in GetAdjacentCellState()
258 return *(source + ((x * y) - 1)); in GetAdjacentCellState()
261 return *(source + (((x * y) - x) + (cellNumber - 1))); in GetAdjacentCellState()
266 return *((source + cellNumber) - (x + 1)); in GetAdjacentCellState()
270 return *(source + (((x * y) - x) + cellNumber)); in GetAdjacentCellState()
272 return *((source + cellNumber) - x); in GetAdjacentCellState()
276 return *(source + ((x * y) - x)); in GetAdjacentCellState()
279 return *(source + (((x * y) - x) + (cellNumber + 1))); in GetAdjacentCellState()
282 return *(source + ((cellNumber - (x * 2)) + 1)); in GetAdjacentCellState()
284 return *(source + (cellNumber - (x - 1))); in GetAdjacentCellState()
288 return *(source + (cellNumber - (x - 1))); in GetAdjacentCellState()
297 return *(source + ((cellNumber - ((x * y) - x)) + 1)); in GetAdjacentCellState()
302 return *(source + (((cellNumber + x)) + 1)); in GetAdjacentCellState()
306 return *(source + (cellNumber - ((x * y) - x))); in GetAdjacentCellState()
308 return *(source + (cellNumber + x)); in GetAdjacentCellState()
312 return *(source + (x - 1)); in GetAdjacentCellState()
315 return *(source + (cellNumber - ((x * y) - x) - 1)); in GetAdjacentCellState()
318 return *(source + (cellNumber + ((x * 2) - 1))); in GetAdjacentCellState()
320 return *(source + (cellNumber + (x - 1))); in GetAdjacentCellState()
324 return *(source + (cellNumber + (x - 1))); in GetAdjacentCellState()