139 printf(
"Fixed memory manager: Entry = %5d. Chunk = %5d. Chunks used = %5d.\n",
141 printf(
" Entries used = %8d. Entries peak = %8d. Memory used = %8d. Memory alloc = %8d.\n",
144 for ( i = 0; i < p->
nChunks; i++ )
185 *((
char **)pTemp) = NULL;
239 for ( i = 1; i < p->
nChunks; i++ )
250 *((
char **)pTemp) = NULL;
344 printf(
"Flexible memory manager: Chunk size = %d. Chunks used = %d.\n",
346 printf(
" Entries used = %d. Memory used = %d. Memory alloc = %d.\n",
349 for ( i = 0; i < p->
nChunks; i++ )
417 for ( i = 1; i < p->
nChunks; i++ )
477 for ( i = 0; i < p->
nMems; i++ )
483 for ( k = 1; k <= 4; k++ )
486 for ( k = (4<<i)+1; k <= (8<<i); k++ )
510 for ( i = 0; i < p->
nMems; i++ )
514 for ( i = 0; i < p->
nChunks; i++ )
588 int i, nMemTotal = 0;
589 for ( i = 0; i < p->
nMems; i++ )
void Gia_MmFixedEntryRecycle(Gia_MmFixed_t *p, char *pEntry)
char * Gia_MmFlexEntryFetch(Gia_MmFlex_t *p, int nBytes)
int Gia_MmStepReadMemUsage(Gia_MmStep_t *p)
Gia_MmStep_t * Gia_MmStepStart(int nSteps)
#define ABC_REALLOC(type, obj, num)
#define ABC_ALLOC(type, num)
char * Gia_MmFixedEntryFetch(Gia_MmFixed_t *p)
for(p=first;p->value< newval;p=p->next)
void Gia_MmFlexStop(Gia_MmFlex_t *p, int fVerbose)
void Gia_MmFixedRestart(Gia_MmFixed_t *p)
void Gia_MmStepStop(Gia_MmStep_t *p, int fVerbose)
void Gia_MmStepEntryRecycle(Gia_MmStep_t *p, char *pEntry, int nBytes)
int Gia_MmFixedReadMemUsage(Gia_MmFixed_t *p)
Gia_MmFixed_t * Gia_MmFixedStart(int nEntrySize, int nEntriesMax)
FUNCTION DEFINITIONS ///.
Gia_MmFlex_t * Gia_MmFlexStart()
#define ABC_NAMESPACE_IMPL_END
void Gia_MmFlexRestart(Gia_MmFlex_t *p)
#define ABC_NAMESPACE_IMPL_START
int Gia_MmFixedReadMaxEntriesUsed(Gia_MmFixed_t *p)
int Gia_MmFlexReadMemUsage(Gia_MmFlex_t *p)
char * Gia_MmStepEntryFetch(Gia_MmStep_t *p, int nBytes)
void Gia_MmFixedStop(Gia_MmFixed_t *p, int fVerbose)