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:
parent
ba43cf5807
commit
0675098733
4 changed files with 8 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue