github.com/emmansun/gmsm@v0.29.1/internal/subtle/xor_amd64.go (about)

     1  // Copyright 2018 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  //
     5  //go:build !purego
     6  
     7  package subtle
     8  
     9  import "golang.org/x/sys/cpu"
    10  
    11  var useAVX2 = cpu.X86.HasAVX2
    12  
    13  //go:noescape
    14  func xorBytes(dst, a, b *byte, n int)