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

Issue 1174513004: Implement modInverse (bigint version does not support even modulus yet). (Closed)

Created:
5 years, 6 months ago by regis
Modified:
5 years, 6 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Implement modInverse (bigint version does not support even modulus yet). Added tests. See #23502 R=srdjan@google.com Committed: https://github.com/dart-lang/sdk/commit/f6f338ce67eb8801b350417baacf6d3681b26002

Patch Set 1 #

Patch Set 2 : Fix internal crash with bigint == 0 #

Total comments: 4

Patch Set 3 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -7 lines) Patch
M runtime/lib/bigint.dart View 1 2 4 chunks +110 lines, -6 lines 0 comments Download
M runtime/lib/integers.dart View 2 chunks +58 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_number.dart View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
M sdk/lib/core/int.dart View 1 chunk +8 lines, -0 lines 0 comments Download
M tests/corelib/big_integer_arith_vm_test.dart View 1 2 2 chunks +75 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
regis
Either we submit this version or we wait until I provide a bigint version supporting ...
5 years, 6 months ago (2015-06-09 23:22:35 UTC) #2
srdjan
Please measure the improvement of using bigint optimized code vs the naive code used for ...
5 years, 6 months ago (2015-06-10 16:51:52 UTC) #3
srdjan
https://codereview.chromium.org/1174513004/diff/20001/sdk/lib/core/int.dart File sdk/lib/core/int.dart (right): https://codereview.chromium.org/1174513004/diff/20001/sdk/lib/core/int.dart#newcode120 sdk/lib/core/int.dart:120: int modInverse(int modulus); You probably also need to add ...
5 years, 6 months ago (2015-06-10 17:46:07 UTC) #4
regis
PTAL I have measured this test loop (ReleaseX64) using both the bigint implementation (in bigint.dart) ...
5 years, 6 months ago (2015-06-10 20:25:56 UTC) #5
srdjan
lgtm
5 years, 6 months ago (2015-06-10 21:59:10 UTC) #6
regis
Committed patchset #3 (id:40001) manually as f6f338ce67eb8801b350417baacf6d3681b26002 (presubmit successful).
5 years, 6 months ago (2015-06-10 22:01:51 UTC) #7
kevmoo
5 years, 6 months ago (2015-06-23 20:54:08 UTC) #8
Message was sent while issue was closed.
On 2015/06/10 22:01:51, regis wrote:
> Committed patchset #3 (id:40001) manually as
> f6f338ce67eb8801b350417baacf6d3681b26002 (presubmit successful).

Please update CHANGELOG.md when making API changes

Powered by Google App Engine
This is Rietveld 408576698