xenia-canary/src/xenia
Wunkolo 1a8068b151 [Base] Add user-literals for several memory sizes
Rather than using `n * 1024 * 1024`, this adds a convenient `_MiB`/`_KiB` user-literal to the new `literals.h` header to concisely describe units of memory in a much more readable way. Any other useful literals can be added to this header. These literals exist in the `xe::literals` namespace so they are opt-in, similar to `std::chrono` literals, and require a `using namespace xe::literals` statement to utilize it within the current scope.

I've done a pass through the codebase to replace trivial instances of `1024 * 1024 * ...` expressions being used but avoided anything that added additional casting complexity from `size_t` to `uint32_t` and such to keep this commit concise.
2022-01-02 11:51:31 -06:00
..
app Fix "404 not found" on "Build commit on Github..." 2021-09-28 16:29:22 -05:00
apu [APU] Manage XAudio 2.8 lifecycle in MTA thread + error handling cleanup 2021-12-12 17:05:01 +03:00
base [Base] Add user-literals for several memory sizes 2022-01-02 11:51:31 -06:00
cpu [Base] Add user-literals for several memory sizes 2022-01-02 11:51:31 -06:00
debug/ui [UI] Loop thread to main thread WindowedAppContext 2021-08-28 19:38:24 +03:00
gpu [Base] Add user-literals for several memory sizes 2022-01-02 11:51:31 -06:00
helper/sdl [SDL2] Set more hints. 2020-12-26 04:50:27 -06:00
hid [UI] Loop thread to main thread WindowedAppContext 2021-08-28 19:38:24 +03:00
kernel [Base] Add user-literals for several memory sizes 2022-01-02 11:51:31 -06:00
tools/api-scanner [UI] Loop thread to main thread WindowedAppContext 2021-08-28 19:38:24 +03:00
ui [Base] Add user-literals for several memory sizes 2022-01-02 11:51:31 -06:00
vfs [Base] Add user-literals for several memory sizes 2022-01-02 11:51:31 -06:00
config.cc [Core] Fix reading UTF-8 BOM config files 2021-06-28 08:54:03 -05:00
config.h C++17ification. 2020-04-07 16:09:41 -05:00
cpp.hint Stop Intellisense complaints about export decls. 2021-05-01 12:45:16 -05:00
emulator.cc [Base] Add user-literals for several memory sizes 2022-01-02 11:51:31 -06:00
emulator.h Refactor FourCC magic uses 2021-06-02 22:28:43 -05:00
memory.cc [Code] Remove game names from code comments (most of at least) 2021-09-05 21:27:40 +03:00
memory.h [Code] Make union usage more consistent 2021-11-03 20:45:09 +03:00
premake5.lua C++17ification. 2020-04-07 16:09:41 -05:00
xbox.h [Kernel] Merge Content*Data structs into XCONTENT*_DATA 2021-06-25 23:48:25 -05:00