Updated TargetSpecific (markdown)

Filippo Valsorda 2020-11-13 18:09:45 -05:00
parent 2004fbeba6
commit 48c61a1304

@ -36,7 +36,7 @@ func sumGeneric(out *[16]byte, m []byte, key *[32]byte) {
poly1305_amd64.go
```go
// +build !gccgo,!purego
// +build gc,!purego
package poly1305
@ -47,7 +47,7 @@ func sum(out *[16]byte, m []byte, key *[32]byte)
poly1305_amd64.s
```
// +build !gccgo,!purego
// +build gc,!purego
// func sum(out *[16]byte, m []byte, key *[32]byte)
TEXT ·sum(SB), $0-128
@ -57,7 +57,7 @@ TEXT ·sum(SB), $0-128
poly1305_noasm.go
```go
// +build !amd64 gccgo purego
// +build !amd64 !gc purego
package poly1305
@ -90,4 +90,4 @@ func TestSumCompare(t *testing.T) {
For more complete examples see the [x/crypto/poly1305](https://github.com/golang/crypto/tree/master/poly1305) and [x/crypto/salsa20/salsa](https://github.com/golang/crypto/tree/master/salsa20/salsa) packages.
Note that packages in the standard library (as opposed to modules like golang.org/x/crypto) do not use the `gccgo` and `purego` build tags.
Note that packages in the standard library (as opposed to modules like golang.org/x/crypto) do not use the `gc` and `purego` build tags.