hash: add hash_short macro, state_s: add prev and move

This commit is contained in:
2024-06-27 08:36:08 +02:00
parent ffd5d056cc
commit 46aed01079
3 changed files with 15 additions and 15 deletions

View File

@@ -30,6 +30,11 @@
typedef u64 hkey_t; /* cannot use typedef for key_t */
/**
* hash_short: return the value of a hash first 7 MSB.
*/
#define hash_short(hash) ((hash) >> (64 - 8))
/**
* hentry_t: hashtable bucket.
*