49 if ( nCap > 0 && nCap < 16 )
119 if ( p->
nCap >= nCapMin )
195 for ( i = 0; i < p->
nSize; i++ )
196 if ( p->
pArray[i] == Entry )
231 assert( i >= 0 && i < p->nSize );
248 assert( i >= 0 && i < p->nSize );
267 if ( Level1 < Level2 )
269 if ( Level1 > Level2 )
308 if ( (*ppS1)->pCutBest->tArrival < (*ppS2)->pCutBest->tArrival )
310 if ( (*ppS1)->pCutBest->tArrival > (*ppS2)->pCutBest->tArrival )
349 for ( i = 0; i < p1->
nSize; i++ )
351 for ( i = 0; i < p2->
nSize; i++ )
372 for ( i = vNodes->
nSize-1; i > 0; i-- )
374 pNode1 = vNodes->
pArray[i ];
375 pNode2 = vNodes->
pArray[i-1];
379 vNodes->
pArray[i ] = pNode2;
380 vNodes->
pArray[i-1] = pNode1;
399 for ( i = 0; i < vNodes->
nSize/2; i++ )
401 pNode1 = vNodes->
pArray[i];
403 vNodes->
pArray[i] = pNode2;
Fpga_NodeVec_t * Fpga_NodeVecAlloc(int nCap)
FUNCTION DEFINITIONS ///.
void Fpga_NodeVecPush(Fpga_NodeVec_t *p, Fpga_Node_t *Entry)
static ABC_NAMESPACE_IMPL_START int Fpga_NodeVecCompareLevels(Fpga_Node_t **pp1, Fpga_Node_t **pp2)
DECLARATIONS ///.
#define ABC_REALLOC(type, obj, num)
int Fpga_NodeVecCompareArrivals(Fpga_Node_t **ppS1, Fpga_Node_t **ppS2)
int Fpga_NodeVecReadSize(Fpga_NodeVec_t *p)
Fpga_Node_t * Fpga_NodeVecReadEntry(Fpga_NodeVec_t *p, int i)
void Fpga_NodeVecWriteEntry(Fpga_NodeVec_t *p, int i, Fpga_Node_t *Entry)
void Fpga_NodeVecShrink(Fpga_NodeVec_t *p, int nSizeNew)
#define ABC_ALLOC(type, num)
void Fpga_NodeVecUnion(Fpga_NodeVec_t *p, Fpga_NodeVec_t *p1, Fpga_NodeVec_t *p2)
void Fpga_NodeVecGrow(Fpga_NodeVec_t *p, int nCapMin)
void Fpga_SortNodesByArrivalTimes(Fpga_NodeVec_t *p)
#define ABC_NAMESPACE_IMPL_END
void Fpga_NodeVecFree(Fpga_NodeVec_t *p)
#define ABC_NAMESPACE_IMPL_START
void Fpga_NodeVecSortByLevel(Fpga_NodeVec_t *p)
void Fpga_NodeVecClear(Fpga_NodeVec_t *p)
void Fpga_NodeVecPushOrder(Fpga_NodeVec_t *vNodes, Fpga_Node_t *pNode, int fIncreasing)
void Fpga_NodeVecReverse(Fpga_NodeVec_t *vNodes)
Fpga_Node_t ** Fpga_NodeVecReadArray(Fpga_NodeVec_t *p)
int Fpga_NodeVecPushUnique(Fpga_NodeVec_t *p, Fpga_Node_t *Entry)
Fpga_Node_t * Fpga_NodeVecPop(Fpga_NodeVec_t *p)