Skip to content

Commit

Permalink
all: add //go:build lines to assembly files
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tklauser committed May 13, 2021
1 parent 38f3c27 commit cd7d49e
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions argon2/blamka_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 && gc && !purego
// +build amd64,gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions blake2b/blake2bAVX2_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.7 && amd64 && gc && !purego
// +build go1.7,amd64,gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions blake2b/blake2b_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 && gc && !purego
// +build amd64,gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions blake2s/blake2s_386.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build 386 && gc && !purego
// +build 386,gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions blake2s/blake2s_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 && gc && !purego
// +build amd64,gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions chacha20/chacha_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.11 && gc && !purego
// +build go1.11,gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions chacha20/chacha_ppc64le.s
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// The differences in this and the original implementation are
// due to the calling conventions and initialization of constants.

//go:build gc && !purego
// +build gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions chacha20/chacha_s390x.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build gc && !purego
// +build gc,!purego

#include "go_asm.h"
Expand Down
1 change: 1 addition & 0 deletions chacha20poly1305/chacha20poly1305_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

//go:build gc && !purego
// +build gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions curve25519/internal/field/_asm/fe_amd64_asm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (

func main() {
Package("golang.org/x/crypto/curve25519/internal/field")
Comment("//go:build amd64 && gc && !purego")
ConstraintExpr("amd64,gc,!purego")
feMul()
feSquare()
Expand Down
1 change: 1 addition & 0 deletions curve25519/internal/field/fe_amd64.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT.

//go:build amd64 && gc && !purego
// +build amd64,gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions curve25519/internal/field/fe_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build arm64 && gc && !purego
// +build arm64,gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions poly1305/sum_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build gc && !purego
// +build gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions poly1305/sum_ppc64le.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build gc && !purego
// +build gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions poly1305/sum_s390x.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build gc && !purego
// +build gc,!purego

#include "textflag.h"
Expand Down
1 change: 1 addition & 0 deletions salsa20/salsa/salsa20_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 && !purego && gc
// +build amd64,!purego,gc

// This code was translated into a form compatible with 6a from the public
Expand Down
1 change: 1 addition & 0 deletions sha3/keccakf_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 && !purego && gc
// +build amd64,!purego,gc

// This code was translated into a form compatible with 6a from the public
Expand Down
1 change: 1 addition & 0 deletions sha3/sha3_s390x.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build gc && !purego
// +build gc,!purego

#include "textflag.h"
Expand Down

0 comments on commit cd7d49e

Please sign in to comment.