abc-master
|
#include "gia.h"
Go to the source code of this file.
Data Structures | |
struct | Gia_MmFixed_t_ |
DECLARATIONS ///. More... | |
struct | Gia_MmFlex_t_ |
struct | Gia_MmStep_t_ |
Functions | |
Gia_MmFixed_t * | Gia_MmFixedStart (int nEntrySize, int nEntriesMax) |
FUNCTION DEFINITIONS ///. More... | |
void | Gia_MmFixedStop (Gia_MmFixed_t *p, int fVerbose) |
char * | Gia_MmFixedEntryFetch (Gia_MmFixed_t *p) |
void | Gia_MmFixedEntryRecycle (Gia_MmFixed_t *p, char *pEntry) |
void | Gia_MmFixedRestart (Gia_MmFixed_t *p) |
int | Gia_MmFixedReadMemUsage (Gia_MmFixed_t *p) |
int | Gia_MmFixedReadMaxEntriesUsed (Gia_MmFixed_t *p) |
Gia_MmFlex_t * | Gia_MmFlexStart () |
void | Gia_MmFlexStop (Gia_MmFlex_t *p, int fVerbose) |
char * | Gia_MmFlexEntryFetch (Gia_MmFlex_t *p, int nBytes) |
void | Gia_MmFlexRestart (Gia_MmFlex_t *p) |
int | Gia_MmFlexReadMemUsage (Gia_MmFlex_t *p) |
Gia_MmStep_t * | Gia_MmStepStart (int nSteps) |
void | Gia_MmStepStop (Gia_MmStep_t *p, int fVerbose) |
char * | Gia_MmStepEntryFetch (Gia_MmStep_t *p, int nBytes) |
void | Gia_MmStepEntryRecycle (Gia_MmStep_t *p, char *pEntry, int nBytes) |
int | Gia_MmStepReadMemUsage (Gia_MmStep_t *p) |
char* Gia_MmFixedEntryFetch | ( | Gia_MmFixed_t * | p | ) |
void Gia_MmFixedEntryRecycle | ( | Gia_MmFixed_t * | p, |
char * | pEntry | ||
) |
int Gia_MmFixedReadMaxEntriesUsed | ( | Gia_MmFixed_t * | p | ) |
int Gia_MmFixedReadMemUsage | ( | Gia_MmFixed_t * | p | ) |
void Gia_MmFixedRestart | ( | Gia_MmFixed_t * | p | ) |
Gia_MmFixed_t* Gia_MmFixedStart | ( | int | nEntrySize, |
int | nEntriesMax | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Allocates memory pieces of fixed size.]
Description [The size of the chunk is computed as the minimum of 1024 entries and 64K. Can only work with entry size at least 4 byte long.]
SideEffects []
SeeAlso []
Definition at line 96 of file giaMem.c.
void Gia_MmFixedStop | ( | Gia_MmFixed_t * | p, |
int | fVerbose | ||
) |
char* Gia_MmFlexEntryFetch | ( | Gia_MmFlex_t * | p, |
int | nBytes | ||
) |
int Gia_MmFlexReadMemUsage | ( | Gia_MmFlex_t * | p | ) |
void Gia_MmFlexRestart | ( | Gia_MmFlex_t * | p | ) |
Gia_MmFlex_t* Gia_MmFlexStart | ( | ) |
Function*************************************************************
Synopsis [Allocates entries of flexible size.]
Description [Can only work with entry size at least 4 byte long.]
SideEffects []
SeeAlso []
Definition at line 305 of file giaMem.c.
void Gia_MmFlexStop | ( | Gia_MmFlex_t * | p, |
int | fVerbose | ||
) |
char* Gia_MmStepEntryFetch | ( | Gia_MmStep_t * | p, |
int | nBytes | ||
) |
void Gia_MmStepEntryRecycle | ( | Gia_MmStep_t * | p, |
char * | pEntry, | ||
int | nBytes | ||
) |
Function*************************************************************
Synopsis [Recycles the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 563 of file giaMem.c.
int Gia_MmStepReadMemUsage | ( | Gia_MmStep_t * | p | ) |
Gia_MmStep_t* Gia_MmStepStart | ( | int | nSteps | ) |
Function*************************************************************
Synopsis [Starts the hierarchical memory manager.]
Description [This manager can allocate entries of any size. Iternally they are mapped into the entries with the number of bytes equal to the power of 2. The smallest entry size is 8 bytes. The next one is 16 bytes etc. So, if the user requests 6 bytes, he gets 8 byte entry. If we asks for 25 bytes, he gets 32 byte entry etc. The input parameters "nSteps" says how many fixed memory managers are employed internally. Calling this procedure with nSteps equal to 10 results in 10 hierarchically arranged internal memory managers, which can allocate up to 4096 (1Kb) entries. Requests for larger entries are handed over to malloc() and then ABC_FREE()ed.]
SideEffects []
SeeAlso []
Definition at line 468 of file giaMem.c.
void Gia_MmStepStop | ( | Gia_MmStep_t * | p, |
int | fVerbose | ||
) |