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
7 #include "textflag.h"
8
9 TEXT ·archFloor(SB),NOSPLIT,$0
10 FMOVD x+0(FP), F0
11 FRIM F0, F0
12 FMOVD F0, ret+8(FP)
13 RET
14
15 TEXT ·archCeil(SB),NOSPLIT,$0
16 FMOVD x+0(FP), F0
17 FRIP F0, F0
18 FMOVD F0, ret+8(FP)
19 RET
20
21 TEXT ·archTrunc(SB),NOSPLIT,$0
22 FMOVD x+0(FP), F0
23 FRIZ F0, F0
24 FMOVD F0, ret+8(FP)
25 RET
26
View as plain text