all: copy cmd/ld/textflag.h into pkg/GOOS_GOARCH

The file is used by assembly code to define symbols like NOSPLIT.
Having it hidden inside the cmd directory makes it hard to access
outside the standard repository.
Solution: As with a couple of other files used by cgo, copy the
file into the pkg directory and add a -I argument to the assembler
to access it. Thus one can write just
        #include "textflag.h"
in .s files.

The names in runtime are not updated because in the boot sequence the
file has not been copied yet when runtime is built. All other .s files
in the repository are updated.

Changes to doc/asm.html, src/cmd/dist/build.c, and src/cmd/go/build.go
are hand-made. The rest are just the renaming done by a global
substitution. (Yay sam).

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/128050043
This commit is contained in:
Rob Pike 2014-08-12 17:04:45 -07:00
parent ce35994d4e
commit 8bca148a3e
128 changed files with 133 additions and 128 deletions

View File

@ -253,7 +253,7 @@ There may be one or two arguments to the directives.
If there are two, the first is a bit mask of flags, If there are two, the first is a bit mask of flags,
which can be written as numeric expressions, added or or-ed together, which can be written as numeric expressions, added or or-ed together,
or can be set symbolically for easier absorption by a human. or can be set symbolically for easier absorption by a human.
Their values, defined in the file <code>src/cmd/ld/textflag.h</code>, are: Their values, defined in the standard <code>#include</code> file <code>textflag.h</code>, are:
</p> </p>
<ul> <ul>

View File

@ -1115,12 +1115,15 @@ install(char *dir)
nobuild: nobuild:
// In package runtime, we install runtime.h and cgocall.h too, // In package runtime, we install runtime.h and cgocall.h too,
// for use by cgo compilation. // for use by cgo compilation. For assembler source, we also
// copy cmd/ld/textflag.h.
if(streq(dir, "pkg/runtime")) { if(streq(dir, "pkg/runtime")) {
copy(bpathf(&b, "%s/pkg/%s_%s/cgocall.h", goroot, goos, goarch), copy(bpathf(&b, "%s/pkg/%s_%s/cgocall.h", goroot, goos, goarch),
bpathf(&b1, "%s/src/pkg/runtime/cgocall.h", goroot), 0); bpathf(&b1, "%s/src/pkg/runtime/cgocall.h", goroot), 0);
copy(bpathf(&b, "%s/pkg/%s_%s/runtime.h", goroot, goos, goarch), copy(bpathf(&b, "%s/pkg/%s_%s/runtime.h", goroot, goos, goarch),
bpathf(&b1, "%s/src/pkg/runtime/runtime.h", goroot), 0); bpathf(&b1, "%s/src/pkg/runtime/runtime.h", goroot), 0);
copy(bpathf(&b, "%s/pkg/%s_%s/textflag.h", goroot, goos, goarch),
bpathf(&b1, "%s/src/cmd/ld/textflag.h", goroot), 0);
} }

View File

