aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r--common/nextpnr.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index 2f3b5b14..5b1a6a4f 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -67,15 +67,9 @@ struct IdString
bool operator<(const IdString &other) const { return index < other.index; }
- bool operator==(const IdString &other) const
- {
- return index == other.index;
- }
+ bool operator==(const IdString &other) const { return index == other.index; }
- bool operator!=(const IdString &other) const
- {
- return index != other.index;
- }
+ bool operator!=(const IdString &other) const { return index != other.index; }
bool empty() const { return index == 0; }
@@ -93,8 +87,7 @@ NEXTPNR_NAMESPACE_END
namespace std {
template <> struct hash<NEXTPNR_NAMESPACE_PREFIX IdString>
{
- std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX IdString &obj) const
- noexcept
+ std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX IdString &obj) const noexcept
{
return std::hash<int>()(obj.index);
}