Skip to content

Commit

Permalink
hashlib: legacy mkhash_add -> djb2_add
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Nov 11, 2024
1 parent 4084d92 commit cf5585e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/hashlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const int hashtable_size_trigger = 2;
const int hashtable_size_factor = 3;

namespace legacy {
inline uint32_t mkhash_add(uint32_t a, uint32_t b) {
inline uint32_t djb2_add(uint32_t a, uint32_t b) {
return ((a << 5) + a) + b;
}
};
Expand Down
2 changes: 1 addition & 1 deletion kernel/rtlil.h
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ inline Hasher RTLIL::SigBit::hash_eat(Hasher h) const {
inline Hasher RTLIL::SigBit::hash_top() const {
Hasher h;
if (wire) {
h.force(hashlib::legacy::mkhash_add(wire->name.index_, offset));
h.force(hashlib::legacy::djb2_add(wire->name.index_, offset));
return h;
}
h.force(data);
Expand Down

0 comments on commit cf5585e

Please sign in to comment.