From cc37fb95732e71c78be055b43dc0fb7d0e74ab3e Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Fri, 14 Nov 2014 20:12:20 -0800 Subject: Improvements to word-level network package. --- src/misc/vec/vecInt.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/misc') diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index b56d8661..26c67073 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -551,6 +551,14 @@ static inline void Vec_IntFill( Vec_Int_t * p, int nSize, int Fill ) p->pArray[i] = Fill; p->nSize = nSize; } +static inline void Vec_IntFillTwo( Vec_Int_t * p, int nSize, int FillEven, int FillOdd ) +{ + int i; + Vec_IntGrow( p, nSize ); + for ( i = 0; i < nSize; i++ ) + p->pArray[i] = (i & 1) ? FillOdd : FillEven; + p->nSize = nSize; +} /**Function************************************************************* -- cgit v1.2.3