diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/misc/vec/vecSet.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/misc/vec/vecSet.h b/src/misc/vec/vecSet.h index 5f8df449..7e5c6c62 100644 --- a/src/misc/vec/vecSet.h +++ b/src/misc/vec/vecSet.h @@ -156,6 +156,25 @@ static inline void Vec_SetRestart( Vec_Set_t * p ) /**Function************************************************************* + Synopsis [Returns memory in bytes occupied by the vector.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline double Vec_ReportMemory( Vec_Set_t * p ) +{ + double Mem = sizeof(Vec_Set_t); + Mem += p->nPagesAlloc * sizeof(void *); + Mem += sizeof(word) * (1 << p->nPageSize) * (1 + p->iPage); + return Mem; +} + +/**Function************************************************************* + Synopsis [Freeing vector.] Description [] |