From e34251060e67d6d051f5a8948d12e6afaaf586c6 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Mon, 30 Sep 2013 11:43:17 -0700 Subject: Changing default values. --- src/misc/vec/vecInt.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/misc') diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index 2cba9f14..5456dc0b 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -464,6 +464,23 @@ static inline int Vec_IntAddToEntry( Vec_Int_t * p, int i, int Addition ) return p->pArray[i] += Addition; } +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline void Vec_IntUpdateEntry( Vec_Int_t * p, int i, int Value ) +{ + if ( Vec_IntEntry( p, i ) < Value ) + Vec_IntWriteEntry( p, i, Value ); +} + /**Function************************************************************* Synopsis [] -- cgit v1.2.3