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

Side by Side Diff: src/pkg/math/fabs_amd64.s

Issue 4104041: correctly compile -0 floating point constants
Patch Set: code review 4104041: correctly compile -0 floating point constants Created 13 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/math/all_test.go ('k') | src/pkg/math/sincos_amd64.s » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // func Fabs(x float64) float64 5 // func Fabs(x float64) float64
6 TEXT ·Fabs(SB),7,$0 6 TEXT ·Fabs(SB),7,$0
7 » MOVQ $(1<<63), BX 7 » MOVSD $-0.0, X0
8 » MOVQ BX, X0 // movsd $(-0.0), x0
9 MOVSD x+0(FP), X1 8 MOVSD x+0(FP), X1
10 ANDNPD X1, X0 9 ANDNPD X1, X0
11 MOVSD X0, r+8(FP) 10 MOVSD X0, r+8(FP)
12 RET 11 RET
OLDNEW
« no previous file with comments | « src/pkg/math/all_test.go ('k') | src/pkg/math/sincos_amd64.s » ('j') | no next file with comments »

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