diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-10-25 19:31:29 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-10-25 19:31:29 +0100 |
commit | d014ba2d0e4cf0fadbb7a5712b69569a428acf8a (patch) | |
tree | cdcb1a99cf792cde7706c75adebe689c3f40942a /kernel | |
parent | 207736b4ee0363ff6714071e64024965916eafc2 (diff) | |
download | yosys-d014ba2d0e4cf0fadbb7a5712b69569a428acf8a.tar.gz yosys-d014ba2d0e4cf0fadbb7a5712b69569a428acf8a.tar.bz2 yosys-d014ba2d0e4cf0fadbb7a5712b69569a428acf8a.zip |
Major refactoring of equiv_struct
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/hashlib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 3cc95b6e4..4f5a353c5 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -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 = { |