summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Matías Locatti2022-12-17 22:16:52 -0300
committerGravatar GitHub2022-12-17 17:16:52 -0800
commitfd1ea0fd8463c65f3d266512cba04a5c9d0863da (patch)
tree573d78a36a48d9cf439c5f65d96f5f1a63449128 /src
parentMerge pull request #9456 from german77/virtual_gamepad (diff)
downloadyuzu-fd1ea0fd8463c65f3d266512cba04a5c9d0863da.tar.gz
yuzu-fd1ea0fd8463c65f3d266512cba04a5c9d0863da.tar.xz
yuzu-fd1ea0fd8463c65f3d266512cba04a5c9d0863da.zip
Enable compiler optimizations and enforce x86-64-v2 on GCC/Clang (#9442)
* Testing LTO (#4) * Testing LTO * clang * linux * Added the rest of Blinkhawk's optimizations * Unlikely asserts * Removing LTO from Linux builds - GCC * Removing LTO from Linux builds - Clang
Diffstat (limited to 'src')
-rw-r--r--src/common/assert.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/assert.h b/src/common/assert.h
index 8c927fcc0..67e7e9375 100644
--- a/src/common/assert.h
+++ b/src/common/assert.h
@@ -69,7 +69,7 @@ void assert_fail_impl();
69#define ASSERT_OR_EXECUTE(_a_, _b_) \ 69#define ASSERT_OR_EXECUTE(_a_, _b_) \
70 do { \ 70 do { \
71 ASSERT(_a_); \ 71 ASSERT(_a_); \
72 if (!(_a_)) { \ 72 if (!(_a_)) [[unlikely]] { \
73 _b_ \ 73 _b_ \
74 } \ 74 } \
75 } while (0) 75 } while (0)
@@ -78,7 +78,7 @@ void assert_fail_impl();
78#define ASSERT_OR_EXECUTE_MSG(_a_, _b_, ...) \ 78#define ASSERT_OR_EXECUTE_MSG(_a_, _b_, ...) \
79 do { \ 79 do { \
80 ASSERT_MSG(_a_, __VA_ARGS__); \ 80 ASSERT_MSG(_a_, __VA_ARGS__); \
81 if (!(_a_)) { \ 81 if (!(_a_)) [[unlikely]] { \
82 _b_ \ 82 _b_ \
83 } \ 83 } \
84 } while (0) 84 } while (0)