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

Issue 6352079: code review 6352079: cmd/6g: fix float32/64->uint64 conversion (Closed)

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

Description

cmd/6g: fix float32/64->uint64 conversion CVTSS2SQ's rounding mode is controlled by the RC field of MXCSR; as we specifically need truncate semantic, we should use CVTTSS2SQ. Fixes issue 3804.

Patch Set 1 #

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

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

Total comments: 1

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

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

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

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -2 lines) Patch
M src/cmd/6g/gsubr.c View 1 1 chunk +2 lines, -2 lines 0 comments Download
A test/fixedbugs/bug447.go View 1 2 3 4 5 6 7 1 chunk +105 lines, -0 lines 0 comments Download

Messages

Total messages: 6
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-07-26 04:24:00 UTC) #1
rsc
thanks for fixing this. http://codereview.appspot.com/6352079/diff/7001/test/fixedbugs/bug446.go File test/fixedbugs/bug446.go (right): http://codereview.appspot.com/6352079/diff/7001/test/fixedbugs/bug446.go#newcode29 test/fixedbugs/bug446.go:29: fmt.Fprintf(bout, "\t%s := %s(39.7)\n", fn, ...
13 years, 5 months ago (2012-07-30 01:53:49 UTC) #2
minux1
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 4 months ago (2012-08-09 05:30:29 UTC) #3
minux1
ping?
13 years, 4 months ago (2012-08-21 06:59:44 UTC) #4
r
LGTM
13 years, 4 months ago (2012-08-23 04:39:29 UTC) #5
minux1
13 years, 4 months ago (2012-08-23 06:35:38 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=5972fe3f4418 ***

cmd/6g: fix float32/64->uint64 conversion
    CVTSS2SQ's rounding mode is controlled by the RC field of MXCSR;
as we specifically need truncate semantic, we should use CVTTSS2SQ.

    Fixes issue 3804.

R=rsc, r
CC=golang-dev
http://codereview.appspot.com/6352079
Sign in to reply to this message.

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