diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-03-23 18:40:38 +0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-03-23 18:40:38 +0700 |
commit | efdd26f86d3dbbde1626fe6a84304bc700b97479 (patch) | |
tree | da4ebd027e5e8de8a03a4a0cb15fa72a31d2ca74 /src/misc/vec/vecFlt.h | |
parent | 5f77e7ae8fb6ed29812aa67514109d961a61c112 (diff) | |
download | abc-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.h | 12 |
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 ); |