From ef55bbc8e619f6ecca808695a772223c696612cc Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 17 Jul 2014 15:38:12 -0700 Subject: Small changes in several packages. --- src/misc/vec/vecMem.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/misc/vec/vecMem.h') diff --git a/src/misc/vec/vecMem.h b/src/misc/vec/vecMem.h index 716d939f..c4868807 100644 --- a/src/misc/vec/vecMem.h +++ b/src/misc/vec/vecMem.h @@ -391,6 +391,14 @@ static inline Vec_Mem_t * Vec_MemAllocForTT( int nVars, int fCompl ) ABC_FREE( uTruth ); return vTtMem; } +static inline void Vec_MemAddMuxTT( Vec_Mem_t * p, int nVars ) +{ + int Value, nWords = (nVars <= 6 ? 1 : (1 << (nVars - 6))); + word * uTruth = ABC_ALLOC( word, nWords ); + memset( uTruth, 0xCA, sizeof(word) * nWords ); + Value = Vec_MemHashInsert( p, uTruth ); assert( Value == 2 ); + ABC_FREE( uTruth ); +} static inline void Vec_MemDumpTruthTables( Vec_Mem_t * p, char * pName, int nLutSize ) { FILE * pFile; -- cgit v1.2.3