#include "aig.h"
Go to the source code of this file.
Classes | |
| struct | Aig_MmFixed_t_ |
| DECLARATIONS ///. More... | |
| struct | Aig_MmFlex_t_ |
| struct | Aig_MmStep_t_ |
Functions | |
| Aig_MmFixed_t * | Aig_MmFixedStart (int nEntrySize, int nEntriesMax) |
| FUNCTION DEFINITIONS ///. | |
| void | Aig_MmFixedStop (Aig_MmFixed_t *p, int fVerbose) |
| char * | Aig_MmFixedEntryFetch (Aig_MmFixed_t *p) |
| void | Aig_MmFixedEntryRecycle (Aig_MmFixed_t *p, char *pEntry) |
| void | Aig_MmFixedRestart (Aig_MmFixed_t *p) |
| int | Aig_MmFixedReadMemUsage (Aig_MmFixed_t *p) |
| int | Aig_MmFixedReadMaxEntriesUsed (Aig_MmFixed_t *p) |
| Aig_MmFlex_t * | Aig_MmFlexStart () |
| void | Aig_MmFlexStop (Aig_MmFlex_t *p, int fVerbose) |
| char * | Aig_MmFlexEntryFetch (Aig_MmFlex_t *p, int nBytes) |
| void | Aig_MmFlexRestart (Aig_MmFlex_t *p) |
| int | Aig_MmFlexReadMemUsage (Aig_MmFlex_t *p) |
| Aig_MmStep_t * | Aig_MmStepStart (int nSteps) |
| void | Aig_MmStepStop (Aig_MmStep_t *p, int fVerbose) |
| char * | Aig_MmStepEntryFetch (Aig_MmStep_t *p, int nBytes) |
| void | Aig_MmStepEntryRecycle (Aig_MmStep_t *p, char *pEntry, int nBytes) |
| int | Aig_MmStepReadMemUsage (Aig_MmStep_t *p) |
| char * Aig_MmFixedEntryFetch | ( | Aig_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 161 of file aigMem.c.

| void Aig_MmFixedEntryRecycle | ( | Aig_MmFixed_t * | p, |
| char * | pEntry ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 212 of file aigMem.c.

| int Aig_MmFixedReadMaxEntriesUsed | ( | Aig_MmFixed_t * | p | ) |
| int Aig_MmFixedReadMemUsage | ( | Aig_MmFixed_t * | p | ) |
| void Aig_MmFixedRestart | ( | Aig_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description [Relocates all the memory except the first chunk.]
SideEffects []
SeeAlso []
Definition at line 232 of file aigMem.c.

| Aig_MmFixed_t * Aig_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 aigMem.c.


| void Aig_MmFixedStop | ( | Aig_MmFixed_t * | p, |
| int | fVerbose ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 132 of file aigMem.c.

| char * Aig_MmFlexEntryFetch | ( | Aig_MmFlex_t * | p, |
| int | nBytes ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 366 of file aigMem.c.

| int Aig_MmFlexReadMemUsage | ( | Aig_MmFlex_t * | p | ) |
| void Aig_MmFlexRestart | ( | Aig_MmFlex_t * | p | ) |
Function*************************************************************
Synopsis []
Description [Relocates all the memory except the first chunk.]
SideEffects []
SeeAlso []
Definition at line 415 of file aigMem.c.

| Aig_MmFlex_t * Aig_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 aigMem.c.


| void Aig_MmFlexStop | ( | Aig_MmFlex_t * | p, |
| int | fVerbose ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 337 of file aigMem.c.

| char * Aig_MmStepEntryFetch | ( | Aig_MmStep_t * | p, |
| int | nBytes ) |
Function*************************************************************
Synopsis [Creates the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 538 of file aigMem.c.

| void Aig_MmStepEntryRecycle | ( | Aig_MmStep_t * | p, |
| char * | pEntry, | ||
| int | nBytes ) |
Function*************************************************************
Synopsis [Recycles the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 571 of file aigMem.c.

| int Aig_MmStepReadMemUsage | ( | Aig_MmStep_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
| Aig_MmStep_t * Aig_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 472 of file aigMem.c.

| void Aig_MmStepStop | ( | Aig_MmStep_t * | p, |
| int | fVerbose ) |