yuzu/src/common
Lioncash 7f0f37fca7 partition_data_manager: Make data arrays constexpr
Previously the constructor for all of these would run at program
startup, consuming time before the application can enter main().

This is also particularly dangerous, given the logging system wouldn't
have been initialized properly yet, yet the program would use the logs
to signify an error.

To rectify this, we can replace the literals with constexpr functions
that perform the conversion at compile-time, completely eliminating the
runtime cost of initializing these arrays.
2020-08-06 02:41:58 -04:00
..
logging common/logging: don't use regex for path trimming 2020-01-23 23:08:05 +01:00
x64 Core/Common: Address Feedback. 2020-06-27 18:20:06 -04:00
algorithm.h common/algorithm: Add description comment indicating intended algorithms 2019-10-15 15:25:23 -04:00
alignment.h alignment: explicitly include <new> after 723edb4c06 2020-07-18 23:06:16 +00:00
assert.h fix clang-format and lambda capture 2019-11-23 01:30:06 +01:00
atomic_ops.cpp Common/AtomicOps: Correct GCC Intrinsic argument ordering. 2020-06-27 11:36:16 -04:00
atomic_ops.h Clang Format. 2020-06-27 11:36:14 -04:00
bit_field.h Fix -Werror=conversion error. 2020-04-24 09:33:04 +02:00
bit_util.h texture_cache: Optimize GetMipBlockHeight and GetMipBlockDepth 2019-06-20 21:36:12 -03:00
cityhash.cpp Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
cityhash.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
CMakeLists.txt ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer (#4465) 2020-08-03 07:28:54 -04:00
color.h common/vector_math: Move Vec[x] types into the Common namespace 2019-02-26 22:38:36 -05:00
common_funcs.h common: common_funcs: Add a macro for defining enum flag operators. 2020-04-17 00:59:27 -04:00
common_paths.h common: Add a screenshots directory 2020-07-20 22:51:02 -04:00
common_types.h gpu: Move GPUVAddr definition to common_types. 2019-03-20 22:36:02 -04:00
concepts.h ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer (#4465) 2020-08-03 07:28:54 -04:00
detached_tasks.cpp general: Use deducation guides for std::lock_guard and std::unique_lock 2019-04-01 12:53:47 -04:00
detached_tasks.h Review comments - part 5 2018-10-02 16:04:10 +02:00
dynamic_library.cpp common/dynamic_library: Import and adapt helper from Dolphin 2020-04-07 02:23:23 -03:00
dynamic_library.h common/dynamic_library: Import and adapt helper from Dolphin 2020-04-07 02:23:23 -03:00
fiber.cpp Core/Common: Address Feedback. 2020-06-27 18:20:06 -04:00
fiber.h Common/Fiber: Address Feedback and Correct Memory leaks. 2020-06-18 16:29:27 -04:00
file_util.cpp common: Add a screenshots directory 2020-07-20 22:51:02 -04:00
file_util.h common: Add a screenshots directory 2020-07-20 22:51:02 -04:00
hash.h common/hash: Remove unused HashableStruct 2019-11-13 14:58:43 -05:00
hex_util.cpp partition_data_manager: Make data arrays constexpr 2020-08-06 02:41:58 -04:00
hex_util.h partition_data_manager: Make data arrays constexpr 2020-08-06 02:41:58 -04:00
lz4_compression.cpp common/lz4_compression: Remove #pragma once directive from the cpp file 2019-04-03 22:07:04 -04:00
lz4_compression.h common/{lz4_compression, zstd_compression}: Add missing header guards 2019-04-15 13:00:08 -04:00
math_util.h common/math_util: Support float type rectangles 2020-02-28 16:22:11 -03:00
memory_detect.cpp common: switch to nullptr for sysctl's empty new value 2020-06-30 23:00:18 +00:00
memory_detect.h main: Log host system memory parameters 2020-05-17 14:45:12 -04:00
memory_hook.cpp core: Move PageTable struct into Common. 2019-03-16 22:05:40 -04:00
memory_hook.h core: Move PageTable struct into Common. 2019-03-16 22:05:40 -04:00
microprofile.cpp Integrate the MicroProfile profiling library 2015-08-24 22:16:28 -03:00
microprofile.h Sources: Run clang-format on everything. 2016-09-18 09:38:01 +09:00
microprofileui.h Common: Remove section measurement from profiler (#1731) 2016-04-29 00:07:10 -07:00
misc.cpp Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
multi_level_queue.h Kernel Scheduler: Make sure the global scheduler shutdowns correctly. 2019-10-15 11:55:24 -04:00
page_table.cpp common: page_table: Update to use VirtualBuffer and simplify. 2020-04-17 00:59:34 -04:00
page_table.h common: page_table: Update to use VirtualBuffer and simplify. 2020-04-17 00:59:34 -04:00
param_package.cpp citra_qt/configuration: misc input tab improvements 2018-10-06 15:43:49 +02:00
param_package.h citra_qt/configuration: misc input tab improvements 2018-10-06 15:43:49 +02:00
quaternion.h common/vector_math: Move Vec[x] types into the Common namespace 2019-02-26 22:38:36 -05:00
ring_buffer.h ring_buffer: Use std::atomic_size_t in a static assert 2018-09-18 23:36:04 -04:00
scm_rev.cpp.in common: Add additional SCM revision fields 2019-10-05 00:09:49 -04:00
scm_rev.h common: Add additional SCM revision fields 2019-10-05 00:09:49 -04:00
scope_exit.h common: scope_exit: Implement mechanism for canceling a scope exit. 2020-04-17 00:59:28 -04:00
spin_lock.cpp Core/Common: Address Feedback. 2020-06-27 18:20:06 -04:00
spin_lock.h Core/Common: Address Feedback. 2020-06-27 18:20:06 -04:00
string_util.cpp common/logging: don't use regex for path trimming 2020-01-23 23:08:05 +01:00
string_util.h common/string_util: Remove unimplemented function prototype (#4414) 2020-07-25 15:37:51 +02:00
swap.h common/swap: Make use of std::endian 2020-07-14 16:26:54 -04:00
telemetry.cpp common/telemetry: Add AVX512 to telemetry 2020-06-20 00:31:37 -04:00
telemetry.h compatdb: Use a seperate endpoint for testcase submission 2018-10-28 13:23:02 +01:00
thread_queue_list.h common/thread_queue_list: Remove unnecessary dependency on boost 2019-03-16 05:01:39 -04:00
thread.cpp Clang Format. 2020-06-27 11:36:14 -04:00
thread.h General: Tune the priority of main emulation threads so they have higher priority than less important helper threads. 2020-06-27 11:36:09 -04:00
threadsafe_queue.h common: SPSCQueue: Notify after incrementing queue size. 2019-12-16 20:39:53 -05:00
time_zone.cpp time_zone: Use std::chrono::seconds for strong typing. 2020-05-12 18:44:07 -04:00
time_zone.h time_zone: Use std::chrono::seconds for strong typing. 2020-05-12 18:44:07 -04:00
timer.cpp Port #3972 from Citra: "common/timer: use std::chrono, avoid platform-dependent code" 2018-07-29 14:58:30 +02:00
timer.h Port #3972 from Citra: "common/timer: use std::chrono, avoid platform-dependent code" 2018-07-29 14:58:30 +02:00
uint128.cpp Common/uint128: Correct MSVC Compilation in old versions. 2020-06-18 16:29:26 -04:00
uint128.h Common: Refactor & Document Wall clock. 2020-06-18 16:29:18 -04:00
uuid.cpp mii_manager: Cleanup and optimization 2019-04-25 08:07:57 -04:00
uuid.h acc: Return a unique value per account for GetAccountId 2020-04-29 21:09:53 +10:00
vector_math.h common/vector_math: Move Vec[x] types into the Common namespace 2019-02-26 22:38:36 -05:00
virtual_buffer.cpp virtual_buffer: Mark size parameter of FreeMemoryPages() as [[maybe_unused]] 2020-07-25 03:04:27 -04:00
virtual_buffer.h common: Add VirtualBuffer class, to abstract memory virtualization. 2020-04-17 00:59:31 -04:00
wall_clock.cpp Common/Kernel: Corrections and small bug fixing. 2020-06-27 11:36:21 -04:00
wall_clock.h HostTiming: Pause the hardware clock on pause. 2020-06-27 11:35:10 -04:00
web_result.h web_backend: Make Client use the PImpl idiom 2018-10-10 22:29:35 -04:00
zstd_compression.cpp common/zstd_compression: Remove #pragma once directive from source file 2019-05-04 01:54:29 -04:00
zstd_compression.h common/{lz4_compression, zstd_compression}: Add missing header guards 2019-04-15 13:00:08 -04:00