mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated TargetSpecific (markdown)
parent
2004fbeba6
commit
48c61a1304
@ -36,7 +36,7 @@ func sumGeneric(out *[16]byte, m []byte, key *[32]byte) {
|
|||||||
poly1305_amd64.go
|
poly1305_amd64.go
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// +build !gccgo,!purego
|
// +build gc,!purego
|
||||||
|
|
||||||
package poly1305
|
package poly1305
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ func sum(out *[16]byte, m []byte, key *[32]byte)
|
|||||||
poly1305_amd64.s
|
poly1305_amd64.s
|
||||||
|
|
||||||
```
|
```
|
||||||
// +build !gccgo,!purego
|
// +build gc,!purego
|
||||||
|
|
||||||
// func sum(out *[16]byte, m []byte, key *[32]byte)
|
// func sum(out *[16]byte, m []byte, key *[32]byte)
|
||||||
TEXT ·sum(SB), $0-128
|
TEXT ·sum(SB), $0-128
|
||||||
@ -57,7 +57,7 @@ TEXT ·sum(SB), $0-128
|
|||||||
poly1305_noasm.go
|
poly1305_noasm.go
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// +build !amd64 gccgo purego
|
// +build !amd64 !gc purego
|
||||||
|
|
||||||
package poly1305
|
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.
|
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.
|
Loading…
x
Reference in New Issue
Block a user