Lines Matching refs:source
218 char GetAdjacentCellState(char* source, // pointer to source data block in GetAdjacentCellState() argument
258 return *(source + ((x * y) - 1)); in GetAdjacentCellState()
261 return *(source + (((x * y) - x) + (cellNumber - 1))); in GetAdjacentCellState()
264 return *(source + (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()
290 return *(source + (cellNumber + 1)); in GetAdjacentCellState()
294 return *source; in GetAdjacentCellState()
297 return *(source + ((cellNumber - ((x * y) - x)) + 1)); in GetAdjacentCellState()
300 return *(source + (cellNumber + 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()
326 return *(source + (cellNumber - 1)); in GetAdjacentCellState()
333 char* source = m_matrix->data; in CheckCell() local
336 total += GetAdjacentCellState(source, m_matrix->width, m_matrix->height, cellNumber, i); in CheckCell()
347 if (*(source + cellNumber)) { in CheckCell()