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_MC_TILE;
66 HitPTile newVar = (HitPTile)newVarP;
69 if ( newVar->memStatus == HIT_MS_NULL)
return;
72 if ( newVar->memStatus == HIT_MS_OWNER ){
73 hit_errInternal(__FUNCTION__,
"Trying to reallocate a Tile: ",name,file,numLine);
77 if(newVar->card[0] != 0){
80 hit_vmalloc(newVar->memPtr, (
size_t)newVar->card[0] * newVar->baseExtent );
81 newVar->data = newVar->memPtr;
85 newVar->memStatus = HIT_MS_OWNER;
99 if(dst == column)
return column_i;
136 bzero(tile->data, tile->baseExtent * (
size_t) nz);
#define hit_cShapeCoordToLocal(s, dim, elem)
#define hit_cShapeEdgeTarget(s, edge)
#define hit_cShapeColumnIterator(var, shape, row)
void hit_mcTileDomainShapeInternal(void *newVarP, size_t baseExtent, HitShape shape)
#define hit_cShapeNvertices(shape)
Hitmap functions to allocate memory.
#define hit_cShapeNZElems(shape)
int hit_mcTileGraphElemAtIndex(void *varP, int pos1, int pos2)
int hit_mcTileElemAtIndex(void *varP, int local1, int local2)
#define hit_vmalloc(ptr, size)
void hit_mcTileAllocInternal(void *newVarP, const char *name, const char *file, int numLine)
void hit_mcTileClear(void *tileP)
#define hit_errInternal(routine, text, extraParam, file, numLine)
#define hit_tileShape(var)