3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-06 03:10:26 +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

@ -46,10 +46,10 @@ struct IdBit {
bool operator==(const IdBit &other) const { return name == other.name && bit == other.bit; };
bool operator!=(const IdBit &other) const { return name != other.name || bit != other.bit; };
Hasher hash_acc(Hasher h) const
Hasher hash_eat(Hasher h) const
{
h.acc(name);
h.acc(bit);
h.eat(name);
h.eat(bit);
return h;
}
@ -64,10 +64,10 @@ struct InvBit {
bool operator==(const InvBit &other) const { return bit == other.bit && inverted == other.inverted; };
bool operator!=(const InvBit &other) const { return bit != other.bit || inverted != other.inverted; };
Hasher hash_acc(Hasher h) const
Hasher hash_eat(Hasher h) const
{
h.acc(bit);
h.acc(inverted);
h.eat(bit);
h.eat(inverted);
return h;
}