summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/attotime.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Enable flexible structure saving. Aaron Giles2021-09-151-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces the ability to save arbitrary structures. To make a structure eligible for saving, it must implement a new method register_save(save_registrar &). Structs can then save their members directly via the provided save_registrar. Nested structs and arrays of structs are supported in this manner. Note that state registration is not done via a virtual method or mix-in interface because doing so would convert lightweight structures away from being POD, and lightweight structures are one of the most common situations where this system can be leveraged in MAME. As a first example, the attotime struct has been changed to support this mechanism for saving, allowing us to remove the special cases for attotimes currently in save_manager. (It would be tempting to do the same for bitmap_t, but bitmaps are defined in lib/util and can't take a dependency on save.h so those special cases will remain.) This is a prologue to full hierarchical save state support, which I am working on in another branch. The save_registrar class name and reg() signatures match current work on that branch, so any changes made to existing code to leverage struct saving in this way will port over cleanly.
* -osd: Clean up inline maths utilities. Vas Crabb2021-01-181-8/+8
| | | | | | | | | | * Removed inline assembly for operations compilers handle well. * Added ARM and AArch64 implementation for a few operations. * Added unsigned integer add with carry out operations. -cpu/drccache.cpp: Detect whether RWX pages are supported. -dynax.cpp: Improved a few hanafuda DIP switch descriptions.
* emu: correct some file headers (nw) hap2020-06-191-1/+1
|
* attotime: Add to_string() to get a human-readable version of the time [O. ↵ Olivier Galibert2020-05-061-0/+17
| | | | | | | | Galibert] 6522via: Correct vocabulary, raise cb2 on shift in to make open-collector work correctly [O. Galibert] mackbd: Fix/partially rewrite [O. Galibert] mac128: Make emulated keyboard work [O. Galibert]
* Remove emu.h from attotime (nw) S.Z2018-11-031-2/+3
|
* Put #include emu.h as the first preprocessor directive in various files to ↵ yz70s2018-11-021-3/+1
| | | | support precompiled headers in visual studio (nw)
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-16/+16
| | | | | | | | | | | | * New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-16/+16
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+156