diff options
author | 2020-09-24 07:53:11 +0200 | |
---|---|---|
committer | 2020-09-24 15:22:22 +0200 | |
commit | 1bb99466bcfa188bca00855f80bd6098b0882419 (patch) | |
tree | 57b4b8d68d6efdeb18d424e4ef4a353a011d6fe8 /src/lib/netlist/devices/nld_4042.cpp | |
parent | 2fb9f38b83270cac34428738313cd2eee79f421e (diff) |
netlist: code refactoring
* use default move and copy constructors
* various minor edits like adding noexcept
* removed a lot of inline keywords - you can't beat the compiler
Diffstat (limited to 'src/lib/netlist/devices/nld_4042.cpp')
-rw-r--r-- | src/lib/netlist/devices/nld_4042.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/devices/nld_4042.cpp b/src/lib/netlist/devices/nld_4042.cpp index f79a3bdb7a5..a000d2e8af8 100644 --- a/src/lib/netlist/devices/nld_4042.cpp +++ b/src/lib/netlist/devices/nld_4042.cpp @@ -62,7 +62,7 @@ namespace devices } private: - inline NETLIB_HANDLERI(clk) + NETLIB_HANDLERI(clk) { if (m_POL() ^ m_CLK()) // are we in transparent mode? if so latch the data and push it. { @@ -73,7 +73,7 @@ namespace devices // if not, the data inputs are ignored and just do nothing } - inline NETLIB_HANDLERI(inputs) + NETLIB_HANDLERI(inputs) { if ((m_POL() ^ m_CLK())&&(m_latch != (m_D()&0xf))) // are we in transparent mode? if so latch the data and push it. only do this if the data actually changed { @@ -83,7 +83,7 @@ namespace devices } } - inline NETLIB_HANDLERI(vdd_vss) + NETLIB_HANDLERI(vdd_vss) { auto d = m_power_pins.VCC()() - m_power_pins.GND()(); if (d > 0.1) // avoid unrealistic values |