mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-07 02:26:26 +02:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user