support build generic

This commit is contained in:
Sun Yimin 2022-06-14 08:45:54 +08:00 committed by GitHub
parent 2d64b499cb
commit 8cb1e257dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 46 additions and 45 deletions

View File

@ -1,6 +1,8 @@
// Copyright 2018 The Go Authors. All rights reserved. // Copyright 2018 The Go Authors. All rights reserved.
// 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.
//go:build amd64 && !generic
// +build amd64,!generic
package xor package xor

View File

@ -1,6 +1,8 @@
// Copyright 2018 The Go Authors. All rights reserved. // Copyright 2018 The Go Authors. All rights reserved.
// 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.
//go:build arm64 && !generic
// +build arm64,!generic
package xor package xor

View File

@ -1,8 +1,8 @@
// Copyright 2013 The Go Authors. All rights reserved. // Copyright 2013 The Go Authors. All rights reserved.
// 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.
//go:build !amd64 && !arm64 //go:build !amd64 && !arm64 || generic
// +build !amd64,!arm64 // +build !amd64,!arm64 generic
package xor package xor

View File

@ -1,6 +1,3 @@
//go:build amd64 || arm64 || ppc64le
// +build amd64 arm64 ppc64le
package sm2 package sm2
import ( import (

View File

@ -2,8 +2,8 @@
// 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.
//go:build amd64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 // +build amd64,!generic arm64,!generic
package sm2 package sm2
@ -18,8 +18,8 @@ func GenTables() {
buf := new(bytes.Buffer) buf := new(bytes.Buffer)
fmt.Fprint(buf, ` fmt.Fprint(buf, `
// Generated by gen_p256_table.go. DO NOT EDIT. // Generated by gen_p256_table.go. DO NOT EDIT.
//go:build amd64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 // +build amd64,!generic arm64,!generic
package sm2 package sm2
`[1:]) `[1:])

View File

@ -1,5 +1,5 @@
//go:build !amd64 && !arm64 //go:build !amd64 && !arm64 || generic
// +build !amd64,!arm64 // +build !amd64,!arm64 generic
package sm2 package sm2

View File

@ -7,8 +7,8 @@
// 256-bit primes" // 256-bit primes"
// https://link.springer.com/article/10.1007%2Fs13389-014-0090-x // https://link.springer.com/article/10.1007%2Fs13389-014-0090-x
// https://eprint.iacr.org/2013/816.pdf // https://eprint.iacr.org/2013/816.pdf
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm2 package sm2

View File

@ -1,6 +1,6 @@
// Generated by gen_p256_table.go. DO NOT EDIT. // Generated by gen_p256_table.go. DO NOT EDIT.
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm2 package sm2

View File

@ -2,8 +2,8 @@
// 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.
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm2 package sm2

View File

@ -1,5 +1,5 @@
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm2 package sm2

View File

@ -1,5 +1,5 @@
//go:build !amd64 && !arm64 //go:build !amd64 && !arm64 || generic
// +build !amd64,!arm64 // +build !amd64,!arm64 generic
package sm2 package sm2

View File

@ -1,5 +1,5 @@
//go:build amd64 //go:build amd64 && !generic
// +build amd64 // +build amd64,!generic
package sm3 package sm3

View File

@ -1,5 +1,5 @@
//go:build arm64 //go:build arm64 && !generic
// +build arm64 // +build arm64,!generic
package sm3 package sm3

View File

@ -1,5 +1,5 @@
//go:build !amd64 && !arm64 //go:build !amd64 && !arm64 || generic
// +build !amd64,!arm64 // +build !amd64,!arm64 generic
package sm3 package sm3

View File

@ -1,5 +1,5 @@
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm4 package sm4

View File

@ -1,5 +1,5 @@
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm4 package sm4

View File

@ -1,5 +1,5 @@
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm4 package sm4

View File

@ -1,5 +1,5 @@
//go:build !amd64 && !arm64 //go:build !amd64 && !arm64 || generic
// +build !amd64,!arm64 // +build !amd64,!arm64 generic
package sm4 package sm4

View File

@ -1,5 +1,5 @@
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm4 package sm4

View File

@ -1,5 +1,5 @@
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm4 package sm4

View File

@ -1,5 +1,5 @@
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm4 package sm4

View File

@ -1,5 +1,5 @@
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm4 package sm4

View File

@ -1,5 +1,5 @@
//go:build amd64 || arm64 //go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64 arm64 // +build amd64,!generic arm64,!generic
package sm4 package sm4