mirror of https://github.com/YosysHQ/abc.git
Small fix for bins growth in sub-cube hashtable.
This commit is contained in:
parent
867c90d114
commit
e74f05d71e
|
|
@ -195,7 +195,8 @@ int Fxch_SCHashTableInsert( Fxch_SCHashTable_t* pSCHashTable,
|
|||
}
|
||||
else if ( pBin->Size == pBin->Cap )
|
||||
{
|
||||
pBin->Cap = 2 * pBin->Size;
|
||||
assert(pBin->Cap <= 0xAAAA);
|
||||
pBin->Cap = ( pBin->Cap >> 1 ) * 3;
|
||||
pBin->vSCData = ABC_REALLOC( Fxch_SubCube_t, pBin->vSCData, pBin->Cap );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue