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

added hashlib::mkhash_init

This commit is contained in:
Clifford Wolf 2014-12-30 18:51:24 +01:00
parent ba43cf5807
commit 0675098733
4 changed files with 8 additions and 5 deletions

View file

@ -463,7 +463,7 @@ struct RTLIL::Const
inline int size() const { return bits.size(); }
inline unsigned int hash() const {
unsigned int h = 5381;
unsigned int h = mkhash_init;
for (auto b : bits)
mkhash(h, b);
return h;