diff options
author | 2020-09-25 21:44:39 +0200 | |
---|---|---|
committer | 2020-09-25 21:44:54 +0200 | |
commit | 15ea16e1497bcd28168f5c8ba2e53d3a8da8350c (patch) | |
tree | ce7cc28d5d0a6034e60292691c5f97276e11a353 /src/lib/netlist/core/param.h | |
parent | dcc2781365cc194fbbd0383269bc1399f48de18a (diff) |
netlist: minor code cleanup.
* a number of minor fixes leading to an increase of 570% to 588% on
pongf.
* admittedly micro optimization.
* Includes some comments why certain decisions have been taken.
Diffstat (limited to 'src/lib/netlist/core/param.h')
-rw-r--r-- | src/lib/netlist/core/param.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/core/param.h b/src/lib/netlist/core/param.h index 2007d1f844d..dbabef073e7 100644 --- a/src/lib/netlist/core/param.h +++ b/src/lib/netlist/core/param.h @@ -79,8 +79,8 @@ namespace netlist param_num_t(core_device_t &device, const pstring &name, T val) noexcept(false); - T operator()() const noexcept { return m_param; } - operator T() const noexcept { return m_param; } + constexpr const T &operator()() const noexcept { return m_param; } + constexpr operator const T& () const noexcept { return m_param; } void set(const T ¶m) noexcept { set_and_update_param(m_param, param); } |