diff options
author | Ruben Undheim <ruben.undheim@gmail.com> | 2018-12-03 20:32:04 +0000 |
---|---|---|
committer | Ruben Undheim <ruben.undheim@gmail.com> | 2018-12-03 20:32:04 +0000 |
commit | 5988cc4cd054db6172af8ea51bf0855777f0d44a (patch) | |
tree | bccd7d3893664755b08bae56114024d02dd8c2f2 /src/misc/vec/vecMem.h | |
parent | bfa5c2f2e843651f29c8c0da0fa1113c99cfc469 (diff) |
New upstream version 1.01+20181130git163bba5+dfsg
Diffstat (limited to 'src/misc/vec/vecMem.h')
-rw-r--r-- | src/misc/vec/vecMem.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/misc/vec/vecMem.h b/src/misc/vec/vecMem.h index 72b653b..c2bd06f 100644 --- a/src/misc/vec/vecMem.h +++ b/src/misc/vec/vecMem.h @@ -341,10 +341,24 @@ static int * Vec_MemHashLookup( Vec_Mem_t * p, word * pEntry ) return pSpot; return pSpot; } +static void Vec_MemHashProfile( Vec_Mem_t * p ) +{ + int e; + for ( e = 0; e < 1000; e++ ) + { + int Count = 0; + int * pSpot = Vec_IntEntryP( p->vTable, e ); + for ( ; *pSpot != -1; pSpot = Vec_IntEntryP(p->vNexts, *pSpot) ) + Count++; + printf( "%d ", Count ); + } + printf( "\n" ); +} static void Vec_MemHashResize( Vec_Mem_t * p ) { word * pEntry; int i, * pSpot; + //Vec_MemHashProfile( p ); Vec_IntFill( p->vTable, Abc_PrimeCudd(2 * Vec_IntSize(p->vTable)), -1 ); Vec_IntClear( p->vNexts ); Vec_MemForEachEntry( p, pEntry, i ) |