diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-09-16 11:56:40 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-09-16 11:56:40 -0700 |
commit | 1d5cb52e4ab8649c7f02bddea086bbf57c9d3c20 (patch) | |
tree | 4ecce5c18aa6b37a4d5fa423a1c9a47ac3a321e2 /src/misc/util | |
parent | 61e58b2d56245ec74d968d181d2535ad2029d71d (diff) | |
download | abc-1d5cb52e4ab8649c7f02bddea086bbf57c9d3c20.tar.gz abc-1d5cb52e4ab8649c7f02bddea086bbf57c9d3c20.tar.bz2 abc-1d5cb52e4ab8649c7f02bddea086bbf57c9d3c20.zip |
Improvements to Boolean matching.
Diffstat (limited to 'src/misc/util')
-rw-r--r-- | src/misc/util/utilTruth.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/misc/util/utilTruth.h b/src/misc/util/utilTruth.h index 8468ffcc..98883748 100644 --- a/src/misc/util/utilTruth.h +++ b/src/misc/util/utilTruth.h @@ -341,6 +341,20 @@ static inline void Abc_TtElemInit( word ** pTtElems, int nVars ) for ( k = 0; k < nWords; k++ ) pTtElems[i][k] = (k & (1 << (i-6))) ? ~(word)0 : 0; } +static inline void Abc_TtElemInit2( word * pTtElems, int nVars ) +{ + int i, k, nWords = Abc_TtWordNum( nVars ); + for ( i = 0; i < nVars; i++ ) + { + word * pTruth = pTtElems + i * nWords; + if ( i < 6 ) + for ( k = 0; k < nWords; k++ ) + pTruth[k] = s_Truths6[i]; + else + for ( k = 0; k < nWords; k++ ) + pTruth[k] = (k & (1 << (i-6))) ? ~(word)0 : 0; + } +} /**Function************************************************************* |