...
Text file
src/math/floor_wasm.s
Documentation: math
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
7TEXT ·archFloor(SB),NOSPLIT,$0
8 Get SP
9 F64Load x+0(FP)
10 F64Floor
11 F64Store ret+8(FP)
12 RET
13
14TEXT ·archCeil(SB),NOSPLIT,$0
15 Get SP
16 F64Load x+0(FP)
17 F64Ceil
18 F64Store ret+8(FP)
19 RET
20
21TEXT ·archTrunc(SB),NOSPLIT,$0
22 Get SP
23 F64Load x+0(FP)
24 F64Trunc
25 F64Store ret+8(FP)
26 RET
View as plain text