diff options
author | gatecat <gatecat@ds0.me> | 2021-06-02 12:09:40 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-06-02 15:05:20 +0100 |
commit | dcbb322447a7fb59cabe197ec1dd2307acfa3681 (patch) | |
tree | ada2c6a5d48e766fa523e633aaa28179baea3273 /mistral/archdefs.h | |
parent | 897e2c2fdc43bcf097aa8805c424c4443bcefad5 (diff) | |
download | nextpnr-dcbb322447a7fb59cabe197ec1dd2307acfa3681.tar.gz nextpnr-dcbb322447a7fb59cabe197ec1dd2307acfa3681.tar.bz2 nextpnr-dcbb322447a7fb59cabe197ec1dd2307acfa3681.zip |
Remove redundant code after hashlib move
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'mistral/archdefs.h')
-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 |