Skip to content

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

@ghost ghost added the area-System.Numerics label Apr 12, 2024
Copy link
Contributor

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

[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.

@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.

2 participants