#include "misc/util/abc_global.h"

Go to the source code of this file.
Typedefs | |
| typedef typedefABC_NAMESPACE_HEADER_START struct Sat_MmFixed_t_ | Sat_MmFixed_t |
| INCLUDES ///. | |
| typedef struct Sat_MmFlex_t_ | Sat_MmFlex_t |
| typedef struct Sat_MmStep_t_ | Sat_MmStep_t |
Functions | |
| Sat_MmFixed_t * | Sat_MmFixedStart (int nEntrySize) |
| GLOBAL VARIABLES ///. | |
| void | Sat_MmFixedStop (Sat_MmFixed_t *p, int fVerbose) |
| char * | Sat_MmFixedEntryFetch (Sat_MmFixed_t *p) |
| void | Sat_MmFixedEntryRecycle (Sat_MmFixed_t *p, char *pEntry) |
| void | Sat_MmFixedRestart (Sat_MmFixed_t *p) |
| int | Sat_MmFixedReadMemUsage (Sat_MmFixed_t *p) |
| Sat_MmFlex_t * | Sat_MmFlexStart () |
| void | Sat_MmFlexStop (Sat_MmFlex_t *p, int fVerbose) |
| char * | Sat_MmFlexEntryFetch (Sat_MmFlex_t *p, int nBytes) |
| int | Sat_MmFlexReadMemUsage (Sat_MmFlex_t *p) |
| Sat_MmStep_t * | Sat_MmStepStart (int nSteps) |
| void | Sat_MmStepStop (Sat_MmStep_t *p, int fVerbose) |
| void | Sat_MmStepRestart (Sat_MmStep_t *p) |
| char * | Sat_MmStepEntryFetch (Sat_MmStep_t *p, int nBytes) |
| void | Sat_MmStepEntryRecycle (Sat_MmStep_t *p, char *pEntry, int nBytes) |
| int | Sat_MmStepReadMemUsage (Sat_MmStep_t *p) |
| typedef typedefABC_NAMESPACE_HEADER_START struct Sat_MmFixed_t_ Sat_MmFixed_t |
INCLUDES ///.
CFile****************************************************************
FileName [satMem.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [SAT solver.]
Synopsis [Memory management.]
Author [Alan Mishchenko alanm.nosp@m.i@ee.nosp@m.cs.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - January 1, 2004.]
Revision [
] PARAMETERS /// STRUCTURE DEFINITIONS ///
| typedef struct Sat_MmFlex_t_ Sat_MmFlex_t |
| typedef struct Sat_MmStep_t_ Sat_MmStep_t |
|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 169 of file satMem.c.

|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 220 of file satMem.c.

|
extern |
|
extern |
Function*************************************************************
Synopsis []
Description [Relocates all the memory except the first chunk.]
SideEffects []
SeeAlso []
Definition at line 240 of file satMem.c.

|
extern |
GLOBAL VARIABLES ///.
MACRO DEFINITIONS /// FUNCTION DECLARATIONS ///
GLOBAL VARIABLES ///.
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 101 of file satMem.c.


|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 140 of file satMem.c.

|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 360 of file satMem.c.
|
extern |
|
extern |
Function*************************************************************
Synopsis [Allocates entries of flexible size.]
Description [Can only work with entry size at least 4 byte long.]
SideEffects []
SeeAlso []
Definition at line 299 of file satMem.c.

|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 331 of file satMem.c.
|
extern |
Function*************************************************************
Synopsis [Creates the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 523 of file satMem.c.

|
extern |
Function*************************************************************
Synopsis [Recycles the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 552 of file satMem.c.

|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
extern |
|
extern |
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 434 of file satMem.c.

|
extern |