diff --git a/internal/sm2ec/p256_asm_arm64.s b/internal/sm2ec/p256_asm_arm64.s index 398bde4..6eb493a 100644 --- a/internal/sm2ec/p256_asm_arm64.s +++ b/internal/sm2ec/p256_asm_arm64.s @@ -4,7 +4,7 @@ // 256-bit primes" // http://link.springer.com/article/10.1007%2Fs13389-014-0090-x // https://eprint.iacr.org/2013/816.pdf -//go:build arm64 && !purego +//go:build !purego #include "textflag.h" diff --git a/internal/subtle/xor_amd64.go b/internal/subtle/xor_amd64.go index fb6bccb..c5c4ed1 100644 --- a/internal/subtle/xor_amd64.go +++ b/internal/subtle/xor_amd64.go @@ -2,7 +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 +//go:build !purego package subtle diff --git a/internal/subtle/xor_amd64.s b/internal/subtle/xor_amd64.s index f2dfa15..009e9c4 100644 --- a/internal/subtle/xor_amd64.s +++ b/internal/subtle/xor_amd64.s @@ -2,7 +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 +//go:build !purego #include "textflag.h" diff --git a/internal/subtle/xor_arm64.go b/internal/subtle/xor_arm64.go index 912678e..6fbacf9 100644 --- a/internal/subtle/xor_arm64.go +++ b/internal/subtle/xor_arm64.go @@ -2,7 +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 && !purego +//go:build !purego package subtle diff --git a/internal/subtle/xor_arm64.s b/internal/subtle/xor_arm64.s index 1454ab1..8f7ac7f 100644 --- a/internal/subtle/xor_arm64.s +++ b/internal/subtle/xor_arm64.s @@ -2,7 +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 && !purego +//go:build !purego #include "textflag.h" diff --git a/internal/subtle/xor_generic.go b/internal/subtle/xor_generic.go index 2d7f1d5..e9db8d8 100644 --- a/internal/subtle/xor_generic.go +++ b/internal/subtle/xor_generic.go @@ -2,7 +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 && !arm64 || purego +//go:build purego || !(amd64 || arm64) package subtle