-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Delete redundant DivMod implementation #45652
Conversation
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. |
Tagging subscribers to this area: @tannergooding, @pgovind Issue DetailsRelated to #45074
|
I thoughts these are used in some nuget packages for other profiles - the comment confused me. That's why I didn't delete them as part of #45074 |
} | ||
|
||
/// <summary> | ||
/// We don't have access to Math.DivRem, so this is a copy of the implementation. |
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.
Another one with similar comment about this helper:
runtime/src/libraries/System.Text.Json/src/System/Text/Json/Writer/JsonWriterHelper.Date.cs
Lines 135 to 138 in ea35f6a
// We don't have access to System.Buffers.Text.FormattingHelpers.DivMod, | |
// so this is a copy of the implementation. | |
[MethodImpl(MethodImplOptions.AggressiveInlining)] | |
private static uint DivMod(uint numerator, uint denominator, out uint modulo) |
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.
System.Text.Json is compiled downlevel, so it would need ifdefs
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.
True, maybe comment can be updated since there is no System.Buffers.Text.FormattingHelpers.DivMod after this change.
Related to #45074