summaryrefslogtreecommitdiff
path: root/src/util/hash_table.h
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>2018-09-11 16:37:33 -0700
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>2019-01-14 10:49:21 -0800
commitee23e8b17c77fa94320168427fb8a10a84b50e94 (patch)
treec216f0b3ac903d31ff930683dcf9060ac0cad4f5 /src/util/hash_table.h
parent929df7afafb546d8af538085ff165cc62fdcb813 (diff)
util: Helper to create sets and hashes with pointer keys
These combinations are common enough and deserve a shortcut. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Eric Engestrom <eric@engestrom.ch>
Diffstat (limited to 'src/util/hash_table.h')
-rw-r--r--src/util/hash_table.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h
index 40acda1fd1e..e451bd7c21b 100644
--- 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,
};