mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-08 03:46:07 +02:00
Version abc90310
This commit is contained in:
+25
-4
@@ -409,10 +409,9 @@ static inline void Vec_IntFillExtra( Vec_Int_t * p, int nSize, int Fill )
|
||||
int i;
|
||||
if ( p->nSize >= nSize )
|
||||
return;
|
||||
if ( 2 * p->nSize > nSize )
|
||||
Vec_IntGrow( p, 2 * nSize );
|
||||
else
|
||||
Vec_IntGrow( p, nSize );
|
||||
if ( nSize < 2 * p->nSize )
|
||||
nSize = 2 * p->nSize;
|
||||
Vec_IntGrow( p, nSize );
|
||||
for ( i = p->nSize; i < nSize; i++ )
|
||||
p->pArray[i] = Fill;
|
||||
p->nSize = nSize;
|
||||
@@ -741,6 +740,28 @@ static inline int Vec_IntFindMin( Vec_Int_t * p )
|
||||
return Best;
|
||||
}
|
||||
|
||||
/**Function*************************************************************
|
||||
|
||||
Synopsis [Reverses the order of entries.]
|
||||
|
||||
Description []
|
||||
|
||||
SideEffects []
|
||||
|
||||
SeeAlso []
|
||||
|
||||
***********************************************************************/
|
||||
static inline void Vec_IntReverseOrder( Vec_Int_t * p )
|
||||
{
|
||||
int i, Temp;
|
||||
for ( i = 0; i < p->nSize/2; i++ )
|
||||
{
|
||||
Temp = p->pArray[i];
|
||||
p->pArray[i] = p->pArray[p->nSize-1-i];
|
||||
p->pArray[p->nSize-1-i] = Temp;
|
||||
}
|
||||
}
|
||||
|
||||
/**Function*************************************************************
|
||||
|
||||
Synopsis [Comparison procedure for two integers.]
|
||||
|
||||
Reference in New Issue
Block a user