abc-master
|
#include "extra.h"
Go to the source code of this file.
Data Structures | |
struct | Extra_MmFixed_t_ |
struct | Extra_MmFlex_t_ |
struct | Extra_MmStep_t_ |
Functions | |
Extra_MmFixed_t * | Extra_MmFixedStart (int nEntrySize) |
void | Extra_MmFixedPrint (Extra_MmFixed_t *p) |
void | Extra_MmFixedStop (Extra_MmFixed_t *p) |
char * | Extra_MmFixedEntryFetch (Extra_MmFixed_t *p) |
void | Extra_MmFixedEntryRecycle (Extra_MmFixed_t *p, char *pEntry) |
void | Extra_MmFixedRestart (Extra_MmFixed_t *p) |
int | Extra_MmFixedReadMemUsage (Extra_MmFixed_t *p) |
int | Extra_MmFixedReadMaxEntriesUsed (Extra_MmFixed_t *p) |
Extra_MmFlex_t * | Extra_MmFlexStart () |
void | Extra_MmFlexPrint (Extra_MmFlex_t *p) |
void | Extra_MmFlexStop (Extra_MmFlex_t *p) |
char * | Extra_MmFlexEntryFetch (Extra_MmFlex_t *p, int nBytes) |
int | Extra_MmFlexReadMemUsage (Extra_MmFlex_t *p) |
Extra_MmStep_t * | Extra_MmStepStart (int nSteps) |
void | Extra_MmStepStop (Extra_MmStep_t *p) |
char * | Extra_MmStepEntryFetch (Extra_MmStep_t *p, int nBytes) |
void | Extra_MmStepEntryRecycle (Extra_MmStep_t *p, char *pEntry, int nBytes) |
int | Extra_MmStepReadMemUsage (Extra_MmStep_t *p) |
char* Extra_MmFixedEntryFetch | ( | Extra_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 202 of file extraUtilMemory.c.
void Extra_MmFixedEntryRecycle | ( | Extra_MmFixed_t * | p, |
char * | pEntry | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 253 of file extraUtilMemory.c.
void Extra_MmFixedPrint | ( | Extra_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 161 of file extraUtilMemory.c.
int Extra_MmFixedReadMaxEntriesUsed | ( | Extra_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 327 of file extraUtilMemory.c.
int Extra_MmFixedReadMemUsage | ( | Extra_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 311 of file extraUtilMemory.c.
void Extra_MmFixedRestart | ( | Extra_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description [Relocates all the memory except the first chunk.]
SideEffects []
SeeAlso []
Definition at line 273 of file extraUtilMemory.c.
Extra_MmFixed_t* Extra_MmFixedStart | ( | int | nEntrySize | ) |
AutomaticStart AutomaticEnd 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 122 of file extraUtilMemory.c.
void Extra_MmFixedStop | ( | Extra_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 180 of file extraUtilMemory.c.
char* Extra_MmFlexEntryFetch | ( | Extra_MmFlex_t * | p, |
int | nBytes | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 418 of file extraUtilMemory.c.
void Extra_MmFlexPrint | ( | Extra_MmFlex_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 376 of file extraUtilMemory.c.
int Extra_MmFlexReadMemUsage | ( | Extra_MmFlex_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 463 of file extraUtilMemory.c.
Extra_MmFlex_t* Extra_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 344 of file extraUtilMemory.c.
void Extra_MmFlexStop | ( | Extra_MmFlex_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 395 of file extraUtilMemory.c.
char* Extra_MmStepEntryFetch | ( | Extra_MmStep_t * | p, |
int | nBytes | ||
) |
Function*************************************************************
Synopsis [Creates the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 555 of file extraUtilMemory.c.
void Extra_MmStepEntryRecycle | ( | Extra_MmStep_t * | p, |
char * | pEntry, | ||
int | nBytes | ||
) |
Function*************************************************************
Synopsis [Recycles the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 588 of file extraUtilMemory.c.
int Extra_MmStepReadMemUsage | ( | Extra_MmStep_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 611 of file extraUtilMemory.c.
Extra_MmStep_t* Extra_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 492 of file extraUtilMemory.c.
void Extra_MmStepStop | ( | Extra_MmStep_t * | p | ) |
Function*************************************************************
Synopsis [Stops the memory manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 528 of file extraUtilMemory.c.