From 1d5cb52e4ab8649c7f02bddea086bbf57c9d3c20 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 16 Sep 2014 11:56:40 -0700 Subject: Improvements to Boolean matching. --- src/misc/util/utilTruth.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/misc/util/utilTruth.h') 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************************************************************* -- cgit v1.2.3