summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/osdcomm.h
Commit message (Collapse)AuthorAgeFilesLines
* Optimisation, and baby steps towards untangling stuff: Vas Crabb2022-06-161-0/+22
| | | | | | | | | | Optimised the scheduler's handling of unscheduled timers - gives a 50% performance improvement in some timer-heavy drivers. Added better endianness swizzling helpers. Got rid of some of the OSD input modules' dependence on concrete input classes from emu.
* osdcomm.h: Remove a few unimportant 64-bit functions AJR2022-06-151-5/+0
|
* Eliminate ARRAY_LENGTH template in favor of C++17's std::size AJR2021-02-141-15/+1
| | | | | | | | | | * osdcomm.h: Move definition of EQUIVALENT_ARRAY to coretmpl.h * sharc.cpp, gt64xxx.cpp, ym2413.cpp, gb_lcd.cpp, snes_ppu.cpp: Use STRUCT_MEMBER for save state registration * gio/newport.cpp, megadrive/svp.cpp, nes_ctrl/bcbattle.cpp, arm7.cpp, tms9995.cpp, pckeybrd.cpp, sa1110.cpp, sa1111.cpp, jangou_blitter.cpp, vic4567.cpp: Use std::fill(_n) instead of memset * emucore.h: Remove obsolete typedef
* -getaway.cpp: Fixed steering control. Vas Crabb2021-01-231-6/+6
| | | | | | | | | | * Works fine with an analog stick/wheel, difficult to steer on the slippery "dotted" surface with keyboard/D-pad. -osd: Moved GCC intrinsics out of eminline.h so MAME_NOASM will take the pure C++ implementation with GCC (makes testing the fallback easier). -Removed a bunch of [[maybe_unused]] that aren't actually needed.
* ATTR_UNUSED, do you welcome C++17 in your heart and mind? Olivier Galibert2021-01-221-2/+0
|
* use C++ library includes (nw) firewave2020-01-221-2/+2
|
* UI input menu: treat codes containing a postive and negative of the same ↵ Vas Crabb2019-11-211-3/+5
| | | | | | | | thing as invalid (e.g. A S not A) ioport.cpp: * better than 50% reduction in compile time, and better locality for static data * better encapsulation, const correctness and noexcept usage
* Renamed flipendian -> swapendian, as I spent minutes trying to find the ↵ mooglyguy2018-11-051-12/+12
| | | | functions to tell to another person who spent minutes trying to find the functions, and we refer to such functions as swapping just about everywhere else in the codebase, nw
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-19/+12
| | | | | | | | | | | | * 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
* Revert "Added IS_ENABLED, so we have compiler check for non used part, it is ↵ Miodrag Milanovic2016-11-121-16/+0
| | | | | | checked but not compiled in (nw)" This reverts commit c0407f073bf7afe26407c4add5cfeaf7104913c9.
* Added IS_ENABLED, so we have compiler check for non used part, it is checked ↵ Miodrag Milanovic2016-11-111-0/+16
| | | | | | but not compiled in (nw) false and true now used instead of integer where used as bool
* final cleanup of TRUE/FALSE, left only in windows section where it represent ↵ Miodrag Milanovic2016-10-221-13/+0
| | | | BOOL (nw)
* fixed benchmarks build and cleanup U64 and S64 macro definition, it is now ↵ Miodrag Milanovic2016-10-221-8/+0
| | | | in standard (nw)
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-29/+29
| | | | | 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
* [[noreturn]] instead of ATTR_NORETURN (nw) Miodrag Milanovic2016-10-221-2/+0
|
* use standard types uintptr_t, char16_t and char32_t instead of FPTR, ↵ Miodrag Milanovic2016-10-221-11/+0
| | | | utf16_char, unicode_char (nw)
* Cleanup, TIMER_CALLBACK was only in unused parts (nw) Miodrag Milanovic2016-10-211-4/+0
|
* Cleanup for VS2015 build (nw) Miodrag Milanovic2016-08-281-2/+0
|
* some C++14 features are not supported by VS2013. VS2015 is free for home use ↵ Miodrag Milanovic2016-08-271-7/+0
| | | | so no need for legacy support (nw)
* made constexprs lower case and used constexpr for returning input value as ↵ Miodrag Milanovic2016-07-311-12/+12
| | | | well for rest of defines in osdcomm.h (nw)
* macros should be turned into constexpr or they can't be used in many ↵ Vas Crabb2016-07-311-39/+19
| | | | | | situations they were previously use in the silly _partialNN functions are necessary because MSVC doesn't support C++14 properly
* std::min and std:max instead of MIN and MAX, also some more macros converted ↵ Miodrag Milanovic2016-07-311-33/+37
| | | | to inline functions (nw)
* Create osd_is_valid_filename_char() and osd_is_valid_filepath_char() ↵ Nathan Woods2016-07-051-0/+5
| | | | functions to check to see if a character is legal, and moved retired is_valid_filename_char() in filecreate.cpp. POSIX versions not implemented yet.
* misc fixes (nw) Vas Crabb2016-05-281-0/+11
| | | | | | * fix a mismatched new[]/delete error in corealloc * _name massacre in corealloc while at it * add template/macro for delaring array with equivalent dimensions
* fix OSX compile (nw) Miodrag Milanovic2016-05-271-1/+1
|
* ui refactoring [Vas Crabb] Vas Crabb2016-05-271-5/+5
| | | | | | | | * Make ARRAY_LENGTH cause a compile error if used with a pointer/vector * Clean up text input code, move common operations to inline templates * Fix numerous one-byte buffer overruns * Don't flat-out ignore input beyond the C1 hole * Fix decoding of SDL text input
* Removed I64FMT and SIZETFMT, one usage left in chdman.cpp (nw) Miodrag Milanovic2016-03-071-19/+0
|
* hopefully fix build for everyone Vas Crabb2016-03-061-15/+8
|
* Pick off some low-hanging PTR64 fruit Vas Crabb2016-02-281-5/+1
|
* limit internationalization to UI where it belongs (nw) Miodrag Milanovic2016-02-201-4/+0
|
* Doing some preps for internationalization (nw) Miodrag Milanovic2016-02-191-0/+4
|
* cleanup of osdcomm.h (nw) Miodrag Milanovic2015-12-091-44/+15
|
* Revert "Cleanup of osdcomm.h (nw)" Miodrag Milanovic2015-12-091-13/+49
| | | | This reverts commit 1d40aecb585e8dd1fedefdd35a833c66fc2a1b96.
* Cleanup of osdcomm.h (nw) Miodrag Milanovic2015-12-091-49/+13
|
* VS2012 is not supported anymore (nw) Miodrag Milanovic2015-12-071-11/+0
|
* Fixed comment. dankan18902015-10-301-2/+2
|
* Fix for VS2013 build. dankan18902015-10-301-6/+7
|
* update suggested by DrMefistO (nw) Miodrag Milanovic2015-10-201-2/+1
|
* fix compile on VS2013 (need check on VS2015 if this is needed at all) (nw) Miodrag Milanovic2015-10-191-0/+2
|
* osdcomm.h: func me MSVC (nw) Peter Ferrie2015-09-301-0/+1
|
* Nope. (nw) balr0g2015-06-071-1/+0
| | | | | | This reverts commit 72794f8ff1c1e79bd0350bb52fb3757bdf04d004. At least this provides a more useful stacktrace, if anyone wants to debug.
* Use attribute unused for inlined new/delete. (nw) balr0g2015-06-071-0/+1
| | | | | | This is still not compliant code, and will probably break with LTO, but is a cleaner fix for the warning. Using this attribute also ensures that the linker doesn't remove the code.
* Cleanups and version bumpmame0161 Miodrag Milanovic2015-04-291-1/+1
|
* fixed alloca define to standard one (nw) Miodrag Milanovic2015-04-181-1/+1
|
* VS2015 compile works (nw) Miodrag Milanovic2015-04-101-0/+3
|
* Remove need for winprefix.h and moved alloca define to osdcomm.h (nw) Miodrag Milanovic2015-03-311-0/+6
|
* removed windows/osinline.h and placed MSVC dependent files in top folder (nw) Miodrag Milanovic2015-03-301-0/+19
| | | | | | moved MSVC defines from winprefix.h to osdcomm.h removed empty file compilation - porttime.c removed osinline.h in windows and sdl and change files using them.
* More cleanups, there is issue with srcclean that needs to be taken care as ↵ Miodrag Milanovic2014-07-221-1/+1
| | | | well, just doing now what we can
* implemented ATTR_FORCE_INLINE for Visual Studio (nw) Oliver Stöneberg2014-06-301-1/+1
|
* Cleanups and version bumpmame0153 Miodrag Milanovic2014-04-071-2/+2
|