From 8a2d237f788d7650694efa5dead2cb09a75010ee Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 29 Jul 2012 12:34:32 -0700 Subject: Adding memory reporting to vectors. --- src/misc/vec/vecFlt.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/misc/vec/vecFlt.h') diff --git a/src/misc/vec/vecFlt.h b/src/misc/vec/vecFlt.h index 19423ae0..873139f7 100644 --- a/src/misc/vec/vecFlt.h +++ b/src/misc/vec/vecFlt.h @@ -300,6 +300,22 @@ static inline int Vec_FltCap( Vec_Flt_t * p ) return p->nCap; } +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline double Vec_FltMemory( Vec_Flt_t * p ) +{ + return !p ? 0.0 : 1.0 * sizeof(float) * p->nCap + sizeof(Vec_Flt_t); +} + /**Function************************************************************* Synopsis [] -- cgit v1.2.3