summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecInt.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2011-09-22 09:37:44 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2011-09-22 09:37:44 -0700
commit8f74276edbe2cf8d62485ab6bd08c68198a1f0e8 (patch)
tree1418f220748141519e92556fdff6d5d684903f75 /src/misc/vec/vecInt.h
parent81b040e61c80e7a2d977b5fcf6266ec3460e395c (diff)
downloadabc-8f74276edbe2cf8d62485ab6bd08c68198a1f0e8.tar.gz
abc-8f74276edbe2cf8d62485ab6bd08c68198a1f0e8.tar.bz2
abc-8f74276edbe2cf8d62485ab6bd08c68198a1f0e8.zip
Initial changes to enable gate-level abstraction.
Diffstat (limited to 'src/misc/vec/vecInt.h')
-rw-r--r--src/misc/vec/vecInt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h
index 04f41b5b..545cf8a6 100644
--- a/src/misc/vec/vecInt.h
+++ b/src/misc/vec/vecInt.h
@@ -917,11 +917,11 @@ static inline int Vec_IntSum( Vec_Int_t * p )
SeeAlso []
***********************************************************************/
-static inline int Vec_IntCountZero( Vec_Int_t * p )
+static inline int Vec_IntCountEntry( Vec_Int_t * p, int Entry )
{
int i, Counter = 0;
for ( i = 0; i < p->nSize; i++ )
- Counter += (p->pArray[i] == 0);
+ Counter += (p->pArray[i] == Entry);
return Counter;
}