Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use [[likely]] and [[unlikely]] in c++20 mode #576

Merged
merged 1 commit into from
Feb 11, 2024
Merged

Conversation

elshize
Copy link
Member

@elshize elshize commented Feb 11, 2024

When compiling in the c++20 mode, use the standard [[likely]] and [[unlikely]] instead of GNU built-ins. It enables these directives on other platforms.

All uses of our macros had to be edited to remove the outer parentheses.

Implements: #570

When compiling in the c++20 mode, use the standard [[likely]] and
[[unlikely]] instead of GNU built-ins. It enables these directives on
other platforms.

All uses of our macros had to be edited to remove the outer parentheses.

Implements: #570
Signed-off-by: Michal Siedlaczek <michal@siedlaczek.me>
@elshize elshize self-assigned this Feb 11, 2024
Copy link

codecov bot commented Feb 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (aa8900b) 93.28% compared to head (e4963e9) 93.28%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #576   +/-   ##
=======================================
  Coverage   93.28%   93.28%           
=======================================
  Files          90       90           
  Lines        4454     4454           
=======================================
  Hits         4155     4155           
  Misses        299      299           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elshize elshize requested a review from JMMackenzie February 11, 2024 16:38
@elshize elshize merged commit 637254f into master Feb 11, 2024
10 checks passed
@elshize elshize deleted the cxx20-likely branch February 11, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants