LEFT | RIGHT |
(no file at all) | |
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 #include "../../cmd/ld/textflag.h" | 5 #include "textflag.h" |
6 | 6 |
7 // func Abs(x float64) float64 | 7 // func Abs(x float64) float64 |
8 TEXT ·Abs(SB),NOSPLIT,$0 | 8 TEXT ·Abs(SB),NOSPLIT,$0 |
9 MOVQ $(1<<63), BX | 9 MOVQ $(1<<63), BX |
10 MOVQ BX, X0 // movsd $(-0.0), x0 | 10 MOVQ BX, X0 // movsd $(-0.0), x0 |
11 MOVSD x+0(FP), X1 | 11 MOVSD x+0(FP), X1 |
12 ANDNPD X1, X0 | 12 ANDNPD X1, X0 |
13 MOVSD X0, ret+8(FP) | 13 MOVSD X0, ret+8(FP) |
14 RET | 14 RET |
LEFT | RIGHT |