summaryrefslogtreecommitdiffstats
path: root/src/misc/vec
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-09-30 11:43:17 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-09-30 11:43:17 -0700
commite34251060e67d6d051f5a8948d12e6afaaf586c6 (patch)
treeec5793f35d6ee595178eeb64c559de50424a5ce8 /src/misc/vec
parentc49739c36a24b350d85406d0176488ed65641a43 (diff)
downloadabc-e34251060e67d6d051f5a8948d12e6afaaf586c6.tar.gz
abc-e34251060e67d6d051f5a8948d12e6afaaf586c6.tar.bz2
abc-e34251060e67d6d051f5a8948d12e6afaaf586c6.zip
Changing default values.
Diffstat (limited to 'src/misc/vec')
-rw-r--r--src/misc/vec/vecInt.h17
1 files changed, 17 insertions, 0 deletions
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
@@ -475,6 +475,23 @@ static inline int Vec_IntAddToEntry( Vec_Int_t * p, int i, int Addition )
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 []
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
static inline int Vec_IntEntryLast( Vec_Int_t * p )
{
assert( p->nSize > 0 );