Skip to content

Commit 146bc2b

Browse files
committed
crypto: add go:build lines (ethereum#23468)
1 parent 9dab065 commit 146bc2b

File tree

7 files changed

+10
-1
lines changed

7 files changed

+10
-1
lines changed

crypto/blake2b/blake2bAVX2_amd64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build go1.7 && amd64 && !gccgo && !appengine
56
// +build go1.7,amd64,!gccgo,!appengine
67

78
package blake2b

crypto/blake2b/blake2b_amd64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !go1.7 && amd64 && !gccgo && !appengine
56
// +build !go1.7,amd64,!gccgo,!appengine
67

78
package blake2b

crypto/blake2b/blake2b_f_fuzz.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// +build gofuzz
1+
// Only enable fuzzer on platforms with AVX enabled
2+
//go:build go1.7 && amd64 && !gccgo && !appengine
3+
// +build go1.7,amd64,!gccgo,!appengine
24

35
package blake2b
46

crypto/blake2b/blake2b_ref.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !amd64 || appengine || gccgo
56
// +build !amd64 appengine gccgo
67

78
package blake2b

crypto/blake2b/register.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build go1.9
56
// +build go1.9
67

78
package blake2b

crypto/bn256/bn256_fast.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build amd64 || arm64
1718
// +build amd64 arm64
1819

1920
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
@@ -22,6 +23,7 @@ package bn256
2223
import (
2324
bn256cf "github.com/XinFinOrg/XDPoSChain/crypto/bn256/cloudflare"
2425
)
26+
2527
// G1 is an abstract cyclic group. The zero value is suitable for use as the
2628
// output of an operation, but cannot be used as an input.
2729
type G1 = bn256cf.G1

crypto/bn256/cloudflare/gfp_generic.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build (!amd64 && !arm64) || generic
12
// +build !amd64,!arm64 generic
23

34
package bn256

0 commit comments

Comments
 (0)