summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecPtr.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2016-04-09 17:00:46 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2016-04-09 17:00:46 -0700
commitd0a0cf63951e24a6d979af65c58d564254caec70 (patch)
tree188a285b131308422bb081f88293551dff2181c5 /src/misc/vec/vecPtr.h
parent8b07237bf5041bf6a09fdeabb52bbf2745c027bf (diff)
downloadabc-d0a0cf63951e24a6d979af65c58d564254caec70.tar.gz
abc-d0a0cf63951e24a6d979af65c58d564254caec70.tar.bz2
abc-d0a0cf63951e24a6d979af65c58d564254caec70.zip
Command &esop to convert AIG into ESOP.
Diffstat (limited to 'src/misc/vec/vecPtr.h')
-rw-r--r--src/misc/vec/vecPtr.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/misc/vec/vecPtr.h b/src/misc/vec/vecPtr.h
index f40a7807..5b40665f 100644
--- a/src/misc/vec/vecPtr.h
+++ b/src/misc/vec/vecPtr.h
@@ -770,6 +770,26 @@ static inline void Vec_PtrRemove( Vec_Ptr_t * p, void * Entry )
/**Function*************************************************************
+ Synopsis []
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
+static inline void Vec_PtrDrop( Vec_Ptr_t * p, int i )
+{
+ int k;
+ assert( i >= 0 && i < Vec_PtrSize(p) );
+ p->nSize--;
+ for ( k = i; k < p->nSize; k++ )
+ p->pArray[k] = p->pArray[k+1];
+}
+
+/**Function*************************************************************
+
Synopsis [Interts entry at the index iHere. Shifts other entries.]
Description []