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 /common/base_arch.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 'common/base_arch.h')
-rw-r--r-- | common/base_arch.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/base_arch.h b/common/base_arch.h index c7d9f380..457e6582 100644 --- a/common/base_arch.h +++ b/common/base_arch.h @@ -148,7 +148,7 @@ template <typename R> struct BaseArch : ArchAPI<R> virtual char getNameDelimiter() const override { return ' '; } // Bel methods - virtual uint32_t getBelChecksum(BelId bel) const override { return uint32_t(std::hash<BelId>()(bel)); } + virtual uint32_t getBelChecksum(BelId bel) const override { return bel.hash(); } virtual void bindBel(BelId bel, CellInfo *cell, PlaceStrength strength) override { NPNR_ASSERT(bel != BelId()); @@ -196,7 +196,7 @@ template <typename R> struct BaseArch : ArchAPI<R> { return empty_if_possible<typename R::WireAttrsRangeT>(); } - virtual uint32_t getWireChecksum(WireId wire) const override { return uint32_t(std::hash<WireId>()(wire)); } + virtual uint32_t getWireChecksum(WireId wire) const override { return wire.hash(); } virtual void bindWire(WireId wire, NetInfo *net, PlaceStrength strength) override { @@ -244,7 +244,7 @@ template <typename R> struct BaseArch : ArchAPI<R> { return empty_if_possible<typename R::PipAttrsRangeT>(); } - virtual uint32_t getPipChecksum(PipId pip) const override { return uint32_t(std::hash<PipId>()(pip)); } + virtual uint32_t getPipChecksum(PipId pip) const override { return pip.hash(); } virtual void bindPip(PipId pip, NetInfo *net, PlaceStrength strength) override { NPNR_ASSERT(pip != PipId()); |