AK: Provide a ptr_hash(const void*) overload

This commit is contained in:
Andreas Kling 2020-02-25 15:37:07 +01:00
parent 61340c12d6
commit 00e744c263
Notes: sideshowbarker 2024-07-19 09:04:13 +09:00

View file

@ -58,3 +58,8 @@ inline unsigned ptr_hash(uintptr_t ptr)
else
return int_hash((u32)ptr);
}
inline unsigned ptr_hash(const void* ptr)
{
return ptr_hash((uintptr_t)(ptr));
}