-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
RotateLeft
and RotateRight
of BigInteger is buggy.
#112854
Comments
Tagging subscribers to this area: @dotnet/area-system-numerics |
RotateRight
and RotateRight
of BigInteger is buggy.RotateLeft
and RotateRight
of BigInteger is buggy.
Looks like this is because It should potentially be iterating from end to beginning rather than beginning to end as well, to avoid other complexities. A fix would be welcome here, otherwise someone from the team will try to get to it soon. |
Additionally, there is a bug where the two’s complement is not correctly obtained when the most significant bit is set. runtime/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs Lines 3278 to 3281 in 5f97ddf
|
Description
See Reproduction Steps.
Reproduction Steps
Expected behavior
Actual behavior
Regression?
.NET 7 or later
Known Workarounds
No response
Configuration
No response
Other information
similar to #112564
The text was updated successfully, but these errors were encountered: