summaryrefslogtreecommitdiff
path: root/src/pkg/math/fdim_amd64.s
blob: 1f45ef8b97926a1c6bc40269834642a4d8f31842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2010 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 Fdim(x, y float64) float64
TEXT ·Fdim(SB),7,$0
	MOVSD x+0(FP), X0
	SUBSD y+8(FP), X0
	MOVSD $(0.0), X1
	MAXSD X1, X0
	MOVSD X0, r+16(FP)
	RET

// func Fmax(x, y float64) float64
TEXT ·Fmax(SB),7,$0
	MOVSD x+0(FP), X0
	MAXSD y+8(FP), X0
	MOVSD X0, r+16(FP)
	RET

// func Fmin(x, y float64) float64
TEXT ·Fmin(SB),7,$0
	MOVSD x+0(FP), X0
	MINSD y+8(FP), X0
	MOVSD X0, r+16(FP)
	RET