mirror of
https://github.com/golang/go
synced 2024-10-04 14:21:21 -06:00
809479740f
Uses the SSE2 max, min instructions. Also shorter sqrt_amd64.s R=rsc CC=golang-dev https://golang.org/cl/1216042
10 lines
258 B
ArmAsm
10 lines
258 B
ArmAsm
// Copyright 2009 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// func Sqrt(x float64) float64
|
|
TEXT ·Sqrt(SB),7,$0
|
|
SQRTSD x+0(FP), X0
|
|
MOVSD X0, r+8(FP)
|
|
RET
|