github.com/likebike/go--@v0.0.0-20190911215757-0bd925d16e96/go/src/math/floor_arm64.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  #include "textflag.h"
     6  
     7  // func Floor(x float64) float64
     8  TEXT ·Floor(SB),NOSPLIT,$0
     9  	FMOVD	x+0(FP), F0
    10  	FRINTMD	F0, F0
    11  	FMOVD	F0, ret+8(FP)
    12  	RET
    13  
    14  // func Ceil(x float64) float64
    15  TEXT ·Ceil(SB),NOSPLIT,$0
    16  	FMOVD	x+0(FP), F0
    17  	FRINTPD	F0, F0
    18  	FMOVD	F0, ret+8(FP)
    19  	RET
    20  
    21  // func Trunc(x float64) float64
    22  TEXT ·Trunc(SB),NOSPLIT,$0
    23  	FMOVD	x+0(FP), F0
    24  	FRINTZD	F0, F0
    25  	FMOVD	F0, ret+8(FP)
    26  	RET