From 0dafe06cd48a6ec20a2bd26db49cf6ddceb00d1f Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Wed, 6 Nov 2024 17:44:15 +0100 Subject: [PATCH] hashlib: run_hash uses hash_top_ops, not hash_ops --- kernel/hashlib.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/kernel/hashlib.h b/kernel/hashlib.h index f1d871632..b185eeed4 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -278,18 +278,9 @@ struct hash_obj_ops { template [[nodiscard]] Hasher::hash_t run_hash(const T& obj) { - Hasher h; - h.acc(obj); - return h.yield(); + return hash_top_ops::hash(obj).yield(); } -// #ifdef OTHER_HASH... - -// [[deprecated]] -// inline unsigned int mkhash_add(unsigned int a, unsigned int b) { -// return mkhash(a, b); -// } - template<> struct hash_ops { static inline bool cmp(std::monostate a, std::monostate b) { return a == b;