Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Mirror changes from dotnet/coreclr#42547

Merged
stephentoub merged 1 commit intodotnet:masterfrom
Dotnet-GitSync-Bot:mirror-merge-10447185
Nov 12, 2019
Merged

Mirror changes from dotnet/coreclr#42547
stephentoub merged 1 commit intodotnet:masterfrom
Dotnet-GitSync-Bot:mirror-merge-10447185

Conversation

@Dotnet-GitSync-Bot
Copy link
Contributor

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot commented Nov 11, 2019

This PR contains mirrored changes from dotnet/coreclr

Please REBASE this PR when merging

cc @ts2do

* Method Add(ref BigInteger lhs, uint value, ref BigInteger result) would store most of the result blocks into lhs instead of result.
* Method ShiftLeft(ulong input, uint shift, ref BigInteger output) with a shift argument exceeding 32 would generally compute the higher blocks incorrectly.
* Multiply(ref BigInteger lhs, uint value, ref BigInteger result) would not set result._length in some cases.
* IsZero() would incorrectly return false for non-canonical zeros with _length > 0.

Fix:
* Inline Add(ref BigInteger, uint, ref BigInteger) into Add(uint).
* Inline ShiftLeft(ulong, uint, ref BigInteger) into Pow2.
* Inline ExtendBlock and ExtendBlocks into Pow2.
* Properly handle 0 in SetUInt32 and SetUInt64.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
@davidsh
Copy link
Contributor

davidsh commented Nov 12, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@stephentoub stephentoub merged commit 2127824 into dotnet:master Nov 12, 2019
@ViktorHofer
Copy link
Member

@davidsh any reason why you triggered an outerloop run here?

@davidsh
Copy link
Contributor

davidsh commented Nov 12, 2019

@davidsh any reason why you triggered an outerloop run here?

I was following up on the build break introduced by PR #42522 and resolved by PR #42548. I noticed that #42547 had failed due to the build break. After PR #42548 was merged, I just re-ran CI.

I always do "/azp run" since it runs both inner and outer loops. It's a habit since we always run both for networking.

@ViktorHofer
Copy link
Member

I would avoid doing that as Outerloop never really succeeds which blocks the auto merges of such PRs. Ie when you apply the auto merge label.

@karelz karelz added this to the 5.0 milestone Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants