diff options
Diffstat (limited to 'mistral')
-rw-r--r-- | mistral/archdefs.h | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/mistral/archdefs.h b/mistral/archdefs.h index 71e14ec2..8b4256ab 100644 --- a/mistral/archdefs.h +++ b/mistral/archdefs.h @@ -20,8 +20,6 @@ #ifndef MISTRAL_ARCHDEFS_H #define MISTRAL_ARCHDEFS_H -#include <boost/functional/hash.hpp> - #include "base_clusterinfo.h" #include "cyclonev.h" @@ -30,6 +28,8 @@ #include "nextpnr_assertions.h" #include "nextpnr_namespaces.h" +#include <limits> + NEXTPNR_NAMESPACE_BEGIN using mistral::CycloneV; @@ -210,31 +210,4 @@ struct ArchCellInfo : BaseClusterInfo NEXTPNR_NAMESPACE_END -namespace std { -template <> struct hash<NEXTPNR_NAMESPACE_PREFIX BelId> -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX BelId &bel) const noexcept - { - return hash<uint32_t>()((static_cast<uint32_t>(bel.pos) << 16) | bel.z); - } -}; - -template <> struct hash<NEXTPNR_NAMESPACE_PREFIX WireId> -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX WireId &wire) const noexcept - { - return hash<uint32_t>()(wire.node); - } -}; - -template <> struct hash<NEXTPNR_NAMESPACE_PREFIX PipId> -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX PipId &pip) const noexcept - { - return hash<uint64_t>()((uint64_t(pip.dst) << 32) | pip.src); - } -}; - -} // namespace std - #endif |