github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/math/floor_wasm.s (about)

     1  // Copyright 2018 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  TEXT ·archFloor(SB),NOSPLIT,$0
     8  	Get SP
     9  	F64Load x+0(FP)
    10  	F64Floor
    11  	F64Store ret+8(FP)
    12  	RET
    13  
    14  TEXT ·archCeil(SB),NOSPLIT,$0
    15  	Get SP
    16  	F64Load x+0(FP)
    17  	F64Ceil
    18  	F64Store ret+8(FP)
    19  	RET
    20  
    21  TEXT ·archTrunc(SB),NOSPLIT,$0
    22  	Get SP
    23  	F64Load x+0(FP)
    24  	F64Trunc
    25  	F64Store ret+8(FP)
    26  	RET