From 91effd8148493c3837513c9256eefdf488dd9b97 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Mon, 22 Sep 2008 08:01:00 -0700 Subject: Version abc80922 --- src/misc/vec/vecInt.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/misc/vec/vecInt.h') diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index f20c7cc8..437b4d8e 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -413,6 +413,25 @@ static inline void Vec_IntFillExtra( Vec_Int_t * p, int nSize, int Entry ) p->nSize = nSize; } +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline void Vec_IntWriteEntryFill( Vec_Int_t * p, int i, int Entry ) +{ + assert( i >= 0 ); + if ( i >= p->nSize ) + Vec_IntFillExtra( p, 2 * i, 0 ); + Vec_IntWriteEntry( p, i, Entry ); +} + /**Function************************************************************* Synopsis [] -- cgit v1.2.3