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 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
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 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
lz4_compression.h
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
memory_hook.h
microprofile.cpp
microprofile.h Sources: Run clang-format on everything. 2016-09-18 09:38:01 +09:00
microprofileui.h
misc.cpp
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
param_package.h
quaternion.h
ring_buffer.h
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
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 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
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