-
Notifications
You must be signed in to change notification settings - Fork 915
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
Replace most of preprocessor usage in nvcomp adapter with constexpr
#11980
Replace most of preprocessor usage in nvcomp adapter with constexpr
#11980
Conversation
Codecov ReportBase: 88.11% // Head: 86.89% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## branch-22.12 #11980 +/- ##
================================================
- Coverage 88.11% 86.89% -1.22%
================================================
Files 133 133
Lines 21982 21995 +13
================================================
- Hits 19369 19113 -256
- Misses 2613 2882 +269
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice clean-up :)
@gpucibot merge |
…nstexpr`" (#11999) Reverts #11980 The PR was made under the assumption that `if constexpr` branches can contain invalid code, if the branch is not taken. However, this only holds for templates. Authors: - Vukasin Milovanovic (https://github.com/vuule) Approvers: - Nghia Truong (https://github.com/ttnghia) - Bradley Dice (https://github.com/bdice) URL: #11999
Description
C++17's "constexpr if" provides the same functionality as
#if
directive, as used in the nvcomp adapter.This PR replaces macros with
constexpr
variables and uses them as conditions in "constexpr if" statements.Checklist