diff options
author | MatÃas Locatti <42481638+goldenx86@users.noreply.github.com> | 2022-12-17 22:16:52 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 17:16:52 -0800 |
commit | fd1ea0fd8463c65f3d266512cba04a5c9d0863da (patch) | |
tree | 573d78a36a48d9cf439c5f65d96f5f1a63449128 /src | |
parent | 48108a8c9b28e08f86aab5c2ad41414e455f4706 (diff) |
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.h | 4 |
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(); #define ASSERT_OR_EXECUTE(_a_, _b_) \ do { \ ASSERT(_a_); \ - if (!(_a_)) { \ + if (!(_a_)) [[unlikely]] { \ _b_ \ } \ } while (0) @@ -78,7 +78,7 @@ void assert_fail_impl(); #define ASSERT_OR_EXECUTE_MSG(_a_, _b_, ...) \ do { \ ASSERT_MSG(_a_, __VA_ARGS__); \ - if (!(_a_)) { \ + if (!(_a_)) [[unlikely]] { \ _b_ \ } \ } while (0) |