projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: Helper to create sets and hashes with pointer keys
[mesa.git]
/
src
/
util
/
hash_table.h
diff --git
a/src/util/hash_table.h
b/src/util/hash_table.h
index 40acda1fd1ea72047b010df000af2cca2077dae9..e451bd7c21beb297bcec9582d5ce41ea87ba61f3 100644
(file)
--- a/
src/util/hash_table.h
+++ b/
src/util/hash_table.h
@@
-121,6
+121,9
@@
static inline uint32_t _mesa_hash_pointer(const void *pointer)
return (uint32_t) ((num >> 2) ^ (num >> 6) ^ (num >> 10) ^ (num >> 14));
}
+struct hash_table *
+_mesa_pointer_hash_table_create(void *mem_ctx);
+
enum {
_mesa_fnv32_1a_offset_bias = 2166136261u,
};