mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-07 11:11:19 +02:00
New assertions and bug fix in DSD balancing.
This commit is contained in:
@@ -91,6 +91,16 @@ static inline Vec_Ptr_t * Vec_PtrAlloc( int nCap )
|
||||
p->pArray = p->nCap? ABC_ALLOC( void *, p->nCap ) : NULL;
|
||||
return p;
|
||||
}
|
||||
static inline Vec_Ptr_t * Vec_PtrAllocExact( int nCap )
|
||||
{
|
||||
Vec_Ptr_t * p;
|
||||
assert( nCap >= 0 );
|
||||
p = ABC_ALLOC( Vec_Ptr_t, 1 );
|
||||
p->nSize = 0;
|
||||
p->nCap = nCap;
|
||||
p->pArray = p->nCap? ABC_ALLOC( void *, p->nCap ) : NULL;
|
||||
return p;
|
||||
}
|
||||
|
||||
/**Function*************************************************************
|
||||
|
||||
|
||||
Reference in New Issue
Block a user