diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-11-12 16:03:18 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-11-12 16:03:18 -0800 |
commit | 4e00ec61697d32e81ca7614d253d609f31ac9435 (patch) | |
tree | 3e190e5e8e450219a27e70853172f04a196ec7a2 /src/misc/vec | |
parent | e70adbcd2d0444624420afce7b04436118ee91f6 (diff) | |
download | abc-4e00ec61697d32e81ca7614d253d609f31ac9435.tar.gz abc-4e00ec61697d32e81ca7614d253d609f31ac9435.tar.bz2 abc-4e00ec61697d32e81ca7614d253d609f31ac9435.zip |
Structural mapper into structures.
Diffstat (limited to 'src/misc/vec')
-rw-r--r-- | src/misc/vec/vecFlt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/misc/vec/vecFlt.h b/src/misc/vec/vecFlt.h index d5184268..57bfe3c1 100644 --- a/src/misc/vec/vecFlt.h +++ b/src/misc/vec/vecFlt.h @@ -106,6 +106,14 @@ static inline Vec_Flt_t * Vec_FltStart( int nSize ) memset( p->pArray, 0, sizeof(float) * nSize ); return p; } +static inline Vec_Flt_t * Vec_FltStartFull( int nSize ) +{ + Vec_Flt_t * p; + p = Vec_FltAlloc( nSize ); + p->nSize = nSize; + memset( p->pArray, 0xFF, sizeof(float) * nSize ); + return p; +} /**Function************************************************************* |