[buddy] use powers of two for the sizes of all hash tables
* src/bddop.c, src/bddx.h, src/cache.c, src/cache.h, src/kernel.c, src/kernel.h, src/prime.c, src/prime.h, src/reorder.c: Use power of two for the sizes of all hash tables, in order to reduce the amount of divisions performed. Also allow bddhash to be smaller than bddnodes.
This commit is contained in:
parent
98e7e4e49a
commit
361b44e571
9 changed files with 48 additions and 25 deletions
|
|
@ -261,13 +261,13 @@ static void bdd_operator_noderesize(void)
|
|||
if (cacheratio > 0)
|
||||
{
|
||||
int newcachesize = bddnodesize / cacheratio;
|
||||
|
||||
BddCache_resize(&applycache, newcachesize);
|
||||
BddCache_resize(&itecache, newcachesize);
|
||||
BddCache_resize(&quantcache, newcachesize);
|
||||
BddCache_resize(&appexcache, newcachesize);
|
||||
BddCache_resize(&replacecache, newcachesize);
|
||||
BddCache_resize(&misccache, newcachesize);
|
||||
bddcachesize = misccache.tablesize;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue