Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Issue 11192074: Fix bigint modulo operation. Fixes bug 6056 (Closed)

Created:
8 years, 2 months ago by srdjan
Modified:
8 years, 2 months ago
CC:
reviews_dartlang.org, floitsch
Visibility:
Public.

Description

Fix bigint modulo operation. Fixes bug 6056 Committed: https://code.google.com/p/dart/source/detail?r=13823

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -5 lines) Patch
M runtime/vm/bigint_operations.cc View 1 1 chunk +11 lines, -3 lines 0 comments Download
M tests/corelib/big_integer_vm_test.dart View 1 3 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
8 years, 2 months ago (2012-10-19 00:35:23 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/11192074/diff/1/runtime/vm/bigint_operations.cc File runtime/vm/bigint_operations.cc (right): https://codereview.chromium.org/11192074/diff/1/runtime/vm/bigint_operations.cc#newcode783 runtime/vm/bigint_operations.cc:783: if (BigintOperations::Compare(remainder, zero) == -1) { if (remainder.isNegative()) ...
8 years, 2 months ago (2012-10-19 08:18:54 UTC) #2
srdjan
8 years, 2 months ago (2012-10-19 14:56:01 UTC) #3
Also added tests.

https://codereview.chromium.org/11192074/diff/1/runtime/vm/bigint_operations.cc
File runtime/vm/bigint_operations.cc (right):

https://codereview.chromium.org/11192074/diff/1/runtime/vm/bigint_operations....
runtime/vm/bigint_operations.cc:783: if (BigintOperations::Compare(remainder,
zero) == -1) {
On 2012/10/19 08:18:54, floitsch wrote:
> if (remainder.isNegative())

Done.

https://codereview.chromium.org/11192074/diff/1/runtime/vm/bigint_operations....
runtime/vm/bigint_operations.cc:784: if (BigintOperations::Compare(b, zero) ==
-1) {
On 2012/10/19 08:18:54, floitsch wrote:
> if (b.isNegative())

Done.

Powered by Google App Engine
This is Rietveld 408576698