summaryrefslogtreecommitdiffstats
path: root/src/misc
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2018-12-09 15:18:12 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2018-12-09 15:18:12 -0800
commit36585eff57d16171bb4a53fdc6348613d44eabe6 (patch)
tree4c0368dc4b7022f5aa80282d3301b784465adbdb /src/misc
parentfe03f0423de9718b122d6200042ecb553520fb0f (diff)
downloadabc-36585eff57d16171bb4a53fdc6348613d44eabe6.tar.gz
abc-36585eff57d16171bb4a53fdc6348613d44eabe6.tar.bz2
abc-36585eff57d16171bb4a53fdc6348613d44eabe6.zip
Experiments with retiming (adding new APIs).
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/vec/vecInt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h
index a0527ab9..dd478a1c 100644
--- a/src/misc/vec/vecInt.h
+++ b/src/misc/vec/vecInt.h
@@ -327,6 +327,13 @@ static inline int * Vec_IntReleaseArray( Vec_Int_t * p )
p->pArray = NULL;
return pArray;
}
+static inline int * Vec_IntReleaseNewArray( Vec_Int_t * p )
+{
+ int * pArray = ABC_ALLOC( int, p->nSize+1 );
+ pArray[0] = p->nSize+1;
+ memcpy( pArray+1, p->pArray, sizeof(int)*p->nSize );
+ return pArray;
+}
/**Function*************************************************************