...

Text file src/pkg/math/floor_wasm.s

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

View as plain text