58 #define hit_gbTileDomainShape(newVarP, baseType, shape, allocOpts) \
59 hit_gbTileDomainShapeInternal(newVarP, sizeof(baseType), shape, allocOpts)
77 #define hit_gbTileAlloc(var) hit_gbTileAllocInternal(var, #var, __FILE__, __LINE__)
99 #define hit_gbTileDomainShapeAlloc(var, baseType, shape, allocOpts) \
100 hit_gbTileDomainShapeInternal(var, sizeof(baseType), shape, allocOpts); \
101 hit_gbTileAllocInternal(var, #var, __FILE__, __LINE__);
131 return local1 * nvertices + local2;
154 #define hit_gbTileVertexAt(var, vertex) ((var).dataVertices[vertex])
164 #define hit_gbTileEdgeAt(var, pos1, pos2) ((var).data[hit_gbTileEdgeAtIndex(&(var),(pos1),(pos2))])
173 #define hit_gbTileGraphVertexAt(var, vertex) ((var).dataVertices[hit_gbTileGraphVertexAtIndex(&(var),(vertex))])
183 #define hit_gbTileGraphEdgeAt(var, pos1, pos2) ((var).data[hit_gbTileGraphEdgeAtIndex(&(var),(pos1),(pos2))])
194 #define hit_gbTileEdgeIteratorAt(var, vertex, edge_index) ((var).data[vertex * hit_bShapeNvertices(hit_tileShape(var)) + edge_index])
206 #define hit_gbTileEdgeIteratorSkipAt(var, vertex, edge_index) ((var).data[edge_index])
int hit_gbTileGraphVertexAtIndex(void *varP, int vertex)
void hit_gbTileAllocInternal(void *newVarP, const char *name, const char *file, int numLine)
void hit_gbTileDomainShapeInternal(void *newVarP, size_t baseExtent, HitShape shape, int allocOpts)
void hit_gbTileCopyVertices(void *destP, void *srcP)
void hit_gbTileClearVertices(void *varP)
int hit_gbTileGraphEdgeAtIndex(void *varP, int pos1, int pos2)
#define hit_bShapeNvertices(shape)
static int hit_gbTileEdgeAtIndex(void *varP, int local1, int local2)
#define hit_tileShape(var)