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

Issue 5847061: code review 5847061: misc/cgo/gmp: update for Go 1 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by minux1
Modified:
13 years, 5 months ago
Reviewers:
CC:
golang-dev, remyoudompheng, iant
Visibility:
Public.

Description

misc/cgo/gmp: update for Go 1 1. make the program go buildable 2. update os.EINVAL and runtime.Cgocalls() 3. wrap mpz_div_2exp() and mpz_mul_2exp to support both pre-5.0 and post-5.0 gmp (we really have no reason to restrict ourselves to gmp 5.0+)

Patch Set 1 #

Patch Set 2 : diff -r 14c7fd2498d6 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 14c7fd2498d6 https://code.google.com/p/go/ #

Total comments: 1

Patch Set 4 : diff -r 14c7fd2498d6 https://code.google.com/p/go/ #

Patch Set 5 : diff -r 641b20b35565 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -7 lines) Patch
M misc/cgo/gmp/gmp.go View 1 2 3 4 chunks +18 lines, -6 lines 0 comments Download
M misc/cgo/gmp/pi.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
13 years, 5 months ago (2012-03-18 18:13:20 UTC) #1
remyoudompheng
http://codereview.appspot.com/5847061/diff/4001/misc/cgo/gmp/gmp.go File misc/cgo/gmp/gmp.go (right): http://codereview.appspot.com/5847061/diff/4001/misc/cgo/gmp/gmp.go#newcode197 misc/cgo/gmp/gmp.go:197: return syscall.EINVAL why not os.ErrInvalid ?
13 years, 5 months ago (2012-03-18 18:21:16 UTC) #2
minux1
PTAL. On 2012/03/18 18:21:16, remyoudompheng wrote: http://codereview.appspot.com/5847061/diff/4001/misc/cgo/gmp/gmp.go#newcode197 > misc/cgo/gmp/gmp.go:197: return syscall.EINVAL > why not os.ErrInvalid ...
13 years, 5 months ago (2012-03-18 19:02:08 UTC) #3
iant
LGTM I think this is OK to commit now because these files are not touched ...
13 years, 5 months ago (2012-03-19 22:06:37 UTC) #4
minux1
13 years, 5 months ago (2012-03-20 16:51:57 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=05fd7717dfc0 ***

misc/cgo/gmp: update for Go 1
1. make the program go buildable
2. update os.EINVAL and runtime.Cgocalls()
3. wrap mpz_div_2exp() and mpz_mul_2exp to support both
   pre-5.0 and post-5.0 gmp (we really have no reason to
   restrict ourselves to gmp 5.0+)

R=golang-dev, remyoudompheng, iant
CC=golang-dev
http://codereview.appspot.com/5847061
Sign in to reply to this message.

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