diff options
author | Yen-Sheng Ho <ysho@berkeley.edu> | 2017-04-06 14:18:50 -0700 |
---|---|---|
committer | Yen-Sheng Ho <ysho@berkeley.edu> | 2017-04-06 14:18:50 -0700 |
commit | 72c23923da38d9e06b4a57816704fe1c0d37a2c4 (patch) | |
tree | 241b6111a7c72d18db73c58c7028da5c8b94802e /src/misc | |
parent | 2761e5e35bdcb8591ccc445b907af95bd0b16357 (diff) | |
parent | efe5d1476af9e99c7a246d6d4de91abbc4274359 (diff) | |
download | abc-72c23923da38d9e06b4a57816704fe1c0d37a2c4.tar.gz abc-72c23923da38d9e06b4a57816704fe1c0d37a2c4.tar.bz2 abc-72c23923da38d9e06b4a57816704fe1c0d37a2c4.zip |
merge
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/vec/vecHsh.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/misc/vec/vecHsh.h b/src/misc/vec/vecHsh.h index 52289231..de9a038a 100644 --- a/src/misc/vec/vecHsh.h +++ b/src/misc/vec/vecHsh.h @@ -124,6 +124,10 @@ static inline void Hsh_IntManStop( Hsh_IntMan_t * p ) Vec_WrdFree( p->vObjs ); ABC_FREE( p ); } +static inline int Hsh_IntManEntryNum( Hsh_IntMan_t * p ) +{ + return Vec_WrdSize(p->vObjs); +} /**Function************************************************************* @@ -164,7 +168,7 @@ static inline int Hsh_IntManAdd( Hsh_IntMan_t * p, int iData ) Vec_IntFill( p->vTable, Abc_PrimeCudd(2*Vec_IntSize(p->vTable)), -1 ); for ( i = 0; i < Vec_WrdSize(p->vObjs); i++ ) { - pPlace = Vec_IntEntryP( p->vTable, Hsh_IntManHash(Hsh_IntData(p, i), p->nSize, Vec_IntSize(p->vTable)) ); + pPlace = Vec_IntEntryP( p->vTable, Hsh_IntManHash(Hsh_IntData(p, Hsh_IntObj(p, i)->iData), p->nSize, Vec_IntSize(p->vTable)) ); Hsh_IntObj(p, i)->iNext = *pPlace; *pPlace = i; } } |