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

Add some TODO #5213 comments #100954

Closed
wants to merge 8 commits into from
Closed

Conversation

lilinus
Copy link
Contributor

@lilinus lilinus commented Apr 12, 2024

Added TODO comments referencing #5213 where we should replace remainder calulcation using modulus operator after said issue is resolved

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

@@ -1405,6 +1405,7 @@ internal void GetDate(out int year, out int month, out int day)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void GetTime(out int hour, out int minute, out int second)
{
// TODO: https://github.com/dotnet/runtime/issues/5213
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd honestly prefer these to instead just switch to using ulong.DivRem, that should produce the same code today and will automatically be updated in the future when any JIT optimization gets added.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I switched to DivRem except for in Decimal.DecCalc, where we the TODOs in this PR and the ones that already exists are heterogenous.

@lilinus lilinus closed this May 3, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Numerics community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants