summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecInt.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-03-09 12:19:11 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2013-03-09 12:19:11 -0800
commiteee8ceb0fac197365c27660ab393ba13da5915c2 (patch)
tree64929de057598a003653d613f51386b33d5ac7a6 /src/misc/vec/vecInt.h
parentae091e695e50f0fa92d7e1e9484baf086e06a5a5 (diff)
downloadabc-eee8ceb0fac197365c27660ab393ba13da5915c2.tar.gz
abc-eee8ceb0fac197365c27660ab393ba13da5915c2.tar.bz2
abc-eee8ceb0fac197365c27660ab393ba13da5915c2.zip
PO partitioning algorithm.
Diffstat (limited to 'src/misc/vec/vecInt.h')
-rw-r--r--src/misc/vec/vecInt.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h
index 7ba75c46..9744a031 100644
--- a/src/misc/vec/vecInt.h
+++ b/src/misc/vec/vecInt.h
@@ -114,18 +114,6 @@ static inline Vec_Int_t * Vec_IntStart( int nSize )
memset( p->pArray, 0, sizeof(int) * nSize );
return p;
}
-
-/**Function*************************************************************
-
- Synopsis [Allocates a vector with the given size and cleans it.]
-
- Description []
-
- SideEffects []
-
- SeeAlso []
-
-***********************************************************************/
static inline Vec_Int_t * Vec_IntStartFull( int nSize )
{
Vec_Int_t * p;
@@ -134,6 +122,16 @@ static inline Vec_Int_t * Vec_IntStartFull( int nSize )
memset( p->pArray, 0xff, sizeof(int) * nSize );
return p;
}
+static inline Vec_Int_t * Vec_IntStartRange( int First, int Range )
+{
+ Vec_Int_t * p;
+ int i;
+ p = Vec_IntAlloc( Range );
+ p->nSize = Range;
+ for ( i = 0; i < Range; i++ )
+ p->pArray[i] = First + i;
+ return p;
+}
/**Function*************************************************************