mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-02 23:58:27 +02:00
Adding memory reporting to vectors.
This commit is contained in:
@@ -372,6 +372,22 @@ static inline int Vec_IntCap( Vec_Int_t * p )
|
||||
return p->nCap;
|
||||
}
|
||||
|
||||
/**Function*************************************************************
|
||||
|
||||
Synopsis []
|
||||
|
||||
Description []
|
||||
|
||||
SideEffects []
|
||||
|
||||
SeeAlso []
|
||||
|
||||
***********************************************************************/
|
||||
static inline double Vec_IntMemory( Vec_Int_t * p )
|
||||
{
|
||||
return !p ? 0.0 : 1.0 * sizeof(int) * p->nCap + sizeof(Vec_Int_t) ;
|
||||
}
|
||||
|
||||
/**Function*************************************************************
|
||||
|
||||
Synopsis []
|
||||
|
||||
Reference in New Issue
Block a user