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 Aig_MmStepStop(Aig_MmStep_t *p, int fVerbose)
void Aig_MmFixedRestart(Aig_MmFixed_t *p)
#define ABC_REALLOC(type, obj, num)
#define ABC_ALLOC(type, num)
int Aig_MmFixedReadMemUsage(Aig_MmFixed_t *p)
for(p=first;p->value< newval;p=p->next)
Aig_MmFixed_t * Aig_MmFixedStart(int nEntrySize, int nEntriesMax)
FUNCTION DEFINITIONS ///.
Aig_MmStep_t * Aig_MmStepStart(int nSteps)
Aig_MmFlex_t * Aig_MmFlexStart()
char * Aig_MmStepEntryFetch(Aig_MmStep_t *p, int nBytes)
char * Aig_MmFlexEntryFetch(Aig_MmFlex_t *p, int nBytes)
#define ABC_NAMESPACE_IMPL_END
char * Aig_MmFixedEntryFetch(Aig_MmFixed_t *p)
#define ABC_NAMESPACE_IMPL_START
int Aig_MmFixedReadMaxEntriesUsed(Aig_MmFixed_t *p)
void Aig_MmFixedEntryRecycle(Aig_MmFixed_t *p, char *pEntry)
void Aig_MmFixedStop(Aig_MmFixed_t *p, int fVerbose)
int Aig_MmFlexReadMemUsage(Aig_MmFlex_t *p)
int Aig_MmStepReadMemUsage(Aig_MmStep_t *p)
void Aig_MmStepEntryRecycle(Aig_MmStep_t *p, char *pEntry, int nBytes)
void Aig_MmFlexRestart(Aig_MmFlex_t *p)
void Aig_MmFlexStop(Aig_MmFlex_t *p, int fVerbose)