mirror of
https://github.com/odin-lang/Odin.git
synced 2026-03-01 14:18:19 +00:00
Increase usage of PtrMap
This commit is contained in:
@@ -18,8 +18,12 @@ struct PtrMap {
|
||||
};
|
||||
|
||||
|
||||
template <typename K>
|
||||
u32 ptr_map_hash_key(K key) {
|
||||
u32 ptr_map_hash_key(void const *key) {
|
||||
// TODO(bill): Improve ptr_map_hash_key
|
||||
return gb_fnv32a(&key, gb_size_of(key));
|
||||
}
|
||||
u32 ptr_map_hash_key(uintptr key) {
|
||||
// TODO(bill): Improve ptr_map_hash_key
|
||||
return gb_fnv32a(&key, gb_size_of(key));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user