diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-09-29 11:57:25 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-09-29 11:57:25 -0700 |
commit | 1f16b97c89dc85ff088831c077199993251d83ff (patch) | |
tree | 3c22a6ad0215c251389ce0b19a7fa7590840dc93 /src/misc | |
parent | 738619980a251676ef7f6e9198cc1df15df2f6df (diff) | |
download | abc-1f16b97c89dc85ff088831c077199993251d83ff.tar.gz abc-1f16b97c89dc85ff088831c077199993251d83ff.tar.bz2 abc-1f16b97c89dc85ff088831c077199993251d83ff.zip |
Changing default values.
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/vec/vecHash.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/misc/vec/vecHash.h b/src/misc/vec/vecHash.h index e695f154..cdccb308 100644 --- a/src/misc/vec/vecHash.h +++ b/src/misc/vec/vecHash.h @@ -102,6 +102,19 @@ static inline int Hash_IntManEntryNum( Hash_IntMan_t * p ) { return Vec_IntSize(p->vObjs)/4 - 1; } +static inline void Hash_IntManProfile( Hash_IntMan_t * p ) +{ + Hash_IntObj_t * pObj; + int i, Count, Entry; + Vec_IntForEachEntry( p->vTable, Entry, i ) + { + Count = 0; + for ( pObj = Hash_IntObj( p, Entry ); pObj; pObj = Hash_IntObj( p, pObj->iNext ) ) + Count++; + printf( "%d ", Count ); + } + printf( "\n" ); +} /**Function************************************************************* |