Uh oh!
There was an error while loading. Please reload this page.
Add Tuple-based Math.DivRem overloads - #45074
Conversation
Dotnet-GitSync-Bot
commented
Nov 22, 2020
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Dotnet-GitSync-Bot
commented
Nov 22, 2020
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
ghost
commented
Nov 22, 2020
Tagging subscribers to this area: @tannergooding, @pgovind, @jeffhandley Issue DetailsThis PR adds
|
tannergooding
commented
Nov 22, 2020
I think we are going to look at an analyzer. I don't know if hiding them is the correct approach, especially for users with muscle memory.
Yes.
I think its probably worth having long term. I'm sure there is a lot of code that doesn't use |
Uh oh!
There was an error while loading. Please reload this page.
jkotas
commented
Nov 22, 2020
Yes. This was discussed extensively in the past and this was the conclusion: #27939 (comment) |
davidfowl
commented
Nov 22, 2020
Someday we'll have better generics 🙃 |
Uh oh!
There was an error while loading. Please reload this page.
I wonder if we should add |
jkotas
commented
Nov 23, 2020
Yes, I think it would be fine to add AggressiveInlining to all these methods. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Stephen Toub <stoub@microsoft.com>
This PR adds
Math.DivRemAPIs approved in #42156 (comment)out int resultbeing actually a remainder.idivsince there is a good example by @CarolEidtSupport mulx returning ValueTuple #37928 (furthermore, we can teach the JIT to recognize a sort ofGT_DIVREManywhere now) - do you think it's worth the effort? It was the main reason I decided to add these APIs actually 🙂)