2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00
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
x64 Core/Common: Address Feedback. 2020-06-27 18:20:06 -04:00
algorithm.h
alignment.h alignment: explicitly include <new> after 723edb4c06 2020-07-18 23:06:16 +00:00
assert.h
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
cityhash.cpp
cityhash.h
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_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
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
detached_tasks.h
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
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
math_util.h
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
memory_hook.h
microprofile.cpp
microprofile.h
microprofileui.h
misc.cpp
multi_level_queue.h
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
param_package.h
quaternion.h
ring_buffer.h
scm_rev.cpp.in
scm_rev.h
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
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
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
thread_queue_list.h
threadsafe_queue.h
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
timer.h
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
uuid.h acc: Return a unique value per account for GetAccountId 2020-04-29 21:09:53 +10:00
vector_math.h
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
zstd_compression.cpp
zstd_compression.h