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

Issue 170330043: [dev.cc] code review 170330043: runtime: convert basic library routines from C to Go (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by rsc
Modified:
10 years, 4 months ago
Reviewers:
r
CC:
r, dave_cheney.net, austin, dvyukov, golang-codereviews, iant, khr
Visibility:
Public.

Description

runtime: convert basic library routines from C to Go float.c held bit patterns for special float64 values, hiding from the real uses. Rewrite Go code not to refer to those values directly. Convert library routines in runtime.c and string.c.

Patch Set 1 #

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

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

Total comments: 4

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -558 lines) Patch
M src/runtime/complex.go View 1 1 chunk +29 lines, -10 lines 0 comments Download
R src/runtime/float.c View 1 1 chunk +0 lines, -10 lines 0 comments Download
M src/runtime/runtime1.go View 1 2 chunks +329 lines, -326 lines 0 comments Download
M src/runtime/sqrt.go View 1 2 chunks +1 line, -4 lines 0 comments Download
M src/runtime/string1.go View 1 1 chunk +90 lines, -208 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello r (cc: austin, dvyukov, golang-codereviews@googlegroups.com, iant, khr), I'd like you to review this change ...
10 years, 4 months ago (2014-11-11 06:40:15 UTC) #1
r
LGTM
10 years, 4 months ago (2014-11-11 06:56:06 UTC) #2
dave_cheney.net
https://codereview.appspot.com/170330043/diff/40001/src/runtime/runtime1.go File src/runtime/runtime1.go (left): https://codereview.appspot.com/170330043/diff/40001/src/runtime/runtime1.go#oldcode229 src/runtime/runtime1.go:229: if(sizeof(void*) == 8) There is a check for atomicor8 ...
10 years, 4 months ago (2014-11-11 11:56:22 UTC) #3
rsc
https://codereview.appspot.com/170330043/diff/40001/src/runtime/runtime1.go File src/runtime/runtime1.go (left): https://codereview.appspot.com/170330043/diff/40001/src/runtime/runtime1.go#oldcode229 src/runtime/runtime1.go:229: if(sizeof(void*) == 8) On 2014/11/11 11:56:22, dfc wrote: > ...
10 years, 4 months ago (2014-11-11 18:53:42 UTC) #4
rsc
10 years, 4 months ago (2014-11-11 22:07:15 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=9f1fef9e8a95 ***

[dev.cc] runtime: convert basic library routines from C to Go

float.c held bit patterns for special float64 values,
hiding from the real uses. Rewrite Go code not to
refer to those values directly.

Convert library routines in runtime.c and string.c.

LGTM=r
R=r, dave
CC=austin, dvyukov, golang-codereviews, iant, khr
https://codereview.appspot.com/170330043
Sign in to reply to this message.

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