summaryrefslogtreecommitdiff
path: root/src/pkg/math/log10_386.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/log10_386.s')
-rw-r--r--src/pkg/math/log10_386.s6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pkg/math/log10_386.s b/src/pkg/math/log10_386.s
index d4f94235e..4ae069da6 100644
--- a/src/pkg/math/log10_386.s
+++ b/src/pkg/math/log10_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 Log10(x float64) float64
-TEXT ·Log10(SB),7,$0
+TEXT ·Log10(SB),NOSPLIT,$0
FLDLG2 // F0=log10(2)
FMOVD x+0(FP), F0 // F0=x, F1=log10(2)
FYL2X // F0=log10(x)=log2(x)*log10(2)
@@ -11,7 +13,7 @@ TEXT ·Log10(SB),7,$0
RET
// func Log2(x float64) float64
-TEXT ·Log2(SB),7,$0
+TEXT ·Log2(SB),NOSPLIT,$0
FLD1 // F0=1
FMOVD x+0(FP), F0 // F0=x, F1=1
FYL2X // F0=log2(x)