summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/analog/nld_mosfet.cpp
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/analog/nld_mosfet.cpp
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/analog/nld_mosfet.cpp')
-rw-r--r--src/lib/netlist/analog/nld_mosfet.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/netlist/analog/nld_mosfet.cpp b/src/lib/netlist/analog/nld_mosfet.cpp
index fff7b8d03eb..4817f6cc00c 100644
--- a/src/lib/netlist/analog/nld_mosfet.cpp
+++ b/src/lib/netlist/analog/nld_mosfet.cpp
@@ -476,7 +476,11 @@ namespace analog
const nl_fptype Vctrl = (is_forward ? Vgs : Vgd) - Vth;
- nl_fptype Ids(0), gm(0), gds(0), gmb(0);
+ nl_fptype Ids(0);
+ nl_fptype gm(0);
+ nl_fptype gds(0);
+ nl_fptype gmb(0);
+
const nl_fptype absVds = plib::abs(Vds);
if (Vctrl <= nlconst::zero())