@ -1613,8 +1613,10 @@ func (gcToolchain) gc(b *builder, p *Package, archive, obj string, importArgs []
} }
func (gcToolchain) asm(b *builder, p *Package, obj, ofile, sfile string) error { func (gcToolchain) asm(b *builder, p *Package, obj, ofile, sfile string) error {
// Add -I pkg/GOOS_GOARCH so #include "textflag.h" works in .s files.
inc := filepath.Join(goroot, "pkg", fmt.Sprintf("%s_%s", goos, goarch))
sfile = mkAbs(p.Dir, sfile) sfile = mkAbs(p.Dir, sfile)
return b.run(p.Dir, p.ImportPath, nil, tool(archChar+"a"), "-trimpath", b.work, "-I", obj, "-o", ofile, "-D", "GOOS_"+goos, "-D", "GOARCH_"+goarch, sfile) return b.run(p.Dir, p.ImportPath, nil, tool(archChar+"a"), "-trimpath", b.work, "-I", obj, "-I", inc, "-o", ofile, "-D", "GOOS_"+goos, "-D", "GOARCH_"+goarch, sfile)
} }
func (gcToolchain) pkgpath(basedir string, p *Package) string { func (gcToolchain) pkgpath(basedir string, p *Package) string {

View File

@ -4,7 +4,7 @@
// Test of section-named symbols. // Test of section-named symbols.
#include "../../ld/textflag.h" #include "textflag.h"
TEXT start(SB),7,$0 TEXT start(SB),7,$0
MOVQ $autotab(SB),AX MOVQ $autotab(SB),AX

View File

@ -5,7 +5,7 @@
// Test of section assignment in layout.go. // Test of section assignment in layout.go.
// Each symbol should end up in the section named by the symbol name prefix (up to the underscore). // Each symbol should end up in the section named by the symbol name prefix (up to the underscore).
#include "../../ld/textflag.h" #include "textflag.h"
TEXT text_start(SB),7,$0 TEXT text_start(SB),7,$0
MOVQ $rodata_sym(SB), AX MOVQ $rodata_sym(SB), AX

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// func hasAsm() bool // func hasAsm() bool
// returns whether AES-NI is supported // returns whether AES-NI is supported

View File

@ -6,7 +6,7 @@
// #defines generating 8a assembly, and adjusted for 386, // #defines generating 8a assembly, and adjusted for 386,
// by the Go Authors. // by the Go Authors.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// MD5 optimized for AMD64. // MD5 optimized for AMD64.
// //

View File

@ -5,7 +5,7 @@
// Translated from Perl generating GNU assembly into // Translated from Perl generating GNU assembly into
// #defines generating 6a assembly by the Go Authors. // #defines generating 6a assembly by the Go Authors.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// MD5 optimized for AMD64. // MD5 optimized for AMD64.
// //

View File

@ -9,7 +9,7 @@
// replace BP with R11, reloaded before use at return. // replace BP with R11, reloaded before use at return.
// replace R15 with R11. // replace R15 with R11.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// MD5 optimized for AMD64. // MD5 optimized for AMD64.
// //

View File

@ -4,7 +4,7 @@
// //
// ARM version of md5block.go // ARM version of md5block.go
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// Register definitions // Register definitions
table = 0 // Pointer to MD5 constants table table = 0 // Pointer to MD5 constants table

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// func xorKeyStream(dst, src *byte, n int, state *[256]byte, i, j *uint8) // func xorKeyStream(dst, src *byte, n int, state *[256]byte, i, j *uint8)
TEXT ·xorKeyStream(SB),NOSPLIT,$0 TEXT ·xorKeyStream(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// http://www.zorinaq.com/papers/rc4-amd64.html // http://www.zorinaq.com/papers/rc4-amd64.html
// http://www.zorinaq.com/papers/rc4-amd64.tar.bz2 // http://www.zorinaq.com/papers/rc4-amd64.tar.bz2
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// Local modifications: // Local modifications:
// //

View File

@ -2,7 +2,7 @@
// http://www.zorinaq.com/papers/rc4-amd64.html // http://www.zorinaq.com/papers/rc4-amd64.html
// http://www.zorinaq.com/papers/rc4-amd64.tar.bz2 // http://www.zorinaq.com/papers/rc4-amd64.tar.bz2
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// Local modifications: // Local modifications:
// //

View File

@ -4,7 +4,7 @@
// +build !nacl // +build !nacl
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// Registers // Registers
dst = 0 dst = 0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// SHA1 block routine. See sha1block.go for Go equivalent. // SHA1 block routine. See sha1block.go for Go equivalent.
// //

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// SHA1 block routine. See sha1block.go for Go equivalent. // SHA1 block routine. See sha1block.go for Go equivalent.
// //

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// SHA1 block routine. See sha1block.go for Go equivalent. // SHA1 block routine. See sha1block.go for Go equivalent.
// //

View File

@ -4,7 +4,7 @@
// //
// ARM version of md5block.go // ARM version of md5block.go
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// SHA1 block routine. See sha1block.go for Go equivalent. // SHA1 block routine. See sha1block.go for Go equivalent.
// //

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// SHA256 block routine. See sha256block.go for Go equivalent. // SHA256 block routine. See sha256block.go for Go equivalent.
// //

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// SHA512 block routine. See sha512block.go for Go equivalent. // SHA512 block routine. See sha512block.go for Go equivalent.
// //

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// func castagnoliSSE42(crc uint32, p []byte) uint32 // func castagnoliSSE42(crc uint32, p []byte) uint32
TEXT ·castagnoliSSE42(SB),NOSPLIT,$0 TEXT ·castagnoliSSE42(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// func castagnoliSSE42(crc uint32, p []byte) uint32 // func castagnoliSSE42(crc uint32, p []byte) uint32
TEXT ·castagnoliSSE42(SB),NOSPLIT,$0 TEXT ·castagnoliSSE42(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Abs(x float64) float64 // func Abs(x float64) float64
TEXT ·Abs(SB),NOSPLIT,$0 TEXT ·Abs(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Abs(x float64) float64 // func Abs(x float64) float64
TEXT ·Abs(SB),NOSPLIT,$0 TEXT ·Abs(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Abs(SB),NOSPLIT,$0 TEXT ·Abs(SB),NOSPLIT,$0
MOVW x_lo+0(FP), R0 MOVW x_lo+0(FP), R0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Asin(x float64) float64 // func Asin(x float64) float64
TEXT ·Asin(SB),NOSPLIT,$0 TEXT ·Asin(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Asin(SB),NOSPLIT,$0 TEXT ·Asin(SB),NOSPLIT,$0
JMP ·asin(SB) JMP ·asin(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Asin(SB),NOSPLIT,$0 TEXT ·Asin(SB),NOSPLIT,$0
B ·asin(SB) B ·asin(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Atan2(y, x float64) float64 // =atan(y/x) // func Atan2(y, x float64) float64 // =atan(y/x)
TEXT ·Atan2(SB),NOSPLIT,$0 TEXT ·Atan2(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Atan2(SB),NOSPLIT,$0 TEXT ·Atan2(SB),NOSPLIT,$0
JMP ·atan2(SB) JMP ·atan2(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Atan2(SB),NOSPLIT,$0 TEXT ·Atan2(SB),NOSPLIT,$0
B ·atan2(SB) B ·atan2(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Atan(x float64) float64 // func Atan(x float64) float64
TEXT ·Atan(SB),NOSPLIT,$0 TEXT ·Atan(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Atan(SB),NOSPLIT,$0 TEXT ·Atan(SB),NOSPLIT,$0
JMP ·atan(SB) JMP ·atan(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Atan(SB),NOSPLIT,$0 TEXT ·Atan(SB),NOSPLIT,$0
B ·atan(SB) B ·atan(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// This file provides fast assembly versions for the elementary // This file provides fast assembly versions for the elementary
// arithmetic operations on vectors implemented in arith.go. // arithmetic operations on vectors implemented in arith.go.

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// This file provides fast assembly versions for the elementary // This file provides fast assembly versions for the elementary
// arithmetic operations on vectors implemented in arith.go. // arithmetic operations on vectors implemented in arith.go.

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·mulWW(SB),NOSPLIT,$0 TEXT ·mulWW(SB),NOSPLIT,$0
JMP ·mulWW_g(SB) JMP ·mulWW_g(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// This file provides fast assembly versions for the elementary // This file provides fast assembly versions for the elementary
// arithmetic operations on vectors implemented in arith.go. // arithmetic operations on vectors implemented in arith.go.

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Dim(SB),NOSPLIT,$0 TEXT ·Dim(SB),NOSPLIT,$0
JMP ·dim(SB) JMP ·dim(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#define PosInf 0x7FF0000000000000 #define PosInf 0x7FF0000000000000
#define NaN 0x7FF8000000000001 #define NaN 0x7FF8000000000001

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Dim(SB),NOSPLIT,$0 TEXT ·Dim(SB),NOSPLIT,$0
B ·dim(SB) B ·dim(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Exp2(x float64) float64 // func Exp2(x float64) float64
TEXT ·Exp2(SB),NOSPLIT,$0 TEXT ·Exp2(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Exp2(SB),NOSPLIT,$0 TEXT ·Exp2(SB),NOSPLIT,$0
JMP ·exp2(SB) JMP ·exp2(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Exp2(SB),NOSPLIT,$0 TEXT ·Exp2(SB),NOSPLIT,$0
B ·exp2(SB) B ·exp2(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Exp(x float64) float64 // func Exp(x float64) float64
TEXT ·Exp(SB),NOSPLIT,$0 TEXT ·Exp(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// The method is based on a paper by Naoki Shibata: "Efficient evaluation // The method is based on a paper by Naoki Shibata: "Efficient evaluation
// methods of elementary functions suitable for SIMD computation", Proc. // methods of elementary functions suitable for SIMD computation", Proc.

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Exp(SB),NOSPLIT,$0 TEXT ·Exp(SB),NOSPLIT,$0
B ·exp(SB) B ·exp(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Expm1(x float64) float64 // func Expm1(x float64) float64
TEXT ·Expm1(SB),NOSPLIT,$0 TEXT ·Expm1(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Expm1(SB),NOSPLIT,$0 TEXT ·Expm1(SB),NOSPLIT,$0
JMP ·expm1(SB) JMP ·expm1(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Expm1(SB),NOSPLIT,$0 TEXT ·Expm1(SB),NOSPLIT,$0
B ·expm1(SB) B ·expm1(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Ceil(x float64) float64 // func Ceil(x float64) float64
TEXT ·Ceil(SB),NOSPLIT,$0 TEXT ·Ceil(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#define Big 0x4330000000000000 // 2**52 #define Big 0x4330000000000000 // 2**52

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Floor(SB),NOSPLIT,$0 TEXT ·Floor(SB),NOSPLIT,$0
B ·floor(SB) B ·floor(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Frexp(f float64) (frac float64, exp int) // func Frexp(f float64) (frac float64, exp int)
TEXT ·Frexp(SB),NOSPLIT,$0 TEXT ·Frexp(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Frexp(SB),NOSPLIT,$0 TEXT ·Frexp(SB),NOSPLIT,$0
JMP ·frexp(SB) JMP ·frexp(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Frexp(SB),NOSPLIT,$0 TEXT ·Frexp(SB),NOSPLIT,$0
B ·frexp(SB) B ·frexp(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Hypot(p, q float64) float64 // func Hypot(p, q float64) float64
TEXT ·Hypot(SB),NOSPLIT,$0 TEXT ·Hypot(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#define PosInf 0x7FF0000000000000 #define PosInf 0x7FF0000000000000
#define NaN 0x7FF8000000000001 #define NaN 0x7FF8000000000001

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Hypot(SB),NOSPLIT,$0 TEXT ·Hypot(SB),NOSPLIT,$0
B ·hypot(SB) B ·hypot(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Ldexp(frac float64, exp int) float64 // func Ldexp(frac float64, exp int) float64
TEXT ·Ldexp(SB),NOSPLIT,$0 TEXT ·Ldexp(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Ldexp(SB),NOSPLIT,$0 TEXT ·Ldexp(SB),NOSPLIT,$0
JMP ·ldexp(SB) JMP ·ldexp(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Ldexp(SB),NOSPLIT,$0 TEXT ·Ldexp(SB),NOSPLIT,$0
B ·ldexp(SB) B ·ldexp(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Log10(x float64) float64 // func Log10(x float64) float64
TEXT ·Log10(SB),NOSPLIT,$0 TEXT ·Log10(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Log10(SB),NOSPLIT,$0 TEXT ·Log10(SB),NOSPLIT,$0
JMP ·log10(SB) JMP ·log10(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Log10(SB),NOSPLIT,$0 TEXT ·Log10(SB),NOSPLIT,$0
B ·log10(SB) B ·log10(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Log1p(x float64) float64 // func Log1p(x float64) float64
TEXT ·Log1p(SB),NOSPLIT,$0 TEXT ·Log1p(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Log1p(SB),NOSPLIT,$0 TEXT ·Log1p(SB),NOSPLIT,$0
JMP ·log1p(SB) JMP ·log1p(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Log1p(SB),NOSPLIT,$0 TEXT ·Log1p(SB),NOSPLIT,$0
B ·log1p(SB) B ·log1p(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Log(x float64) float64 // func Log(x float64) float64
TEXT ·Log(SB),NOSPLIT,$0 TEXT ·Log(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#define HSqrt2 7.07106781186547524401e-01 // sqrt(2)/2 #define HSqrt2 7.07106781186547524401e-01 // sqrt(2)/2
#define Ln2Hi 6.93147180369123816490e-01 // 0x3fe62e42fee00000 #define Ln2Hi 6.93147180369123816490e-01 // 0x3fe62e42fee00000

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Log(SB),NOSPLIT,$0 TEXT ·Log(SB),NOSPLIT,$0
B ·log(SB) B ·log(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Mod(x, y float64) float64 // func Mod(x, y float64) float64
TEXT ·Mod(SB),NOSPLIT,$0 TEXT ·Mod(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Mod(SB),NOSPLIT,$0 TEXT ·Mod(SB),NOSPLIT,$0
JMP ·mod(SB) JMP ·mod(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Mod(SB),NOSPLIT,$0 TEXT ·Mod(SB),NOSPLIT,$0
B ·mod(SB) B ·mod(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Modf(f float64) (int float64, frac float64) // func Modf(f float64) (int float64, frac float64)
TEXT ·Modf(SB),NOSPLIT,$0 TEXT ·Modf(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Modf(SB),NOSPLIT,$0 TEXT ·Modf(SB),NOSPLIT,$0
JMP ·modf(SB) JMP ·modf(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Modf(SB),NOSPLIT,$0 TEXT ·Modf(SB),NOSPLIT,$0
B ·modf(SB) B ·modf(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Remainder(x, y float64) float64 // func Remainder(x, y float64) float64
TEXT ·Remainder(SB),NOSPLIT,$0 TEXT ·Remainder(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Remainder(SB),NOSPLIT,$0 TEXT ·Remainder(SB),NOSPLIT,$0
JMP ·remainder(SB) JMP ·remainder(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Remainder(SB),NOSPLIT,$0 TEXT ·Remainder(SB),NOSPLIT,$0
B ·remainder(SB) B ·remainder(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Cos(x float64) float64 // func Cos(x float64) float64
TEXT ·Cos(SB),NOSPLIT,$0 TEXT ·Cos(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Sin(SB),NOSPLIT,$0 TEXT ·Sin(SB),NOSPLIT,$0
JMP ·sin(SB) JMP ·sin(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Sin(SB),NOSPLIT,$0 TEXT ·Sin(SB),NOSPLIT,$0
B ·sin(SB) B ·sin(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Sincos(x float64) (sin, cos float64) // func Sincos(x float64) (sin, cos float64)
TEXT ·Sincos(SB),NOSPLIT,$0 TEXT ·Sincos(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// The method is based on a paper by Naoki Shibata: "Efficient evaluation // The method is based on a paper by Naoki Shibata: "Efficient evaluation
// methods of elementary functions suitable for SIMD computation", Proc. // methods of elementary functions suitable for SIMD computation", Proc.

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Sincos(SB),NOSPLIT,$0 TEXT ·Sincos(SB),NOSPLIT,$0
B ·sincos(SB) B ·sincos(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Sqrt(x float64) float64 // func Sqrt(x float64) float64
TEXT ·Sqrt(SB),NOSPLIT,$0 TEXT ·Sqrt(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Sqrt(x float64) float64 // func Sqrt(x float64) float64
TEXT ·Sqrt(SB),NOSPLIT,$0 TEXT ·Sqrt(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Sqrt(x float64) float64 // func Sqrt(x float64) float64
TEXT ·Sqrt(SB),NOSPLIT,$0 TEXT ·Sqrt(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// func Tan(x float64) float64 // func Tan(x float64) float64
TEXT ·Tan(SB),NOSPLIT,$0 TEXT ·Tan(SB),NOSPLIT,$0

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Tan(SB),NOSPLIT,$0 TEXT ·Tan(SB),NOSPLIT,$0
JMP ·tan(SB) JMP ·tan(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·Tan(SB),NOSPLIT,$0 TEXT ·Tan(SB),NOSPLIT,$0
B ·tan(SB) B ·tan(SB)

View File

@ -6,7 +6,7 @@
// +build amd64 amd64p32 arm 386 // +build amd64 amd64p32 arm 386
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
#ifdef GOARCH_arm #ifdef GOARCH_arm
#define JMP B #define JMP B

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// makeFuncStub is the code half of the function returned by MakeFunc. // makeFuncStub is the code half of the function returned by MakeFunc.
// See the comment on the declaration of makeFuncStub in makefunc.go // See the comment on the declaration of makeFuncStub in makefunc.go

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// makeFuncStub is the code half of the function returned by MakeFunc. // makeFuncStub is the code half of the function returned by MakeFunc.
// See the comment on the declaration of makeFuncStub in makefunc.go // See the comment on the declaration of makeFuncStub in makefunc.go

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// makeFuncStub is the code half of the function returned by MakeFunc. // makeFuncStub is the code half of the function returned by MakeFunc.
// See the comment on the declaration of makeFuncStub in makefunc.go // See the comment on the declaration of makeFuncStub in makefunc.go

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// makeFuncStub is jumped to by the code generated by MakeFunc. // makeFuncStub is jumped to by the code generated by MakeFunc.
// See the comment on the declaration of makeFuncStub in makefunc.go // See the comment on the declaration of makeFuncStub in makefunc.go

View File

@ -4,7 +4,7 @@
// +build !race // +build !race
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·SwapInt32(SB),NOSPLIT,$0-12 TEXT ·SwapInt32(SB),NOSPLIT,$0-12
JMP ·SwapUint32(SB) JMP ·SwapUint32(SB)

View File

@ -4,7 +4,7 @@
// +build !race // +build !race
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·SwapInt32(SB),NOSPLIT,$0-20 TEXT ·SwapInt32(SB),NOSPLIT,$0-20
JMP ·SwapUint32(SB) JMP ·SwapUint32(SB)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
TEXT ·SwapInt32(SB),NOSPLIT,$0-12 TEXT ·SwapInt32(SB),NOSPLIT,$0-12
JMP ·SwapUint32(SB) JMP ·SwapUint32(SB)

Some files were not shown because too many files have changed in this diff Show More