Charles L. Dorian | 5336cd8 | 2010-01-10 15:41:07 -0800 | [diff] [blame] | 1 | // Copyright 2009 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Rob Pike | 8bca148 | 2014-08-12 17:04:45 -0700 | [diff] [blame] | 5 | #include "textflag.h" |
Keith Randall | 1f79663 | 2013-08-12 10:25:18 -0700 | [diff] [blame] | 6 | |
Charles L. Dorian | 5336cd8 | 2010-01-10 15:41:07 -0800 | [diff] [blame] | 7 | // func Sqrt(x float64) float64 |
Keith Randall | 1f79663 | 2013-08-12 10:25:18 -0700 | [diff] [blame] | 8 | TEXT ·Sqrt(SB),NOSPLIT,$0 |
Charles L. Dorian | 5336cd8 | 2010-01-10 15:41:07 -0800 | [diff] [blame] | 9 | FMOVD x+0(FP),F0 |
| 10 | FSQRT |
Russ Cox | 07720b6 | 2013-03-22 12:57:55 -0400 | [diff] [blame] | 11 | FMOVDP F0,ret+8(FP) |
Charles L. Dorian | 5336cd8 | 2010-01-10 15:41:07 -0800 | [diff] [blame] | 12 | RET |