Text file
src/math/floor_ppc64x.s
1 // Copyright 2016 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
5 //go:build ppc64 || ppc64le
6 // +build ppc64 ppc64le
7
8 #include "textflag.h"
9
10 TEXT ·archFloor(SB),NOSPLIT,$0
11 FMOVD x+0(FP), F0
12 FRIM F0, F0
13 FMOVD F0, ret+8(FP)
14 RET
15
16 TEXT ·archCeil(SB),NOSPLIT,$0
17 FMOVD x+0(FP), F0
18 FRIP F0, F0
19 FMOVD F0, ret+8(FP)
20 RET
21
22 TEXT ·archTrunc(SB),NOSPLIT,$0
23 FMOVD x+0(FP), F0
24 FRIZ F0, F0
25 FMOVD F0, ret+8(FP)
26 RET
27
View as plain text