]> Cypherpunks repositories - gostls13.git/commitdiff
math: convert textflags from numbers to symbols
authorKeith Randall <khr@golang.org>
Mon, 12 Aug 2013 17:25:18 +0000 (10:25 -0700)
committerKeith Randall <khr@golang.org>
Mon, 12 Aug 2013 17:25:18 +0000 (10:25 -0700)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12773044

67 files changed:
src/pkg/math/abs_386.s
src/pkg/math/abs_amd64.s
src/pkg/math/abs_arm.s
src/pkg/math/asin_386.s
src/pkg/math/asin_amd64.s
src/pkg/math/asin_arm.s
src/pkg/math/atan2_386.s
src/pkg/math/atan2_amd64.s
src/pkg/math/atan2_arm.s
src/pkg/math/atan_386.s
src/pkg/math/atan_amd64.s
src/pkg/math/atan_arm.s
src/pkg/math/dim_386.s
src/pkg/math/dim_amd64.s
src/pkg/math/dim_arm.s
src/pkg/math/exp2_386.s
src/pkg/math/exp2_amd64.s
src/pkg/math/exp2_arm.s
src/pkg/math/exp_386.s
src/pkg/math/exp_amd64.s
src/pkg/math/exp_arm.s
src/pkg/math/expm1_386.s
src/pkg/math/expm1_amd64.s
src/pkg/math/expm1_arm.s
src/pkg/math/floor_386.s
src/pkg/math/floor_amd64.s
src/pkg/math/floor_arm.s
src/pkg/math/fltasm_amd64.s
src/pkg/math/frexp_386.s
src/pkg/math/frexp_amd64.s
src/pkg/math/frexp_arm.s
src/pkg/math/hypot_386.s
src/pkg/math/hypot_amd64.s
src/pkg/math/hypot_arm.s
src/pkg/math/ldexp_386.s
src/pkg/math/ldexp_amd64.s
src/pkg/math/ldexp_arm.s
src/pkg/math/log10_386.s
src/pkg/math/log10_amd64.s
src/pkg/math/log10_arm.s
src/pkg/math/log1p_386.s
src/pkg/math/log1p_amd64.s
src/pkg/math/log1p_arm.s
src/pkg/math/log_386.s
src/pkg/math/log_amd64.s
src/pkg/math/log_arm.s
src/pkg/math/mod_386.s
src/pkg/math/mod_amd64.s
src/pkg/math/mod_arm.s
src/pkg/math/modf_386.s
src/pkg/math/modf_amd64.s
src/pkg/math/modf_arm.s
src/pkg/math/remainder_386.s
src/pkg/math/remainder_amd64.s
src/pkg/math/remainder_arm.s
src/pkg/math/sin_386.s
src/pkg/math/sin_amd64.s
src/pkg/math/sin_arm.s
src/pkg/math/sincos_386.s
src/pkg/math/sincos_amd64.s
src/pkg/math/sincos_arm.s
src/pkg/math/sqrt_386.s
src/pkg/math/sqrt_amd64.s
src/pkg/math/sqrt_arm.s
src/pkg/math/tan_386.s
src/pkg/math/tan_amd64.s
src/pkg/math/tan_arm.s

index 5746764756df43e3b934f65c62124afb0b76feb9..3490cf66c77a115d45e769acb47a129246392238 100644 (file)
@@ -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 Abs(x float64) float64
-TEXT ·Abs(SB),7,$0
+TEXT ·Abs(SB),NOSPLIT,$0
        FMOVD   x+0(FP), F0  // F0=x
        FABS                 // F0=|x|
        FMOVDP  F0, ret+8(FP)
index 11934604587da0791a49c5080de3b211c79c6edf..779c8f5484053a660970e941c90ce1275ce463b7 100644 (file)
@@ -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 Abs(x float64) float64
-TEXT ·Abs(SB),7,$0
+TEXT ·Abs(SB),NOSPLIT,$0
        MOVQ   $(1<<63), BX
        MOVQ   BX, X0 // movsd $(-0.0), x0
        MOVSD  x+0(FP), X1
