-
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
Fix the handling of UInt128.DivideSlow on big endian platforms #71162
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. |
/azp run runtime-community |
Azure Pipelines successfully started running 1 pipeline(s). |
Tagging subscribers to this area: @dotnet/area-system-numerics Issue DetailsThis resolves #71157
|
uint* pLeft = stackalloc uint[Size / sizeof(uint)]; | ||
quotient.WriteLittleEndianUnsafe(new Span<byte>(pLeft, Size)); | ||
|
||
Unsafe.WriteUnaligned(ref *(byte*)(pLeft + 0), (uint)(quotient._lower >> 00)); |
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.
The WriteUnaligned
part seems unnecessary? Just write directly to the uint pointer.
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.
Ah right. I had originally had a different type here and never fixed it. I can fix, but I'd prefer doing that in a follow up so this can make the snap.
runtime-community failure is unrelated. Failure is with Logged #71173 |
This resolves #71157