diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-03-18 19:39:22 +0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-03-18 19:39:22 +0700 |
commit | c602cbe33849e9365a3b8e3f13a13e696aa7b9ec (patch) | |
tree | e9b756ac631766e6e7c85dd7e2eb383c087e748c /src/misc/vec | |
parent | fb5d4a664dc3790e98036a94734a33a848fd3666 (diff) | |
download | abc-c602cbe33849e9365a3b8e3f13a13e696aa7b9ec.tar.gz abc-c602cbe33849e9365a3b8e3f13a13e696aa7b9ec.tar.bz2 abc-c602cbe33849e9365a3b8e3f13a13e696aa7b9ec.zip |
Scalable SOP manipulation package.
Diffstat (limited to 'src/misc/vec')
-rw-r--r-- | src/misc/vec/vecInt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index b1aa556b..6d3ea8f6 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -573,6 +573,14 @@ static inline void Vec_IntFillTwo( Vec_Int_t * p, int nSize, int FillEven, int F p->pArray[i] = (i & 1) ? FillOdd : FillEven; p->nSize = nSize; } +static inline void Vec_IntFillNatural( Vec_Int_t * p, int nSize ) +{ + int i; + Vec_IntGrow( p, nSize ); + for ( i = 0; i < nSize; i++ ) + p->pArray[i] = i; + p->nSize = nSize; +} /**Function************************************************************* |