From c6e6911aed7687b94fba52485d89f0903e102d0e Mon Sep 17 00:00:00 2001 From: couriersud Date: Thu, 23 Jun 2016 02:04:40 +0200 Subject: Netlist changes - Replaced shared_ptr by unique_ptr. - Better seperation of setup_t and netlist_t. - Fixed bugs in rdtsc code. Refactored timer code. - Simplify conditional activation/deactivation. - Introduced HINT(device, hint) to clarify that hints are inheritent and not specific to devices. - Added improved profiling support to netlist. Statistics output now proposes devices for which whole device activation/deactivation be disabled. No significant improvement for pong, but breakout experiences a 10% improvement. - Moved options code from include to cpp file. - Minor modifications to 7493 and 9316 - Introduced perftime_t and perfcount_t for gathering statistics. These templates do not create any code if statistics are not kept. - Make help2man ./nltool produce usuable output. - More truthtable refactoring. Removed half-finished code for internal state support. As implemented, this would have had no support for timing delays. [Couriersud] --- src/lib/netlist/plib/pstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/netlist/plib/pstring.cpp') diff --git a/src/lib/netlist/plib/pstring.cpp b/src/lib/netlist/plib/pstring.cpp index f6dff95fb12..20573f5bfa5 100644 --- a/src/lib/netlist/plib/pstring.cpp +++ b/src/lib/netlist/plib/pstring.cpp @@ -258,7 +258,7 @@ const pstring_t pstring_t::rpad(const pstring_t &ws, const unsigned cnt) c pstring_t ret(*this); while (ret.len() < cnt) ret += ws; - return pstring_t(ret).substr(0, cnt); + return ret; } -- cgit v1.2.3-70-g09d2