mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
hashlib: hash_eat -> hash_into
This commit is contained in:
parent
0a525f38c2
commit
b9b9515bb0
23 changed files with 95 additions and 95 deletions
|
@ -151,7 +151,7 @@ namespace Functional {
|
|||
// returns the data width of a bitvector sort, errors out for other sorts
|
||||
int data_width() const { return std::get<1>(_v).second; }
|
||||
bool operator==(Sort const& other) const { return _v == other._v; }
|
||||
Hasher hash_eat(Hasher h) const { h.eat(_v); return h; }
|
||||
Hasher hash_into(Hasher h) const { h.eat(_v); return h; }
|
||||
};
|
||||
class IR;
|
||||
class Factory;
|
||||
|
@ -225,7 +225,7 @@ namespace Functional {
|
|||
const RTLIL::Const &as_const() const { return std::get<RTLIL::Const>(_extra); }
|
||||
std::pair<IdString, IdString> as_idstring_pair() const { return std::get<std::pair<IdString, IdString>>(_extra); }
|
||||
int as_int() const { return std::get<int>(_extra); }
|
||||
Hasher hash_eat(Hasher h) const {
|
||||
Hasher hash_into(Hasher h) const {
|
||||
h.eat((unsigned int) _fn);
|
||||
h.eat(_extra);
|
||||
return h;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue