rm hashPtr

Signed-off-by: James Cherry <[email protected]>
This commit is contained in:
James Cherry
2026-05-27 10:44:55 -07:00
parent 8f5b481495
commit ffd54f38b1
-9
View File
@@ -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