mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 05:08:56 +00:00
hashlib: acc -> eat
This commit is contained in:
parent
79acc141d5
commit
4e29ec1854
25 changed files with 200 additions and 200 deletions
|
@ -233,9 +233,9 @@ struct ClockgatePass : public Pass {
|
|||
SigBit ce_bit;
|
||||
bool pol_clk;
|
||||
bool pol_ce;
|
||||
Hasher hash_acc(Hasher h) const {
|
||||
Hasher hash_eat(Hasher h) const {
|
||||
auto t = std::make_tuple(clk_bit, ce_bit, pol_clk, pol_ce);
|
||||
h.acc(t);
|
||||
h.eat(t);
|
||||
return h;
|
||||
}
|
||||
bool operator==(const ClkNetInfo& other) const {
|
||||
|
|
|
@ -250,10 +250,10 @@ struct FlowGraph
|
|||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
Hasher hash_acc(Hasher h) const
|
||||
Hasher hash_eat(Hasher h) const
|
||||
{
|
||||
std::pair<RTLIL::SigBit, int> p = {node, is_bottom};
|
||||
h.acc(p);
|
||||
h.eat(p);
|
||||
return h;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue