Previous 199869 Revisions Next

r194143 Saturday 25th March, 2023 at 14:32:50 UTC by Vasantha Crabb
Various optimisations to code generaton.

util/bitmap.cpp, util/palette.cpp: Marked lots of things constexpr.
Bitmaps don't throw exceptions on allocation failure, they just become
invalid.  Almost nothing in MAME actually checks for this.

emu/profiler.cpp: Abort if the profile stack overflows rather than
throwing an exception.  This is a developer feature and if it overflows,
the code is broken.  Calling a noreturn noexcept function generates less
code than throwing an exception, which adds up.

util/strformat.cpp: Traded away some unnecessary flexibility for more
compact code.  The stream objects must derive from std::basic_ostream
now - they can't just be any old objects with the expected operators.
[/branches/a800_cart/scripts/src]bus.lua
[/branches/a800_cart/src/devices/bus/isa]hpblp.cpp hpblp.h
[/branches/a800_cart/src/devices/cpu]drcuml.cpp drcuml.h
[/branches/a800_cart/src/emu]devcpu.cpp devcpu.h emucore.cpp emucore.h fileio.cpp fileio.h machine.cpp machine.h profiler.cpp profiler.h validity.cpp validity.h
[/branches/a800_cart/src/emu/debug]debugcon.cpp debugcon.h debugcpu.cpp debugcpu.h
[/branches/a800_cart/src/frontend/mame]luaengine.cpp
[/branches/a800_cart/src/lib/util]bitmap.cpp bitmap.h corefile.cpp corefile.h palette.cpp palette.h strformat.cpp strformat.h
[/branches/a800_cart/src/osd]eminline.h osdcore.cpp osdcore.h
[/branches/a800_cart/src/osd/modules/lib]osdobj_common.cpp osdobj_common.h
[/branches/a800_cart/src/osd/modules/render/bgfx]statereader.cpp statereader.h
[/branches/a800_cart/src/osd/windows]winmain.cpp


Previous 199869 Revisions Next


© 1997-2024 The MAME Team