summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nltypes.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-05-03 08:58:12 +0200
committer couriersud <couriersud@gmx.org>2020-05-03 08:58:12 +0200
commit534b58eee6c6005bc0d1c43c6dff682d6c9482b7 (patch)
tree589ae166730f2f9a43eb6e273f074be5110acf04 /src/lib/netlist/nltypes.h
parent36622eca96573ab7ef6540f4904580f1fd759e38 (diff)
netlist: Fix some tidy warnings. (nw)
moving over to clang-tidy-11 and enabling more warnings.
Diffstat (limited to 'src/lib/netlist/nltypes.h')
-rw-r--r--src/lib/netlist/nltypes.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/netlist/nltypes.h b/src/lib/netlist/nltypes.h
index 915abcafb11..542a3d8c816 100644
--- a/src/lib/netlist/nltypes.h
+++ b/src/lib/netlist/nltypes.h
@@ -33,6 +33,13 @@ namespace netlist
{
using BC = plib::constants<T>;
+ static inline constexpr T np_VT(T n=BC::one(), T temp=BC::T0()) noexcept
+ { return n * temp * BC::k_b() / BC::Q_e(); }
+
+ static inline constexpr T np_Is() noexcept { return static_cast<T>(1e-15); } // NOLINT
+
+ static inline constexpr std::size_t max_queue_size() { return 512; } // NOLINT
+
/// \brief constant startup gmin
///
/// This should be used during object creation to initialize
@@ -53,10 +60,6 @@ namespace netlist
///
static inline constexpr T diode_start_voltage() noexcept { return BC::magic(0.7); } // NOLINT
- static inline constexpr T np_VT(T n=BC::one(), T temp=BC::T0()) noexcept
- { return n * temp * BC::k_b() / BC::Q_e(); }
-
- static inline constexpr T np_Is() noexcept { return static_cast<T>(1e-15); } // NOLINT
};
/// \brief nlconst_base struct specialized for nl_fptype.