mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 22:23:23 +00:00
hashlib: acc -> eat
This commit is contained in:
parent
79acc141d5
commit
4e29ec1854
25 changed files with 200 additions and 200 deletions
|
@ -29,9 +29,9 @@ struct SigPool
|
|||
struct bitDef_t : public std::pair<RTLIL::Wire*, int> {
|
||||
bitDef_t() : std::pair<RTLIL::Wire*, int>(NULL, 0) { }
|
||||
bitDef_t(const RTLIL::SigBit &bit) : std::pair<RTLIL::Wire*, int>(bit.wire, bit.offset) { }
|
||||
Hasher hash_acc(Hasher h) const {
|
||||
h.acc(first->name);
|
||||
h.acc(second);
|
||||
Hasher hash_eat(Hasher h) const {
|
||||
h.eat(first->name);
|
||||
h.eat(second);
|
||||
return h;
|
||||
}
|
||||
};
|
||||
|
@ -147,9 +147,9 @@ struct SigSet
|
|||
struct bitDef_t : public std::pair<RTLIL::Wire*, int> {
|
||||
bitDef_t() : std::pair<RTLIL::Wire*, int>(NULL, 0) { }
|
||||
bitDef_t(const RTLIL::SigBit &bit) : std::pair<RTLIL::Wire*, int>(bit.wire, bit.offset) { }
|
||||
Hasher hash_acc(Hasher h) const {
|
||||
h.acc(first->name);
|
||||
h.acc(second);
|
||||
Hasher hash_eat(Hasher h) const {
|
||||
h.eat(first->name);
|
||||
h.eat(second);
|
||||
return h;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue