From 4e00ec61697d32e81ca7614d253d609f31ac9435 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 12 Nov 2013 16:03:18 -0800 Subject: Structural mapper into structures. --- src/misc/vec/vecFlt.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/misc') 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************************************************************* -- cgit v1.2.3