summaryrefslogtreecommitdiff
path: root/src/pkg/math/sin_386.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/sin_386.s')
-rw-r--r--src/pkg/math/sin_386.s6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pkg/math/sin_386.s b/src/pkg/math/sin_386.s
index b2a836eb1..09271c035 100644
--- a/src/pkg/math/sin_386.s
+++ b/src/pkg/math/sin_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 Cos(x float64) float64
-TEXT ·Cos(SB),7,$0
+TEXT ·Cos(SB),NOSPLIT,$0
FMOVD x+0(FP), F0 // F0=x
FCOS // F0=cos(x) if -2**63 < x < 2**63
FSTSW AX // AX=status word
@@ -24,7 +26,7 @@ TEXT ·Cos(SB),7,$0
RET
// func Sin(x float64) float64
-TEXT ·Sin(SB),7,$0
+TEXT ·Sin(SB),NOSPLIT,$0
FMOVD x+0(FP), F0 // F0=x
FSIN // F0=sin(x) if -2**63 < x < 2**63
FSTSW AX // AX=status word