rm hashPtr
Signed-off-by: James Cherry <cherry@CerezoBook.local>
This commit is contained in:
parent
8f5b481495
commit
ffd54f38b1
|
|
@ -25,7 +25,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <string_view>
|
||||
|
||||
namespace sta {
|
||||
|
|
@ -59,12 +58,4 @@ nextMersenne(size_t n)
|
|||
size_t
|
||||
hashString(std::string_view str);
|
||||
|
||||
// Pointer hashing is strongly discouraged because it causes results to change
|
||||
// from run to run. Use Network::id functions instead.
|
||||
#if __WORDSIZE == 64
|
||||
#define hashPtr(ptr) (reinterpret_cast<intptr_t>(ptr) >> 3)
|
||||
#else
|
||||
#define hashPtr(ptr) (reinterpret_cast<intptr_t>(ptr) >> 2)
|
||||
#endif
|
||||
|
||||
} // namespace sta
|
||||
|
|
|
|||
Loading…
Reference in New Issue