abc-master
|
#include "fxuInt.h"
Go to the source code of this file.
Macros | |
#define | FXU_HEAP_SINGLE_WEIGHT(pSingle) ((pSingle)->Weight) |
DECLARATIONS ///. More... | |
#define | FXU_HEAP_SINGLE_CURRENT(p, pSingle) ((p)->pTree[(pSingle)->HNum]) |
#define | FXU_HEAP_SINGLE_PARENT_EXISTS(p, pSingle) ((pSingle)->HNum > 1) |
#define | FXU_HEAP_SINGLE_CHILD1_EXISTS(p, pSingle) (((pSingle)->HNum << 1) <= p->nItems) |
#define | FXU_HEAP_SINGLE_CHILD2_EXISTS(p, pSingle) ((((pSingle)->HNum << 1)+1) <= p->nItems) |
#define | FXU_HEAP_SINGLE_PARENT(p, pSingle) ((p)->pTree[(pSingle)->HNum >> 1]) |
#define | FXU_HEAP_SINGLE_CHILD1(p, pSingle) ((p)->pTree[(pSingle)->HNum << 1]) |
#define | FXU_HEAP_SINGLE_CHILD2(p, pSingle) ((p)->pTree[((pSingle)->HNum << 1)+1]) |
#define | FXU_HEAP_SINGLE_ASSERT(p, pSingle) assert( (pSingle)->HNum >= 1 && (pSingle)->HNum <= p->nItemsAlloc ) |
Functions | |
static void | Fxu_HeapSingleResize (Fxu_HeapSingle *p) |
static void | Fxu_HeapSingleSwap (Fxu_Single **pSingle1, Fxu_Single **pSingle2) |
static void | Fxu_HeapSingleMoveUp (Fxu_HeapSingle *p, Fxu_Single *pSingle) |
static void | Fxu_HeapSingleMoveDn (Fxu_HeapSingle *p, Fxu_Single *pSingle) |
Fxu_HeapSingle * | Fxu_HeapSingleStart () |
FUNCTION DEFINITIONS ///. More... | |
void | Fxu_HeapSingleStop (Fxu_HeapSingle *p) |
void | Fxu_HeapSinglePrint (FILE *pFile, Fxu_HeapSingle *p) |
void | Fxu_HeapSingleCheck (Fxu_HeapSingle *p) |
void | Fxu_HeapSingleCheckOne (Fxu_HeapSingle *p, Fxu_Single *pSingle) |
void | Fxu_HeapSingleInsert (Fxu_HeapSingle *p, Fxu_Single *pSingle) |
void | Fxu_HeapSingleUpdate (Fxu_HeapSingle *p, Fxu_Single *pSingle) |
void | Fxu_HeapSingleDelete (Fxu_HeapSingle *p, Fxu_Single *pSingle) |
Fxu_Single * | Fxu_HeapSingleReadMax (Fxu_HeapSingle *p) |
Fxu_Single * | Fxu_HeapSingleGetMax (Fxu_HeapSingle *p) |
int | Fxu_HeapSingleReadMaxWeight (Fxu_HeapSingle *p) |
#define FXU_HEAP_SINGLE_ASSERT | ( | p, | |
pSingle | |||
) | assert( (pSingle)->HNum >= 1 && (pSingle)->HNum <= p->nItemsAlloc ) |
Definition at line 36 of file fxuHeapS.c.
Definition at line 34 of file fxuHeapS.c.
Definition at line 31 of file fxuHeapS.c.
Definition at line 35 of file fxuHeapS.c.
Definition at line 32 of file fxuHeapS.c.
Definition at line 29 of file fxuHeapS.c.
Definition at line 33 of file fxuHeapS.c.
#define FXU_HEAP_SINGLE_PARENT_EXISTS | ( | p, | |
pSingle | |||
) | ((pSingle)->HNum > 1) |
Definition at line 30 of file fxuHeapS.c.
#define FXU_HEAP_SINGLE_WEIGHT | ( | pSingle | ) | ((pSingle)->Weight) |
DECLARATIONS ///.
CFile****************************************************************
FileName [fxuHeapS.c]
PackageName [MVSIS 2.0: Multi-valued logic synthesis system.]
Synopsis [The priority queue for variables.]
Author [MVSIS Group]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - February 1, 2003.]
Revision [
]
Definition at line 28 of file fxuHeapS.c.
void Fxu_HeapSingleCheck | ( | Fxu_HeapSingle * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 155 of file fxuHeapS.c.
void Fxu_HeapSingleCheckOne | ( | Fxu_HeapSingle * | p, |
Fxu_Single * | pSingle | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 176 of file fxuHeapS.c.
void Fxu_HeapSingleDelete | ( | Fxu_HeapSingle * | p, |
Fxu_Single * | pSingle | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 251 of file fxuHeapS.c.
Fxu_Single* Fxu_HeapSingleGetMax | ( | Fxu_HeapSingle * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 293 of file fxuHeapS.c.
void Fxu_HeapSingleInsert | ( | Fxu_HeapSingle * | p, |
Fxu_Single * | pSingle | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 204 of file fxuHeapS.c.
|
static |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 392 of file fxuHeapS.c.
|
static |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 364 of file fxuHeapS.c.
void Fxu_HeapSinglePrint | ( | FILE * | pFile, |
Fxu_HeapSingle * | p | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 120 of file fxuHeapS.c.
Fxu_Single* Fxu_HeapSingleReadMax | ( | Fxu_HeapSingle * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 275 of file fxuHeapS.c.
int Fxu_HeapSingleReadMaxWeight | ( | Fxu_HeapSingle * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 321 of file fxuHeapS.c.
|
static |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 82 of file fxuHeapS.c.
Fxu_HeapSingle* Fxu_HeapSingleStart | ( | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 58 of file fxuHeapS.c.
void Fxu_HeapSingleStop | ( | Fxu_HeapSingle * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 99 of file fxuHeapS.c.
|
static |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 341 of file fxuHeapS.c.
void Fxu_HeapSingleUpdate | ( | Fxu_HeapSingle * | p, |
Fxu_Single * | pSingle | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 226 of file fxuHeapS.c.