summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecFlt.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-03-23 18:40:38 +0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-03-23 18:40:38 +0700
commitefdd26f86d3dbbde1626fe6a84304bc700b97479 (patch)
treeda4ebd027e5e8de8a03a4a0cb15fa72a31d2ca74 /src/misc/vec/vecFlt.h
parent5f77e7ae8fb6ed29812aa67514109d961a61c112 (diff)
downloadabc-efdd26f86d3dbbde1626fe6a84304bc700b97479.tar.gz
abc-efdd26f86d3dbbde1626fe6a84304bc700b97479.tar.bz2
abc-efdd26f86d3dbbde1626fe6a84304bc700b97479.zip
Scalable SOP manipulation package.
Diffstat (limited to 'src/misc/vec/vecFlt.h')
-rw-r--r--src/misc/vec/vecFlt.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/misc/vec/vecFlt.h b/src/misc/vec/vecFlt.h
index 482973f7..9988deae 100644
--- a/src/misc/vec/vecFlt.h
+++ b/src/misc/vec/vecFlt.h
@@ -225,6 +225,18 @@ static inline Vec_Flt_t * Vec_FltDupArray( Vec_Flt_t * pVec )
SeeAlso []
***********************************************************************/
+static inline void Vec_FltZero( Vec_Flt_t * p )
+{
+ p->pArray = NULL;
+ p->nSize = 0;
+ p->nCap = 0;
+}
+static inline void Vec_FltErase( Vec_Flt_t * p )
+{
+ ABC_FREE( p->pArray );
+ p->nSize = 0;
+ p->nCap = 0;
+}
static inline void Vec_FltFree( Vec_Flt_t * p )
{
ABC_FREE( p->pArray );