github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/math/floor_ppc64x.s (about)

     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  // +build ppc64 ppc64le
     6  
     7  #include "textflag.h"
     8  
     9  TEXT ·Floor(SB),NOSPLIT,$0
    10  	FMOVD   x+0(FP), F0
    11  	FRIM	F0, F0
    12  	FMOVD   F0, ret+8(FP)
    13  	RET
    14  
    15  TEXT ·Ceil(SB),NOSPLIT,$0
    16  	FMOVD   x+0(FP), F0
    17  	FRIP    F0, F0
    18  	FMOVD	F0, ret+8(FP)
    19  	RET
    20  
    21  TEXT ·Trunc(SB),NOSPLIT,$0
    22  	FMOVD   x+0(FP), F0
    23  	FRIZ    F0, F0
    24  	FMOVD   F0, ret+8(FP)
    25  	RET