From f7d8a10da53e07747ab4f11d5c7b4827869e5763 Mon Sep 17 00:00:00 2001 From: couriersud Date: Mon, 27 Jan 2020 21:47:41 +0100 Subject: 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. --- src/lib/netlist/plib/pmath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/netlist/plib/pmath.h') 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 - static inline constexpr const T magic(V &&v) noexcept { return static_cast(v); } + static inline constexpr T magic(V &&v) noexcept { return static_cast(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::one()) == true, "Not evaluated as constexpr"); + static_assert(noexcept(constants::one()), "Not evaluated as constexpr"); } // namespace plib -- cgit v1.2.3-70-g09d2