diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2008-09-22 08:01:00 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2008-09-22 08:01:00 -0700 |
commit | 91effd8148493c3837513c9256eefdf488dd9b97 (patch) | |
tree | 9e13b730d414ae4797c7267ae92130e68d43137d /src/misc/vec | |
parent | 23c428ea097288df17fe3d008885690d9730f303 (diff) | |
download | abc-91effd8148493c3837513c9256eefdf488dd9b97.tar.gz abc-91effd8148493c3837513c9256eefdf488dd9b97.tar.bz2 abc-91effd8148493c3837513c9256eefdf488dd9b97.zip |
Version abc80922
Diffstat (limited to 'src/misc/vec')
-rw-r--r-- | src/misc/vec/vecInt.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 @@ -424,6 +424,25 @@ static inline void Vec_IntFillExtra( Vec_Int_t * p, int nSize, int Entry ) 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 [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ static inline void Vec_IntShrink( Vec_Int_t * p, int nSizeNew ) { assert( p->nSize >= nSizeNew ); |