index 929e1ce675cc388e8bad870cd6149a9579ecf850..b5117ab39c21b4432ab46f7c8a451d37e1d19290 100644 (file)
@@ -2,7 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Abs(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Abs(SB),NOSPLIT,$0
        MOVW    x_lo+0(FP), R0
        MOVW    x_hi+4(FP), R1
        AND     $((1<<31)-1), R1
index cd3f9cd9bde118fa82e655099293e5e8768b55a6..2c1d2709488a2f9e2c3f621a8cf043a9e10486a8 100644 (file)
@@ -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 Asin(x float64) float64
-TEXT ·Asin(SB),7,$0
+TEXT ·Asin(SB),NOSPLIT,$0
        FMOVD   x+0(FP), F0  // F0=sin(x)
        FMOVD   F0, F1       // F0=sin(x), F1=sin(x)
        FMULD   F0, F0       // F0=sin(x)*sin(x), F1=sin(x)
@@ -15,7 +17,7 @@ TEXT ·Asin(SB),7,$0
        RET
 
 // func Acos(x float64) float64
-TEXT ·Acos(SB),7,$0
+TEXT ·Acos(SB),NOSPLIT,$0
        FMOVD   x+0(FP), F0  // F0=cos(x)
        FMOVD   F0, F1       // F0=cos(x), F1=cos(x)
        FMULD   F0, F0       // F0=cos(x)*cos(x), F1=cos(x)
index 42151f1e957fa6e864c6d1d0ff4e9be8bce65f1c..ea48104ac6417a88cb9b996257ca5bccc8a39331 100644 (file)
@@ -2,8 +2,10 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Asin(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Asin(SB),NOSPLIT,$0
        JMP ·asin(SB)
 
-TEXT ·Acos(SB),7,$0
+TEXT ·Acos(SB),NOSPLIT,$0
        JMP ·acos(SB)
index d27213fadcf11b9b6acced4f740873649d0a3200..b90526003e128466b39cef52901570c94e7cfe30 100644 (file)
@@ -2,8 +2,10 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Asin(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Asin(SB),NOSPLIT,$0
        B ·asin(SB)
 
-TEXT ·Acos(SB),7,$0
+TEXT ·Acos(SB),NOSPLIT,$0
        B ·acos(SB)
index 1bf301c4c0da5e68ecace8a789660f174b01c0ec..fb649316a05ab57eec366d78f59368bee3df9074 100644 (file)
@@ -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 Atan2(y, x float64) float64    // =atan(y/x)
-TEXT ·Atan2(SB),7,$0
+TEXT ·Atan2(SB),NOSPLIT,$0
        FMOVD   y+0(FP), F0  // F0=y
        FMOVD   x+8(FP), F0  // F0=x, F1=y
        FPATAN               // F0=atan(F1/F0)
index 1c5b038c2a8cb6f556bb7f75d15d0352fcc9fd03..f7a5a11d469450cb65982c716f717c886273cfbe 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Atan2(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Atan2(SB),NOSPLIT,$0
        JMP ·atan2(SB)
index c2edafae17ffecf104902788fbf353d6f1796f63..24bff2c03d213d056ea0ce880821bb140eded902 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Atan2(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Atan2(SB),NOSPLIT,$0
        B ·atan2(SB)
index c988705beee4f0f8b0375aeae498f835edefdfdc..aad8ffcec734b6314f5ebb83ecc2d7b568177689 100644 (file)
@@ -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 Atan(x float64) float64
-TEXT ·Atan(SB),7,$0
+TEXT ·Atan(SB),NOSPLIT,$0
        FMOVD   x+0(FP), F0  // F0=x
        FLD1                 // F0=1, F1=x
        FPATAN               // F0=atan(F1/F0)
index 206072b9312cedbf305b573a90367dd78f1aa895..fc4a91b0deb4c166de6d17f1005ced4cc899ee17 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Atan(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Atan(SB),NOSPLIT,$0
        JMP ·atan(SB)
index ed492ab46883839d687612993f40300bea14ef8e..defa93a1ede86056e63acdbb6482a8a1bea6e8d6 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Atan(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Atan(SB),NOSPLIT,$0
        B ·atan(SB)
index 6a31c754076c6e511fd36bf19cdf3b81538f54e9..f715114c43661f2f097465fcfbd7c2b39f36c264 100644 (file)
@@ -2,11 +2,13 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Dim(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Dim(SB),NOSPLIT,$0
        JMP ·dim(SB)
 
-TEXT ·Max(SB),7,$0
+TEXT ·Max(SB),NOSPLIT,$0
        JMP ·max(SB)
 
-TEXT ·Min(SB),7,$0
+TEXT ·Min(SB),NOSPLIT,$0
        JMP ·min(SB)
index 0ae8ad19629c6cb57a96aeb75b50b1af04918647..38423ef028c58082b8239e456f849ffca87852c6 100644 (file)
@@ -2,12 +2,14 @@
 // 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"
+
 #define PosInf 0x7FF0000000000000
 #define NaN    0x7FF8000000000001
 #define NegInf 0xFFF0000000000000
 
 // func Dim(x, y float64) float64
-TEXT ·Dim(SB),7,$0
+TEXT ·Dim(SB),NOSPLIT,$0
        // (+Inf, +Inf) special case
        MOVQ    x+0(FP), BX
        MOVQ    y+8(FP), CX
@@ -45,7 +47,7 @@ isDimNaN:
        RET
 
 // func ·Max(x, y float64) float64
-TEXT ·Max(SB),7,$0
+TEXT ·Max(SB),NOSPLIT,$0
        // +Inf special cases
        MOVQ    $PosInf, AX
        MOVQ    x+0(FP), R8
@@ -98,7 +100,7 @@ isMaxZero:
 */
 
 // func Min(x, y float64) float64
-TEXT ·Min(SB),7,$0
+TEXT ·Min(SB),NOSPLIT,$0
        // -Inf special cases
        MOVQ    $NegInf, AX
        MOVQ    x+0(FP), R8
index 304fa78cde84bbdf6392666e95d9569026c81dc4..162f08cda58c2d280ac5d144bf59f62f7dfbbc16 100644 (file)
@@ -2,11 +2,13 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Dim(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Dim(SB),NOSPLIT,$0
        B ·dim(SB)
 
-TEXT ·Min(SB),7,$0
+TEXT ·Min(SB),NOSPLIT,$0
        B ·min(SB)
 
-TEXT ·Max(SB),7,$0
+TEXT ·Max(SB),NOSPLIT,$0
        B ·max(SB)
index 15376263194a50ae47078d6b943b5e883267a628..71959d94dde92501c7ef9770440c9fc35be58157 100644 (file)
@@ -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 Exp2(x float64) float64
-TEXT ·Exp2(SB),7,$0
+TEXT ·Exp2(SB),NOSPLIT,$0
 // test bits for not-finite
        MOVL    x_hi+4(FP), AX
        ANDL    $0x7ff00000, AX
index 7bb44f78a2432d8a0571056ad2c92e1b516c6a1e..77a53dad4e02b01bfcf273f4f2bce7133a08e1ea 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Exp2(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Exp2(SB),NOSPLIT,$0
        JMP ·exp2(SB)
index 41b63bfaf84c550ead19c17f61e58d71e5504686..fe51f25226ec95ff5456fa398f64f4db4aaa4ab8 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Exp2(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Exp2(SB),NOSPLIT,$0
        B ·exp2(SB)
index aeceb3cadc2dc0cb433e10f180cef181dee6c9f3..af2d680d55031de48be91d9e2ff89b8fca4fed3b 100644 (file)
@@ -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 Exp(x float64) float64
-TEXT ·Exp(SB),7,$0
+TEXT ·Exp(SB),NOSPLIT,$0
 // test bits for not-finite
        MOVL    x_hi+4(FP), AX
        ANDL    $0x7ff00000, AX
index eb6fb043230ca323925e814ea567456b931ca125..070b45264a811f8fb8fe84ca03edaba5017fb79a 100644 (file)
@@ -2,6 +2,8 @@
 // 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"
+
 // The method is based on a paper by Naoki Shibata: "Efficient evaluation
 // methods of elementary functions suitable for SIMD computation", Proc.
 // of International Supercomputing Conference 2010 (ISC'10), pp. 25 -- 32
@@ -31,7 +33,7 @@
 #define NegInf 0xFFF0000000000000
 
 // func Exp(x float64) float64
-TEXT ·Exp(SB),7,$0
+TEXT ·Exp(SB),NOSPLIT,$0
 // test bits for not-finite
        MOVQ    x+0(FP), BX
        MOVQ    $~(1<<63), AX // sign bit mask
index a95fa9342af0b8f89fc08ebd4e55e91bca587ec0..130b502ac17f583d189fcf5fe57edc667a9368f4 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Exp(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Exp(SB),NOSPLIT,$0
        B ·exp(SB)
index 0ff9c4ab04d1d40bb38a5f8441d6b49289c7db35..b268c58c638f3e08a18fdc2a3b3057c70acea5f9 100644 (file)
@@ -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 Expm1(x float64) float64
-TEXT ·Expm1(SB),7,$0
+TEXT ·Expm1(SB),NOSPLIT,$0
        FLDLN2               // F0=log(2) = 1/log2(e) ~ 0.693147
        FMOVD   x+0(FP), F0  // F0=x, F1=1/log2(e)
        FABS                 // F0=|x|, F1=1/log2(e) 
index a3b09e2f6dd2168c91ed37372716f09ffb866d10..66a75b3d558fbfd2b60be7a6670a5d0ef653c3e8 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Expm1(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Expm1(SB),NOSPLIT,$0
        JMP ·expm1(SB)
index e4e40441b5dfcc0a3d15c4480fb15e446f7fcd41..838744447f1ba89c4eb3c9c2d598782b84190667 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Expm1(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Expm1(SB),NOSPLIT,$0
        B ·expm1(SB)
index 9aa71c043f7017e2a0150aab1ad400d121e8c4ff..37d5a4559fc1bf8bdb8ec454d9dcbb2535f39194 100644 (file)
@@ -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
index bb1a2fd22a1ebc185b69f1b53b2449357b409983..2fd31c4fae400adcbdf5bc3468d33f60bb8fd881 100644 (file)
@@ -2,10 +2,12 @@
 // 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"
+
 #define Big            0x4330000000000000 // 2**52
 
 // func Floor(x float64) float64
-TEXT ·Floor(SB),7,$0
+TEXT ·Floor(SB),NOSPLIT,$0
        MOVQ    x+0(FP), AX
        MOVQ    $~(1<<63), DX // sign bit mask
        ANDQ    AX,DX // DX = |x|
@@ -27,7 +29,7 @@ isBig_floor:
        RET
 
 // func Ceil(x float64) float64
-TEXT ·Ceil(SB),7,$0
+TEXT ·Ceil(SB),NOSPLIT,$0
        MOVQ    x+0(FP), AX
        MOVQ    $~(1<<63), DX // sign bit mask
        MOVQ    AX, BX // BX = copy of x
@@ -53,7 +55,7 @@ isBig_ceil:
        RET
 
 // func Trunc(x float64) float64
-TEXT ·Trunc(SB),7,$0
+TEXT ·Trunc(SB),NOSPLIT,$0
        MOVQ    x+0(FP), AX
        MOVQ    $~(1<<63), DX // sign bit mask
        MOVQ    AX, BX // BX = copy of x
index e3ae53f5259b5d0fd9db6730500618922ee88b1c..cb3b98e95c39dd10812a80a86a8b0ddd40128daf 100644 (file)
@@ -2,11 +2,13 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Floor(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Floor(SB),NOSPLIT,$0
        B       ·floor(SB)
 
-TEXT ·Ceil(SB),7,$0
+TEXT ·Ceil(SB),NOSPLIT,$0
        B       ·ceil(SB)
 
-TEXT ·Trunc(SB),7,$0
+TEXT ·Trunc(SB),NOSPLIT,$0
        B       ·trunc(SB)
index 66442cd30fc27fa816c372ce142edd77148cc120..3e8bae5e20dcee50db7cfaa63999bc7ca0e35c7e 100644 (file)
@@ -23,7 +23,9 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-TEXT   ·SetFPControl(SB), 7, $8
+#include "../../cmd/ld/textflag.h"
+
+TEXT   ·SetFPControl(SB), NOSPLIT, $8
        // Set new
        MOVL    p+0(FP), DI
        XORL    $(0x3F<<7), DI
@@ -37,7 +39,7 @@ TEXT  ·SetFPControl(SB), 7, $8
        LDMXCSR 0(SP)
        RET
 
-TEXT   ·GetFPControl(SB), 7, $0
+TEXT   ·GetFPControl(SB), NOSPLIT, $0
        WAIT
        STMXCSR 0(SP)
        MOVWLZX 0(SP), AX
index 95e50de02f6cfa41ceaf6a73706410863ca4b3af..c6d0a80edae20420e38701f9515a404366fcd7f4 100644 (file)
@@ -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 Frexp(f float64) (frac float64, exp int)
-TEXT ·Frexp(SB),7,$0
+TEXT ·Frexp(SB),NOSPLIT,$0
        FMOVD   f+0(FP), F0   // F0=f
        FXAM
        FSTSW   AX
index bc52b79ab76b1055aea3201c9ac69620e44bb412..03d1012433ffa5458278d83436d65e610deafd7c 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Frexp(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Frexp(SB),NOSPLIT,$0
        JMP ·frexp(SB)
index cfd5d0b525964bb6ea5119b722f0f0291e9fdfda..9d40ae46a666e9e448d7e0625e0e988ada946359 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Frexp(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Frexp(SB),NOSPLIT,$0
        B ·frexp(SB)
index 8edfe064f7e7c79c41fb5989f14dc2df82c5d5b1..eec1bf5548e1d0b7803f5ff1e2872bf5f3dfc0f6 100644 (file)
@@ -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 Hypot(p, q float64) float64
-TEXT ·Hypot(SB),7,$0
+TEXT ·Hypot(SB),NOSPLIT,$0
 // test bits for not-finite
        MOVL    p_hi+4(FP), AX   // high word p
        ANDL    $0x7ff00000, AX
index 40ba6f41dd4b4355133a3769ca9ebf86a84262f9..5c0ff4dd835abb0bd4fec30785f6d3af9c9c550c 100644 (file)
@@ -2,11 +2,13 @@
 // 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"
+
 #define PosInf 0x7FF0000000000000
 #define NaN 0x7FF8000000000001
 
 // func Hypot(p, q float64) float64
-TEXT ·Hypot(SB),7,$0
+TEXT ·Hypot(SB),NOSPLIT,$0
        // test bits for special cases
        MOVQ    p+0(FP), BX
        MOVQ    $~(1<<63), AX
index 2c599fd551d0a38d71c0dddce73ff36e619c5ee1..2562aa8306bfca09223f8d738b6191852b9583ee 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Hypot(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Hypot(SB),NOSPLIT,$0
        B ·hypot(SB)
index 566245dc2e472b1fd5383a2c8ce7cc3faadc2156..baf377ead6128880e482f7c352df3cb489a37804 100644 (file)
@@ -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 Ldexp(frac float64, exp int) float64
-TEXT ·Ldexp(SB),7,$0
+TEXT ·Ldexp(SB),NOSPLIT,$0
        FMOVL   exp+8(FP), F0   // F0=exp
        FMOVD   frac+0(FP), F0   // F0=frac, F1=e
        FSCALE                // F0=x*2**e, F1=e
index a8d458322f082b0a834f81e13d9737a4f15b90dd..c7fc226efab1f89345f95adefe55566d445c53a1 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Ldexp(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Ldexp(SB),NOSPLIT,$0
        JMP ·ldexp(SB)
index 3c42f515e699c83430c40ec5510a345ca77f1654..16744ea57dc9a3426cdd959f02bca1856fec0569 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Ldexp(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Ldexp(SB),NOSPLIT,$0
        B ·ldexp(SB)
index d4f94235e12b9bee8b4f43a023a75cdd2595892d..4ae069da62d46d95d05895481286a41ceb56684c 100644 (file)
@@ -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)
index 86a3b057770c448ead6946bd2ce75d780d0c3929..b9ae8326896cf398d6431165a137f2718bc83358 100644 (file)
@@ -2,8 +2,10 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Log10(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Log10(SB),NOSPLIT,$0
        JMP ·log10(SB)
 
-TEXT ·Log2(SB),7,$0
+TEXT ·Log2(SB),NOSPLIT,$0
        JMP ·log2(SB)
index 619b0fe1e91ea43f44e611f60476475ef0f7091e..fa7580f6fbbbb62f82797b396c1fb8bf5a83df34 100644 (file)
@@ -2,8 +2,10 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Log10(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Log10(SB),NOSPLIT,$0
        B ·log10(SB)
 
-TEXT ·Log2(SB),7,$0
+TEXT ·Log2(SB),NOSPLIT,$0
        B ·log2(SB)
index 30dc8033d291e876d9e1249dc9a6ff6cf007095b..3b30fd5b7fb2f506dfc79eaa71e4589f7e2900e8 100644 (file)
@@ -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 Log1p(x float64) float64
-TEXT ·Log1p(SB),7,$0
+TEXT ·Log1p(SB),NOSPLIT,$0
        FMOVD   $(2.928932188134524e-01), F0
        FMOVD   x+0(FP), F0  // F0=x, F1=1-sqrt(2)/2 = 0.29289321881345247559915564
        FABS                 // F0=|x|, F1=1-sqrt(2)/2
index 65c93adad74f2771e6fc0fb7b595762bb0afcdfa..48c24f41f27932af66cd96c6f1b0fd9cb33fd2a6 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Log1p(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Log1p(SB),NOSPLIT,$0
        JMP ·log1p(SB)
index 0e599aaffb8e352124067c8a8c932a8d64de58dc..fd2740d0dde680e33f7ef8c59a6c5bb1ea8bc48d 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Log1p(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Log1p(SB),NOSPLIT,$0
        B ·log1p(SB)
index 7a6f2c052542510b3948b7d9c80ce27aa9fb0e58..21a0633b19c53a30c0d949d3763d0bf9d63b912b 100644 (file)
@@ -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 Log(x float64) float64
-TEXT ·Log(SB),7,$0
+TEXT ·Log(SB),NOSPLIT,$0
        FLDLN2               // F0=log(2)
        FMOVD   x+0(FP), F0  // F0=x, F1=log(2)
        FYL2X                // F0=log(x)=log2(x)*log(2)
index 6ae5fbc95ebd6b154845d51bfa2b06cc16d16b61..dffc5aec88335c2a54c0d9e14a074378466938ae 100644 (file)
@@ -2,6 +2,8 @@
 // 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"
+
 #define HSqrt2 7.07106781186547524401e-01 // sqrt(2)/2
 #define Ln2Hi  6.93147180369123816490e-01 // 0x3fe62e42fee00000
 #define Ln2Lo  1.90821492927058770002e-10 // 0x3dea39ef35793c76
@@ -17,7 +19,7 @@
 #define PosInf 0x7FF0000000000000
 
 // func Log(x float64) float64
-TEXT ·Log(SB),7,$0
+TEXT ·Log(SB),NOSPLIT,$0
        // test bits for special cases
        MOVQ    x+0(FP), BX
        MOVQ    $~(1<<63), AX // sign bit mask
index 3dce1e9d4e8de7a7dfcb86e5426ac496b26ecbfc..28448aeefc61690c4d2ef02a769fffa9a6689bcd 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Log(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Log(SB),NOSPLIT,$0
        B ·log(SB)
index bcb451b5dd97ba477c4b269b3cf3ad670fbb4cd1..9b3b6bd06fec13e5bc7e0ad4b9241d4ec7fd7680 100644 (file)
@@ -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 Mod(x, y float64) float64
-TEXT ·Mod(SB),7,$0
+TEXT ·Mod(SB),NOSPLIT,$0
        FMOVD   y+8(FP), F0  // F0=y
        FMOVD   x+0(FP), F0  // F0=x, F1=y
        FPREM                // F0=reduced_x, F1=y
index 33b86be408661bfcc605a15f5ab792fb7a8a546a..bef83fcf7f71bf98ac7d18052ccb5912234e6691 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Mod(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Mod(SB),NOSPLIT,$0
        JMP ·mod(SB)
index 47c564bf11051aa0502612b0a58a280f0c72904e..1f51588f8dfe87e90e665b971c031f1fbc87a99e 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Mod(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Mod(SB),NOSPLIT,$0
        B ·mod(SB)
index f5dc415c38722c3f17f6690a07d8392ba4b29a68..07a0dc5cfe997e2be54e2891265fe88ab5c70a65 100644 (file)
@@ -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 Modf(f float64) (int float64, frac float64)
-TEXT ·Modf(SB),7,$0
+TEXT ·Modf(SB),NOSPLIT,$0
        FMOVD   f+0(FP), F0  // F0=f
        FMOVD   F0, F1       // F0=f, F1=f
        FSTCW   -2(SP)       // save old Control Word
index 2a6d7ea042bc82eb92f534235d6df5420e1d7986..05feb4bf90c965ec97990ba22f7bded73d52295b 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Modf(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Modf(SB),NOSPLIT,$0
        JMP ·modf(SB)
index 6cef1873404d3f380b83d80544951a36415c6149..e6bd26d53bd5055aea45987b3f9a03f2fd4071db 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Modf(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Modf(SB),NOSPLIT,$0
        B ·modf(SB)
index 2238aba49f2925bccbb6a42db6010e7912023746..bbe13a0d92724fa142e5c7659f4cce47e07ae63a 100644 (file)
@@ -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 Remainder(x, y float64) float64
-TEXT ·Remainder(SB),7,$0
+TEXT ·Remainder(SB),NOSPLIT,$0
        FMOVD   y+8(FP), F0  // F0=y
        FMOVD   x+0(FP), F0  // F0=x, F1=y
        FPREM1               // F0=reduced_x, F1=y
index f04bd3de7abe4496c7dfd696832d31825771c8b7..e5e23c7ce315c9f68bcd407bd3175092986bced1 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Remainder(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Remainder(SB),NOSPLIT,$0
        JMP ·remainder(SB)
index 642af6a85a6ef274423d4f9ef33ebd47950e0e23..8728afe931087ee7e68fe689a44c0422c4ac4386 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Remainder(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Remainder(SB),NOSPLIT,$0
        B ·remainder(SB)
index b2a836eb1267408b39943737ad88ec1584a49752..09271c0355954f1e2f3dd92552afbf9e52d45013 100644 (file)
@@ -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
index c9c99e5b35d56ed095375729c71c35896eec99bf..008bf4be58217af17966bd391c3a73cd4c325f10 100644 (file)
@@ -2,8 +2,10 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Sin(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Sin(SB),NOSPLIT,$0
        JMP     ·sin(SB)
 
-TEXT ·Cos(SB),7,$0
+TEXT ·Cos(SB),NOSPLIT,$0
        JMP     ·cos(SB)
index 9447ca2ebca4fe2b63dda67251712ffcc22c043c..a057b4fc9d51f21b953b963623472ffe240996b4 100644 (file)
@@ -2,8 +2,10 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Sin(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Sin(SB),NOSPLIT,$0
        B       ·sin(SB)
 
-TEXT ·Cos(SB),7,$0
+TEXT ·Cos(SB),NOSPLIT,$0
        B       ·cos(SB)
index 8f5e0f8d1e3ceac0785cf6c8d026dc0b2be4990c..bf964b168119278d7778857abf37b94d8330ea58 100644 (file)
@@ -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 Sincos(x float64) (sin, cos float64)
-TEXT ·Sincos(SB),7,$0
+TEXT ·Sincos(SB),NOSPLIT,$0
        FMOVD   x+0(FP), F0  // F0=x
        FSINCOS              // F0=cos(x), F1=sin(x) if -2**63 < x < 2**63
        FSTSW   AX           // AX=status word
index c9dea09164fddc99de54c754fb1c32aa1c46eb47..bccc1ade125e055dd1eb11a5933340cece4a4556 100644 (file)
@@ -2,6 +2,8 @@
 // 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"
+
 // The method is based on a paper by Naoki Shibata: "Efficient evaluation
 // methods of elementary functions suitable for SIMD computation", Proc.
 // of International Supercomputing Conference 2010 (ISC'10), pp. 25 -- 32
@@ -31,7 +33,7 @@
 #define T4 5.51146384479717813051146e-07 // (+1.0/1814400)
 
 // func Sincos(d float64) (sin, cos float64)
-TEXT ·Sincos(SB),7,$0
+TEXT ·Sincos(SB),NOSPLIT,$0
        // test for special cases
        MOVQ    $~(1<<63), DX // sign bit mask
        MOVQ    x+0(FP), BX
index 3e2b0e4e0ddf7698063c8b0d25b26446f6e11ee4..b6866af54f22756f84cd079830d36efc8c8200cf 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Sincos(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Sincos(SB),NOSPLIT,$0
        B ·sincos(SB)
index 824fa634c5012397aa6811244815f8128bb3a025..2d0c786d0c2f3142d019091279b9ddb004ebd7ed 100644 (file)
@@ -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 Sqrt(x float64) float64        
-TEXT ·Sqrt(SB),7,$0
+TEXT ·Sqrt(SB),NOSPLIT,$0
        FMOVD   x+0(FP),F0
        FSQRT
        FMOVDP  F0,ret+8(FP)
index 553c4e01b6a2c5a5bb9dcea26b8b8a19385a3b54..1508944c908afa531034f2e80f24aa48eb5d29f6 100644 (file)
@@ -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 Sqrt(x float64) float64
-TEXT ·Sqrt(SB),7,$0
+TEXT ·Sqrt(SB),NOSPLIT,$0
        SQRTSD x+0(FP), X0
        MOVSD X0, ret+8(FP)
        RET
index b965b4845c2727cb7641ebb4dd7e06ec6431d925..f731ee976d6015f649b16777dde491c8cc7cd645 100644 (file)
@@ -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 Sqrt(x float64) float64        
-TEXT ·Sqrt(SB),7,$0
+TEXT ·Sqrt(SB),NOSPLIT,$0
        MOVD   x+0(FP),F0
        SQRTD  F0,F0
        MOVD  F0,ret+8(FP)
index f3ad33907368113ab1592da1d184bb09e352fb41..2320326e374a43f7623ead21db72a8d151cbc61a 100644 (file)
@@ -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 Tan(x float64) float64
-TEXT ·Tan(SB),7,$0
+TEXT ·Tan(SB),NOSPLIT,$0
        FMOVD   x+0(FP), F0  // F0=x
        FPTAN                // F0=1, F1=tan(x) if -2**63 < x < 2**63
        FSTSW   AX           // AX=status word
index 823ceb254ba090b8f391cf0e21d71cfd5f8bef5e..9fa5f148ef424e00c21335adeedb3146da7d2805 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Tan(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Tan(SB),NOSPLIT,$0
        JMP ·tan(SB)
index 4be35c38b10b19de7f1b66d5ca2ea06839d525c1..68fea318da6dbca0fff72c0ed7ca75a21f7e4285 100644 (file)
@@ -2,5 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT ·Tan(SB),7,$0
+#include "../../cmd/ld/textflag.h"
+
+TEXT ·Tan(SB),NOSPLIT,$0
        B ·tan(SB)