3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Major refactoring of equiv_struct

This commit is contained in:
Clifford Wolf 2015-10-25 19:31:29 +01:00
parent 207736b4ee
commit d014ba2d0e
2 changed files with 176 additions and 99 deletions

View file

@ -162,6 +162,11 @@ struct hash_obj_ops {
}
};
template<typename T>
inline unsigned int mkhash(const T &v) {
return hash_ops<T>().hash(v);
}
inline int hashtable_size(int min_size)
{
static std::vector<int> zero_and_some_primes = {