blob: 4f9dc2e038b5f760ad850b30cd5c0aa20c8c6e73 [file] [log] [blame]
Fan Hongjianfc41e622011-06-09 17:19:08 -04001// Copyright 2011 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 Pike8bca1482014-08-12 17:04:45 -07005#include "textflag.h"
Keith Randall1f796632013-08-12 10:25:18 -07006
Fan Hongjianfc41e622011-06-09 17:19:08 -04007// func Sqrt(x float64) float64
Keith Randall1f796632013-08-12 10:25:18 -07008TEXT ·Sqrt(SB),NOSPLIT,$0
Fan Hongjianfc41e622011-06-09 17:19:08 -04009 MOVD x+0(FP),F0
10 SQRTD F0,F0
Russ Cox07720b62013-03-22 12:57:55 -040011 MOVD F0,ret+8(FP)
Fan Hongjianfc41e622011-06-09 17:19:08 -040012 RET