Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3418)

Issue 155010043: code review 155010043: math/big: Allow non-prime modulus for ModInverse (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 7 months ago by khr
Modified:
9 years, 6 months ago
Reviewers:
agl1, gobot
CC:
agl1, golang-codereviews
Visibility:
Public.

Description

math/big: Allow non-prime modulus for ModInverse The inverse is defined whenever the element and the modulus are relatively prime. The code already handles this situation, but the spec does not. Test that it does indeed work. Fixes issue 8875

Patch Set 1 #

Patch Set 2 : diff -r 9115aad1dc4a48522f3dbaaf831d364d56c5ae8c https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r 9115aad1dc4a48522f3dbaaf831d364d56c5ae8c https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 1

Patch Set 4 : diff -r 0ca77a6b76c1a990f7c01ba84381bc95ae8cbc81 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 5 : diff -r 5b0487b727a3fcb2e8262151e95664bd9bfecc28 https://khr%40golang.org@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -17 lines) Patch
M src/math/big/int.go View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download
M src/math/big/int_test.go View 1 1 chunk +26 lines, -10 lines 0 comments Download

Messages

Total messages: 7
khr
Hello agl@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
9 years, 7 months ago (2014-10-06 22:25:13 UTC) #1
khr
On 2014/10/06 22:25:13, khr wrote: > Hello mailto:agl@golang.org (cc: mailto:golang-codereviews@googlegroups.com), > > I'd like you ...
9 years, 6 months ago (2014-10-13 20:48:47 UTC) #2
agl1
Sorry, had drafts but forgot to hit publish. https://codereview.appspot.com/155010043/diff/40001/src/math/big/int.go File src/math/big/int.go (right): https://codereview.appspot.com/155010043/diff/40001/src/math/big/int.go#newcode756 src/math/big/int.go:756: // ...
9 years, 6 months ago (2014-10-13 21:05:31 UTC) #3
khr
On 2014/10/13 21:05:31, agl1 wrote: > Sorry, had drafts but forgot to hit publish. > ...
9 years, 6 months ago (2014-10-13 21:15:33 UTC) #4
agl1
LGTM
9 years, 6 months ago (2014-10-14 01:32:32 UTC) #5
khr
*** Submitted as https://code.google.com/p/go/source/detail?r=9825b678db2f *** math/big: Allow non-prime modulus for ModInverse The inverse is defined ...
9 years, 6 months ago (2014-10-14 21:09:59 UTC) #6
gobot
9 years, 6 months ago (2014-10-14 21:14:30 UTC) #7
Message was sent while issue was closed.
This CL appears to have broken the android-arm-crawshaw builder.
See http://build.golang.org/log/981e654bbf5fcce3d6060234fa421d956c4455ad
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b