105 if ( nEntrySize * (1 << 10) < (1<<16) )
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;
238 for ( i = 1; i < p->
nChunks; i++ )
249 *((
char **)pTemp) = NULL;
327 printf(
"Flexible memory manager: Chunk size = %d. Chunks used = %d.\n",
329 printf(
" Entries used = %d. Memory used = %d. Memory alloc = %d.\n",
332 for ( i = 0; i < p->
nChunks; i++ )
431 for ( i = 0; i < p->
nMems; i++ )
437 for ( k = 1; k <= 4; k++ )
440 for ( k = (4<<i)+1; k <= (8<<i); k++ )
461 for ( i = 0; i < p->
nMems; i++ )
528 int i, nMemTotal = 0;
529 for ( i = 0; i < p->
nMems; i++ )
#define ABC_REALLOC(type, obj, num)
void Msat_MmFixedEntryRecycle(Msat_MmFixed_t *p, char *pEntry)
#define ABC_ALLOC(type, num)
for(p=first;p->value< newval;p=p->next)
int Msat_MmFixedReadMemUsage(Msat_MmFixed_t *p)
int Msat_MmStepReadMemUsage(Msat_MmStep_t *p)
char * Msat_MmFlexEntryFetch(Msat_MmFlex_t *p, int nBytes)
void Msat_MmFixedStop(Msat_MmFixed_t *p, int fVerbose)
Msat_MmFlex_t * Msat_MmFlexStart()
int Msat_MmFlexReadMemUsage(Msat_MmFlex_t *p)
Msat_MmStep_t * Msat_MmStepStart(int nSteps)
#define ABC_NAMESPACE_IMPL_END
void Msat_MmFixedRestart(Msat_MmFixed_t *p)
#define ABC_NAMESPACE_IMPL_START
void Msat_MmStepStop(Msat_MmStep_t *p, int fVerbose)
void Msat_MmFlexStop(Msat_MmFlex_t *p, int fVerbose)
char * Msat_MmStepEntryFetch(Msat_MmStep_t *p, int nBytes)
void Msat_MmStepEntryRecycle(Msat_MmStep_t *p, char *pEntry, int nBytes)
Msat_MmFixed_t * Msat_MmFixedStart(int nEntrySize)
FUNCTION DEFINITIONS ///.
char * Msat_MmFixedEntryFetch(Msat_MmFixed_t *p)