diff options
Diffstat (limited to 'src/pkg/math/floor_386.s')
-rw-r--r-- | src/pkg/math/floor_386.s | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pkg/math/floor_386.s b/src/pkg/math/floor_386.s index 9aa71c043..37d5a4559 100644 --- a/src/pkg/math/floor_386.s +++ b/src/pkg/math/floor_386.s @@ -2,8 +2,10 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +#include "../../cmd/ld/textflag.h" + // func Ceil(x float64) float64 -TEXT ·Ceil(SB),7,$0 +TEXT ·Ceil(SB),NOSPLIT,$0 FMOVD x+0(FP), F0 // F0=x FSTCW -2(SP) // save old Control Word MOVW -2(SP), AX @@ -17,7 +19,7 @@ TEXT ·Ceil(SB),7,$0 RET // func Floor(x float64) float64 -TEXT ·Floor(SB),7,$0 +TEXT ·Floor(SB),NOSPLIT,$0 FMOVD x+0(FP), F0 // F0=x FSTCW -2(SP) // save old Control Word MOVW -2(SP), AX @@ -31,7 +33,7 @@ TEXT ·Floor(SB),7,$0 RET // func Trunc(x float64) float64 -TEXT ·Trunc(SB),7,$0 +TEXT ·Trunc(SB),NOSPLIT,$0 FMOVD x+0(FP), F0 // F0=x FSTCW -2(SP) // save old Control Word MOVW -2(SP), AX |