summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pmath.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-01-27 21:47:41 +0100
committer couriersud <couriersud@gmx.org>2020-01-27 21:47:41 +0100
commitf7d8a10da53e07747ab4f11d5c7b4827869e5763 (patch)
tree1ae8c2b3a06a6abd253814bd159cb151dd6cc20a /src/lib/netlist/plib/pmath.h
parent8c2bb6236774977e848c62fad35eb665a6d8e58b (diff)
netlist: Code maintenance. (nw)
- Fixed some clang lint warnings - Removed dead code - Experimental parser code to allow calculations in parameter value. This already works for compiled netlists. These changes are currently disabled. Updated pong netlist (and CRC/SHA) to work with this new code.
Diffstat (limited to 'src/lib/netlist/plib/pmath.h')
-rw-r--r--src/lib/netlist/plib/pmath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/pmath.h b/src/lib/netlist/plib/pmath.h
index 4fd928ddb54..e995c3a6c27 100644
--- a/src/lib/netlist/plib/pmath.h
+++ b/src/lib/netlist/plib/pmath.h
@@ -76,7 +76,7 @@ namespace plib
/// later.
///
template <typename V>
- static inline constexpr const T magic(V &&v) noexcept { return static_cast<T>(v); }
+ static inline constexpr T magic(V &&v) noexcept { return static_cast<T>(v); }
};
/// \brief typesafe reciprocal function
@@ -415,7 +415,7 @@ namespace plib
return (m != 0 && n != 0) ? (plib::abs(m) / gcd(m, n)) * plib::abs(n) : 0;
}
- static_assert(noexcept(constants<double>::one()) == true, "Not evaluated as constexpr");
+ static_assert(noexcept(constants<double>::one()), "Not evaluated as constexpr");
} // namespace plib