util: introduce two trivial hash_ops

Will be used in a later commit.
This commit is contained in:
Yu Watanabe
2020-10-13 22:40:22 +09:00
parent 11e9fec259
commit 5e71868ced
2 changed files with 15 additions and 0 deletions
+2
View File
@@ -88,6 +88,8 @@ extern const struct hash_ops path_hash_ops_free;
void trivial_hash_func(const void *p, struct siphash *state);
int trivial_compare_func(const void *a, const void *b) _const_;
extern const struct hash_ops trivial_hash_ops;
extern const struct hash_ops trivial_hash_ops_free;
extern const struct hash_ops trivial_hash_ops_free_free;
/* 32bit values we can always just embed in the pointer itself, but in order to support 32bit archs we need store 64bit
* values indirectly, since they don't fit in a pointer. */