diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2020-03-05 14:33:02 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2020-03-05 14:33:02 -0800 |
commit | 7efe9c1d65cfd7f4e78defd7db1f3e75c1f97b1c (patch) | |
tree | 6b7e906f02595dbc668a4774abb7804d7cce9afa /src/misc/util | |
parent | 4359311d448d47bfd9ef861ada46d9267a888ae2 (diff) | |
download | abc-7efe9c1d65cfd7f4e78defd7db1f3e75c1f97b1c.tar.gz abc-7efe9c1d65cfd7f4e78defd7db1f3e75c1f97b1c.tar.bz2 abc-7efe9c1d65cfd7f4e78defd7db1f3e75c1f97b1c.zip |
Updating and extending simulation data structures.
Diffstat (limited to 'src/misc/util')
-rw-r--r-- | src/misc/util/utilTruth.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/misc/util/utilTruth.h b/src/misc/util/utilTruth.h index 10196959..d913eda7 100644 --- a/src/misc/util/utilTruth.h +++ b/src/misc/util/utilTruth.h @@ -1835,6 +1835,13 @@ static inline int Abc_TtCountOnesVecMask( word * x, word * pMask, int nWords, in Count += Abc_TtCountOnes( pMask[w] & x[w] ); return Count; } +static inline int Abc_TtCountOnesVecXor( word * x, word * y, int nWords ) +{ + int w, Count = 0; + for ( w = 0; w < nWords; w++ ) + Count += Abc_TtCountOnes( x[w] ^ y[w] ); + return Count; +} /**Function************************************************************* |