Lines Matching refs:xy
18 void xyarray__delete(struct xyarray *xy);
19 void xyarray__reset(struct xyarray *xy);
21 static inline void *__xyarray__entry(struct xyarray *xy, int x, int y)
23 return &xy->contents[x * xy->row_size + y * xy->entry_size];
26 static inline void *xyarray__entry(struct xyarray *xy, size_t x, size_t y)
28 if (x >= xy->max_x || y >= xy->max_y)
30 return __xyarray__entry(xy, x, y);
33 static inline int xyarray__max_y(struct xyarray *xy)
35 return xy->max_y;
38 static inline int xyarray__max_x(struct xyarray *xy)
40 return xy->max_x;