abc-master
|
#include "msatInt.h"
Go to the source code of this file.
Data Structures | |
struct | Msat_MmFixed_t_ |
DECLARATIONS ///. More... | |
struct | Msat_MmFlex_t_ |
struct | Msat_MmStep_t_ |
Functions | |
Msat_MmFixed_t * | Msat_MmFixedStart (int nEntrySize) |
FUNCTION DEFINITIONS ///. More... | |
void | Msat_MmFixedStop (Msat_MmFixed_t *p, int fVerbose) |
char * | Msat_MmFixedEntryFetch (Msat_MmFixed_t *p) |
void | Msat_MmFixedEntryRecycle (Msat_MmFixed_t *p, char *pEntry) |
void | Msat_MmFixedRestart (Msat_MmFixed_t *p) |
int | Msat_MmFixedReadMemUsage (Msat_MmFixed_t *p) |
Msat_MmFlex_t * | Msat_MmFlexStart () |
void | Msat_MmFlexStop (Msat_MmFlex_t *p, int fVerbose) |
char * | Msat_MmFlexEntryFetch (Msat_MmFlex_t *p, int nBytes) |
int | Msat_MmFlexReadMemUsage (Msat_MmFlex_t *p) |
Msat_MmStep_t * | Msat_MmStepStart (int nSteps) |
void | Msat_MmStepStop (Msat_MmStep_t *p, int fVerbose) |
char * | Msat_MmStepEntryFetch (Msat_MmStep_t *p, int nBytes) |
void | Msat_MmStepEntryRecycle (Msat_MmStep_t *p, char *pEntry, int nBytes) |
int | Msat_MmStepReadMemUsage (Msat_MmStep_t *p) |
char* Msat_MmFixedEntryFetch | ( | Msat_MmFixed_t * | p | ) |
void Msat_MmFixedEntryRecycle | ( | Msat_MmFixed_t * | p, |
char * | pEntry | ||
) |
int Msat_MmFixedReadMemUsage | ( | Msat_MmFixed_t * | p | ) |
void Msat_MmFixedRestart | ( | Msat_MmFixed_t * | p | ) |
Msat_MmFixed_t* Msat_MmFixedStart | ( | int | nEntrySize | ) |
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 93 of file msatMem.c.
void Msat_MmFixedStop | ( | Msat_MmFixed_t * | p, |
int | fVerbose | ||
) |
char* Msat_MmFlexEntryFetch | ( | Msat_MmFlex_t * | p, |
int | nBytes | ||
) |
int Msat_MmFlexReadMemUsage | ( | Msat_MmFlex_t * | p | ) |
Msat_MmFlex_t* Msat_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 288 of file msatMem.c.
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 | ||
) |
Function*************************************************************
Synopsis [Recycles the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 503 of file msatMem.c.
int Msat_MmStepReadMemUsage | ( | Msat_MmStep_t * | p | ) |
Msat_MmStep_t* Msat_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 423 of file msatMem.c.
void Msat_MmStepStop | ( | Msat_MmStep_t * | p, |
int | fVerbose | ||
) |