diff options
Diffstat (limited to 'nexus')
-rw-r--r-- | nexus/archdefs.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/nexus/archdefs.h b/nexus/archdefs.h index 76ba605b..f2b5a45d 100644 --- a/nexus/archdefs.h +++ b/nexus/archdefs.h @@ -20,8 +20,6 @@ #ifndef NEXUS_ARCHDEFS_H #define NEXUS_ARCHDEFS_H -#include <boost/functional/hash.hpp> - #include "base_clusterinfo.h" #include "hashlib.h" #include "idstring.h" @@ -188,63 +186,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 - { - std::size_t seed = 0; - boost::hash_combine(seed, hash<int>()(bel.tile)); - boost::hash_combine(seed, hash<int>()(bel.index)); - return seed; - } -}; - -template <> struct hash<NEXTPNR_NAMESPACE_PREFIX WireId> -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX WireId &wire) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash<int>()(wire.tile)); - boost::hash_combine(seed, hash<int>()(wire.index)); - return seed; - } -}; - -template <> struct hash<NEXTPNR_NAMESPACE_PREFIX PipId> -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX PipId &pip) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash<int>()(pip.tile)); - boost::hash_combine(seed, hash<int>()(pip.index)); - return seed; - } -}; - -template <> struct hash<NEXTPNR_NAMESPACE_PREFIX GroupId> -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX GroupId &group) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash<int>()(group.type)); - boost::hash_combine(seed, hash<int>()(group.x)); - boost::hash_combine(seed, hash<int>()(group.y)); - return seed; - } -}; - -template <> struct hash<NEXTPNR_NAMESPACE_PREFIX DecalId> -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX DecalId &decal) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash<int>()(decal.type)); - boost::hash_combine(seed, hash<int>()(decal.index)); - return seed; - } -}; - -} // namespace std - #endif /* NEXUS_ARCHDEFS_H */ |