3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-24 13:18:56 +00:00

hashlib: acc -> eat

This commit is contained in:
Emil J. Tywoniak 2024-11-11 15:45:11 +01:00
parent 79acc141d5
commit 4e29ec1854
25 changed files with 200 additions and 200 deletions

View file

@ -39,13 +39,13 @@ bool AigNode::operator==(const AigNode &other) const
return true;
}
Hasher AigNode::hash_acc(Hasher h) const
Hasher AigNode::hash_eat(Hasher h) const
{
h.acc(portname);
h.acc(portbit);
h.acc(inverter);
h.acc(left_parent);
h.acc(right_parent);
h.eat(portname);
h.eat(portbit);
h.eat(inverter);
h.eat(left_parent);
h.eat(right_parent);
return h;
}
@ -54,9 +54,9 @@ bool Aig::operator==(const Aig &other) const
return name == other.name;
}
Hasher Aig::hash_acc(Hasher h) const
Hasher Aig::hash_eat(Hasher h) const
{
h.acc(name);
h.eat(name);
return h;
}