summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pfmtlog.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* srcclean and other cleanup (nw) Vas Crabb2018-06-241-0/+0
|
* Netlist code refactoring: couriersud2017-04-091-6/+1
| | | | | | | | | | | | | | | | | | | - more use of c++ features - some CRTP in pfmtlog - demangled code for truthtables - use more constexpr - rewrite main loop - use default constructors and assignment operators were applicable. - optimized 7448 and 9316 All of this has decreased startup time by approx. 25% to 30%. Complex netlists like pong or kidniki are parsed, analyzed and constructed in around 15 ms. Run performance has increased by about 5%. All in all not to bad. A game like pong uses a clock of 7 MHz (after division by 2). Thats 14 MHz clock invocations. Running at over 200%, 28 MHz. On a 3.9 GHz Machine about 140 cycles/clock change. [Couriersud]
* pstring, pdynlib, pfmtlog refactoring : couriersud2017-04-041-84/+44
| | | | | | | | | | | | | | | | | | | | | pstring: - added support for UTF16LE to pstring. - renamed size() to mem_t_size() - renmaed len() to length() - added size() == length() - added empty() - added simple compare() pfmtlog: - Simplified pfmtlog, added more c++ pdynlib: - add a dynproc type to dynlib to wrap dynamic library calls. various: - fix two coverty scan issue. - various clang warnings fixed. (nw)
* Change pstring to use std::string as storage container. couriersud2017-03-301-1/+1
| | | | | | | | This removes all allocation code from pstring. const_iterator is consequently now based on pstring::const_iterator. Removed pstring_buffer. This was class wasn't a good idea. Vas was right: This change did not impact runtime performance. Startup performance (string intensive) increased. (nw)
* More cppcheck fixes. (nw) Couriersud2017-03-051-1/+1
|
* Move from <cstring> to std::copy and friends. (nw) couriersud2017-02-161-4/+7
|
* Reorder include order to comply with best practices. (nw) couriersud2017-02-101-3/+3
|
* Cleanup of includes. (nw) couriersud2017-01-271-4/+1
|
* Netlist: code refactoring couriersud2017-01-201-13/+1
| | | | | | | Make streams provide binary access only. Use putf8_reader and putf8_writer to actually access streams. Replace some char * parameters with pstring where appropriate. Minor code refactoring and move functionality were it belongs. (nw)
* Fix clang "-Wno-weak-vtables" warnings in netlist source. Refactored couriersud2017-01-051-0/+5
| | | code along the way. (nw)
* cstr() ==> c_str() (nw) couriersud2016-12-301-1/+1
|
* Netlist updates: couriersud2016-07-211-12/+12
| | | | | | | | | | | | | | | - Removed trampolines (OUTLOGIC, INPLOGIC and friends). - Started using doxygen comment and documentation style. Added doxygen files to documentation folder. - Refactored code triggered by doxygen output. - Moved internal and support classes into namespace detail. - Use an anordered map in parser. - -Wconversion fixes - All done now. - Fixed -Wold-style-cast warnings in netlist code. - Added iterators to pstring. - Moved two macros, added more RAII and improved exceptions. Fixed some bugs in parser code. - Fixed a number of bugs in parser code and exception handling. [Couriersud]
* Srcclean on netlist files. Avoid the merge massacre. (nw) couriersud2016-06-251-2/+0
|
* - More code cleanup. couriersud2016-06-071-25/+0
| | | | | | | | | | | | | | - Dead code removal and minor refactoring. - Simplify. Align naming with stl. Fix somed pedantic warnings. - More STL compatability. - Remove ATTR_HOT and ATTR_COLD. Refactored netlist_time. - Fix long standing workaround which would ignore policy of change-only" propagation. - Rewrote for loops to use auto : semantics. - Truthtable cleanup. (nw) - Get rid of nl_math. Remove nl_util.h and moved contents to plib/putil.h. - Fix standalone build. Refactor ptypes.h. [Couriersud]
* - Minor cosmetic refactoring. Added a "uninitialised array" template to balr0g2016-06-071-2/+2
| | | | | | | | | | | allow in-place creation (for increased locality) of netlist classes. Main use is in truthtable class. - Remove PLIB_NAMESPACE macros. - Remove namespace macros. Use explicit namespace declarations. - Moved device definitions into cpp files. - Moved more device definitions into cpp files. - New prefix "nlid" for include files flags purely internal include files not to be leaked into userland. - Fix factory code.
* Moved more code into plib namespace. (nw) couriersud2016-05-271-0/+5
|
* Remove dependency on osd_ticks. Converted palloc and friends into couriersud2016-05-271-3/+3
| | | templates. First effort on a separate plib namespace. (nw)
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-12/+12
|
* made netlist compile as separate without c++11 or higher deps (nw) Miodrag Milanovic2015-12-251-2/+0
| | | | requested by Couriersud
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+166