summaryrefslogtreecommitdiffstats
path: root/src/misc/vec
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2019-09-26 14:05:16 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2019-09-26 14:05:16 -0700
commitb292595062b947bc0c1de79fe25facb34c0e20c1 (patch)
tree46442f4d5924d4ba962492ee2fcfedb16d1a6e2e /src/misc/vec
parentdf2bce1e40bcc14710cc8e019b0ab5a01176c54f (diff)
downloadabc-b292595062b947bc0c1de79fe25facb34c0e20c1.tar.gz
abc-b292595062b947bc0c1de79fe25facb34c0e20c1.tar.bz2
abc-b292595062b947bc0c1de79fe25facb34c0e20c1.zip
Adding switch to &if to consider special type of 6-input cuts.
Diffstat (limited to 'src/misc/vec')
-rw-r--r--src/misc/vec/vecMem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/misc/vec/vecMem.h b/src/misc/vec/vecMem.h
index ef2d2af7..e8ddd44a 100644
--- a/src/misc/vec/vecMem.h
+++ b/src/misc/vec/vecMem.h
@@ -397,6 +397,13 @@ static int Vec_MemHashInsert( Vec_Mem_t * p, word * pEntry )
SeeAlso []
***********************************************************************/
+static inline Vec_Mem_t * Vec_MemAllocForTTSimple( int nVars )
+{
+ int nWords = (nVars <= 6 ? 1 : (1 << (nVars - 6)));
+ Vec_Mem_t * vTtMem = Vec_MemAlloc( nWords, 12 );
+ Vec_MemHashAlloc( vTtMem, 10000 );
+ return vTtMem;
+}
static inline Vec_Mem_t * Vec_MemAllocForTT( int nVars, int fCompl )
{
int Value, nWords = (nVars <= 6 ? 1 : (1 << (nVars - 6)));