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

Issue 126490043: code review 126490043: runtime: convert float64toint64, float64touint64 to Go (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by dave
Modified:
10 years, 8 months ago
Reviewers:
rsc
CC:
khr, minux, rsc, josharian, golang-codereviews
Visibility:
Public.

Description

runtime: convert float64toint64, float64touint64 to Go This is a very dumb translation to keep the code as close to the original C as possible.

Patch Set 1 #

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

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

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

Total comments: 2

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

Total comments: 1

Patch Set 6 : diff -r 8e4e7940943a2dfd0b60db75fac44865005b2271 https://code.google.com/p/go #

Patch Set 7 : diff -r 01dfd37363e90fcfdb4bd8e84d275709fa7e7f5e https://code.google.com/p/go #

Patch Set 8 : diff -r 01dfd37363e90fcfdb4bd8e84d275709fa7e7f5e https://code.google.com/p/go #

Patch Set 9 : diff -r 01dfd37363e90fcfdb4bd8e84d275709fa7e7f5e https://code.google.com/p/go #

Total comments: 2

Patch Set 10 : diff -r 01dfd37363e90fcfdb4bd8e84d275709fa7e7f5e https://code.google.com/p/go #

Patch Set 11 : diff -r b09f70c301a5aae444785502d4bbfc555044b4f4 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -757 lines) Patch
M src/pkg/runtime/vlrt.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +41 lines, -745 lines 0 comments Download
M src/pkg/runtime/vlrt_arm.c View 1 2 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 14
dave_cheney.net
Hello khr@golang.org, minux@golang.org, rsc@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
10 years, 8 months ago (2014-08-21 07:05:23 UTC) #1
khr
https://codereview.appspot.com/126490043/diff/40002/src/pkg/runtime/vlrt_arm.go File src/pkg/runtime/vlrt_arm.go (right): https://codereview.appspot.com/126490043/diff/40002/src/pkg/runtime/vlrt_arm.go#newcode81 src/pkg/runtime/vlrt_arm.go:81: yhi = dvl.hi /* causes something awful */ I ...
10 years, 8 months ago (2014-08-21 17:06:22 UTC) #2
dave_cheney.net
Hello khr@golang.org, minux@golang.org, rsc@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 8 months ago (2014-08-22 01:42:21 UTC) #3
dave_cheney.net
https://codereview.appspot.com/126490043/diff/40002/src/pkg/runtime/vlrt_arm.go File src/pkg/runtime/vlrt_arm.go (right): https://codereview.appspot.com/126490043/diff/40002/src/pkg/runtime/vlrt_arm.go#newcode81 src/pkg/runtime/vlrt_arm.go:81: yhi = dvl.hi /* causes something awful */ On ...
10 years, 8 months ago (2014-08-22 01:43:52 UTC) #4
minux
I'd suggest we consolidate all this into vlrt.go rather than vlrt_arm.go. the {uint,float}64to{float,uint}64 functions are ...
10 years, 8 months ago (2014-08-22 02:19:01 UTC) #5
dave_cheney.net
Yup. I can do that, it is obvious in retrospect. Wrt, the translation of _d2v, ...
10 years, 8 months ago (2014-08-22 02:21:21 UTC) #6
minux
https://codereview.appspot.com/126490043/diff/70001/src/pkg/runtime/vlrt_arm.go File src/pkg/runtime/vlrt_arm.go (right): https://codereview.appspot.com/126490043/diff/70001/src/pkg/runtime/vlrt_arm.go#newcode31 src/pkg/runtime/vlrt_arm.go:31: lo, hi uint32 the definition is not big-endian-safe, could ...
10 years, 8 months ago (2014-08-22 02:39:48 UTC) #7
dave_cheney.net
PTAL. vlrt_arm.go renamed to vlrt.go with a build tag, as this file is not based ...
10 years, 8 months ago (2014-08-22 05:17:56 UTC) #8
rsc
In the Go compilers (in contrast to the C compilers) I believe we always emit ...
10 years, 8 months ago (2014-08-22 14:47:59 UTC) #9
rsc
10 years, 8 months ago (2014-08-22 14:48:25 UTC) #10
dave_cheney.net
Hello khr@golang.org, minux@golang.org, rsc@golang.org, josharian@gmail.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 8 months ago (2014-08-23 06:02:30 UTC) #11
rsc
LGTM This code is awful and can be cleaned up now that we have 64-bit ...
10 years, 8 months ago (2014-08-23 21:14:42 UTC) #12
dave_cheney.net
Thanks Russ. I've restored the original copyright header, I'll submit this shortly. https://codereview.appspot.com/126490043/diff/150001/src/pkg/runtime/vlrt.go File src/pkg/runtime/vlrt.go ...
10 years, 8 months ago (2014-08-23 23:26:07 UTC) #13
dave_cheney.net
10 years, 8 months ago (2014-08-23 23:38:51 UTC) #14
*** Submitted as https://code.google.com/p/go/source/detail?r=a12bd7115455 ***

runtime: convert float64toint64, float64touint64 to Go

This is a very dumb translation to keep the code as close to the original C as
possible.

LGTM=rsc
R=khr, minux, rsc, josharian
CC=golang-codereviews
https://codereview.appspot.com/126490043
Sign in to reply to this message.

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