Commit 8bca148a authored by Rob Pike's avatar Rob Pike

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
parent ce35994d
...@@ -253,7 +253,7 @@ There may be one or two arguments to the directives. ...@@ -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>
......
...@@ -1115,12 +1115,15 @@ install(char *dir) ...@@ -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);
} }
......
...@@ -1613,8 +1613,10 @@ func (gcToolchain) gc(b *builder, p *Package, archive, obj string, importArgs [] ...@@ -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 {
......
...@@ -4,7 +4,7 @@ ...@@ -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
......
...@@ -5,7 +5,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -6,7 +6,7 @@ ...@@ -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.
// //
......
...@@ -5,7 +5,7 @@ ...@@ -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.
// //
......
...@@ -9,7 +9,7 @@ ...@@ -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.
// //
......
...@@ -4,7 +4,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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:
// //
......
...@@ -2,7 +2,7 @@ ...@@ -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:
// //
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// +build !nacl // +build !nacl
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// Registers // Registers
dst = 0 dst = 0
......
...@@ -2,7 +2,7 @@ ...@@ -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.
// //
......
...@@ -2,7 +2,7 @@ ...@@ -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.
// //
......
...@@ -2,7 +2,7 @@ ...@@ -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.
// //
......
...@@ -4,7 +4,7 @@ ...@@ -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.
// //
......
...@@ -2,7 +2,7 @@ ...@@ -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.
// //
......
...@@ -2,7 +2,7 @@ ...@@ -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.
// //
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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.
......
...@@ -2,7 +2,7 @@ ...@@ -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.
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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.
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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.
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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.
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -2,7 +2,7 @@ ...@@ -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)
...@@ -6,7 +6,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -2,7 +2,7 @@ ...@@ -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
......
...@@ -4,7 +4,7 @@ ...@@ -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)
......
...@@ -4,7 +4,7 @@ ...@@ -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)
......
...@@ -2,7 +2,7 @@ ...@@ -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)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// +build !race // +build !race
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// ARM atomic operations, for use by asm_$(GOOS)_arm.s. // ARM atomic operations, for use by asm_$(GOOS)_arm.s.
......
...@@ -2,7 +2,7 @@ ...@@ -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"
// FreeBSD/ARM atomic operations. // FreeBSD/ARM atomic operations.
// TODO(minux): this only supports ARMv6K or higher. // TODO(minux): this only supports ARMv6K or higher.
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// +build !race // +build !race
#include "../../../cmd/ld/textflag.h" #include "textflag.h"
// Linux/ARM atomic operations. // Linux/ARM atomic operations.
......
...@@ -2,7 +2,7 @@ ...@@ -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"
// NaCl/ARM atomic operations. // NaCl/ARM atomic operations.
// NaCl/ARM explicitly targets ARMv7A. // NaCl/ARM explicitly targets ARMv7A.
......
...@@ -2,7 +2,7 @@ ...@@ -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"
// NetBSD/ARM atomic operations. // NetBSD/ARM atomic operations.
// TODO(minux): this only supports ARMv6K or higher. // TODO(minux): this only supports ARMv6K or higher.
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for 386, Darwin // System call support for 386, Darwin
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for AMD64, Darwin // System call support for AMD64, Darwin
......
...@@ -2,7 +2,7 @@ ...@@ -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"
// //
// System call support for 386, FreeBSD // System call support for 386, FreeBSD
......
...@@ -2,7 +2,7 @@ ...@@ -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"
// //
// System call support for AMD64, DragonFly // System call support for AMD64, DragonFly
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for 386, FreeBSD // System call support for 386, FreeBSD
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for AMD64, FreeBSD // System call support for AMD64, FreeBSD
......
...@@ -2,7 +2,7 @@ ...@@ -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"
// //
// System call support for ARM, FreeBSD // System call support for ARM, FreeBSD
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System calls for 386, Linux // System calls for 386, Linux
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System calls for AMD64, Linux // System calls for AMD64, Linux
......
...@@ -2,7 +2,7 @@ ...@@ -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"
// //
// System calls for arm, Linux // System calls for arm, Linux
......
...@@ -2,7 +2,7 @@ ...@@ -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"
#include "../runtime/syscall_nacl.h" #include "../runtime/syscall_nacl.h"
// //
......
...@@ -2,7 +2,7 @@ ...@@ -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"
#include "../runtime/syscall_nacl.h" #include "../runtime/syscall_nacl.h"
// //
......
...@@ -2,7 +2,7 @@ ...@@ -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"
#include "../runtime/syscall_nacl.h" #include "../runtime/syscall_nacl.h"
// //
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for 386, NetBSD // System call support for 386, NetBSD
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for AMD64, NetBSD // System call support for AMD64, NetBSD
......
...@@ -2,7 +2,7 @@ ...@@ -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"
// //
// System call support for ARM, NetBSD // System call support for ARM, NetBSD
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for 386, OpenBSD // System call support for 386, OpenBSD
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for AMD64, OpenBSD // System call support for AMD64, OpenBSD
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for 386, Plan 9 // System call support for 386, Plan 9
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
// so that go vet can check that they are correct. // so that go vet can check that they are correct.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// //
// System call support for Plan 9 // System call support for Plan 9
......
...@@ -2,7 +2,7 @@ ...@@ -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 ·startTimer(SB),NOSPLIT,$0 TEXT ·startTimer(SB),NOSPLIT,$0
JMP time·startTimer(SB) JMP time·startTimer(SB)
......
...@@ -2,7 +2,7 @@ ...@@ -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 ·startTimer(SB),NOSPLIT,$0 TEXT ·startTimer(SB),NOSPLIT,$0
JMP time·startTimer(SB) JMP time·startTimer(SB)
......
...@@ -2,7 +2,7 @@ ...@@ -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 ·startTimer(SB),NOSPLIT,$0 TEXT ·startTimer(SB),NOSPLIT,$0
B time·startTimer(SB) B time·startTimer(SB)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment