Skip to content

Commit cd7d49e

Browse files
committed
all: add //go:build lines to assembly files
For golang/go#41184 Change-Id: Ica67fdbf2745ad2eef63dbb9ef70136e9e6fd348 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/319469 Trust: Tobias Klauser <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 38f3c27 commit cd7d49e

File tree

18 files changed

+18
-0
lines changed

18 files changed

+18
-0
lines changed

argon2/blamka_amd64.s

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 && gc && !purego
56
// +build amd64,gc,!purego
67

78
#include "textflag.h"

blake2b/blake2bAVX2_amd64.s

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 && gc && !purego
56
// +build go1.7,amd64,gc,!purego
67

78
#include "textflag.h"

blake2b/blake2b_amd64.s

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 && gc && !purego
56
// +build amd64,gc,!purego
67

78
#include "textflag.h"

blake2s/blake2s_386.s

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 386 && gc && !purego
56
// +build 386,gc,!purego
67

78
#include "textflag.h"

blake2s/blake2s_amd64.s

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 && gc && !purego
56
// +build amd64,gc,!purego
67

78
#include "textflag.h"

chacha20/chacha_arm64.s

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.11 && gc && !purego
56
// +build go1.11,gc,!purego
67

78
#include "textflag.h"

chacha20/chacha_ppc64le.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// The differences in this and the original implementation are
2020
// due to the calling conventions and initialization of constants.
2121

22+
//go:build gc && !purego
2223
// +build gc,!purego
2324

2425
#include "textflag.h"

chacha20/chacha_s390x.s

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 gc && !purego
56
// +build gc,!purego
67

78
#include "go_asm.h"

chacha20poly1305/chacha20poly1305_amd64.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
// This file was originally from https://golang.org/cl/24717 by Vlad Krasnov of CloudFlare.
66

7+
//go:build gc && !purego
78
// +build gc,!purego
89

910
#include "textflag.h"

curve25519/internal/field/_asm/fe_amd64_asm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717

1818
func main() {
1919
Package("golang.org/x/crypto/curve25519/internal/field")
20+
Comment("//go:build amd64 && gc && !purego")
2021
ConstraintExpr("amd64,gc,!purego")
2122
feMul()
2223
feSquare()

0 commit comments

Comments
 (0)