41 HitPTile newVar = (HitPTile)newVarP;
45 newVar->shape =
shape;
46 newVar->baseExtent = baseExtent;
47 newVar->memStatus = HIT_MS_NOMEM;
48 newVar->hierDepth = (char) HIT_NONHIERARCHICAL;
51 newVar->memPtr = NULL;
52 newVar->type = HIT_GC_TILE;
69 HitPTile newVar = (HitPTile)newVarP;
72 if ( newVar->memStatus == HIT_MS_NULL)
return;
75 if ( newVar->memStatus == HIT_MS_OWNER ){
76 hit_errInternal(__FUNCTION__,
"Trying to reallocate a Tile: ",name,file,numLine);
80 if(newVar->card[0] != 0){
83 hit_vmalloc(newVar->memPtrVertices, (
size_t)newVar->card[0] * newVar->baseExtent );
84 newVar->dataVertices = newVar->memPtrVertices;
87 if(newVar->card[1] != 0){
90 hit_vmalloc(newVar->memPtr, (
size_t)newVar->card[1] * newVar->baseExtent );
91 newVar->data = newVar->memPtr;
95 newVar->memStatus = HIT_MS_OWNER;
112 if(dst == local2)
return edge;
139 bzero(var->dataVertices, var->baseExtent * (
size_t) nvertices);
155 memcpy(dest->dataVertices,src->dataVertices,src->baseExtent * (
size_t) nvertices);
void hit_gcTileCopyVertices(void *destP, void *srcP)
#define hit_cShapeEdgeTarget(s, edge)
void hit_gcTileAllocInternal(void *newVarP, const char *name, const char *file, int numLine)
#define hit_cShapeNedges(shape)
int hit_gcTileGraphVertexAtIndex(void *varP, int vertex)
#define hit_cShapeEdgeIterator(var, shape, vertex)
void hit_gcTileClearVertices(void *varP)
#define hit_cShapeNvertices(shape)
#define hit_cShapeVertexToLocal(s, vertex)
Hitmap functions to allocate memory.
#define hit_vmalloc(ptr, size)
void hit_gcTileDomainShapeInternal(void *newVarP, size_t baseExtent, HitShape shape, int allocOpts)
#define hit_errInternal(routine, text, extraParam, file, numLine)
#define hit_tileShape(var)
int hit_gcTileGraphEdgeAtIndex(void *varP, int pos1, int pos2)