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/devices/nld_log.cpp | |
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/devices/nld_log.cpp')
-rw-r--r-- | src/lib/netlist/devices/nld_log.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/devices/nld_log.cpp b/src/lib/netlist/devices/nld_log.cpp index 75a22ddca32..c2a6523f64a 100644 --- a/src/lib/netlist/devices/nld_log.cpp +++ b/src/lib/netlist/devices/nld_log.cpp @@ -116,8 +116,8 @@ namespace netlist netlist_time_ext t; nl_fptype v; }; - static const std::size_t BUF_SIZE=16384; - static const std::size_t BUFFERS=4; + static constexpr std::size_t BUF_SIZE=16384; + static constexpr std::size_t BUFFERS=4; analog_input_t m_I; plib::ofstream m_strm; plib::putf8_writer m_writer; |