add specialization for 24MHz QueryPerformanceFrequency#3832
Merged
StephanTLavavej merged 9 commits intomicrosoft:mainfrom Jul 14, 2023
Merged
add specialization for 24MHz QueryPerformanceFrequency#3832StephanTLavavej merged 9 commits intomicrosoft:mainfrom
StephanTLavavej merged 9 commits intomicrosoft:mainfrom
Conversation
Co-authored-by: Steven Noonan <steven@uplinklabs.net>
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
AlexGuteniev
suggested changes
Jun 27, 2023
Alcaro
reviewed
Jun 27, 2023
StephanTLavavej
approved these changes
Jul 6, 2023
StephanTLavavej
approved these changes
Jul 7, 2023
strega-nil-ms
approved these changes
Jul 7, 2023
Contributor
There was a problem hiding this comment.
Do we need to do the push_macro/undef/pop_macro magic incantation here for likely and unlikely?
Member
There was a problem hiding this comment.
likely and unlikely are commonly defined as function-like macros, but not object-like macros. <xkeycheck.h> avoids rejecting them for that reason.
Unlike msvc etc., users are technically not supposed to macroize likely and unlikely, so we technically don't need to defend against them. We could but I don't think it's necessary at the moment.
Member
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Member
|
Thanks for implementing this performance improvement! 🚀 🐇 🐆 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3828
Fixes partially #3834
If I do
then
clang-formatformat the code this way:A repro that the MSVC compiler simplfying the integer divisions into shifts and multiplies: https://godbolt.org/z/zb5fob6xc