github.com/go-darwin/sys@v0.0.0-20220510002607-68fd01f054ca/asm_amd64.h (about)

     1  // Copyright 2021 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  // Define features that are guaranteed to be supported by setting the AMD64 variable.
     6  // If a feature is supported, there's no need to check it at runtime every time.
     7  
     8  #ifdef GOAMD64_v3
     9  #define hasAVX2
    10  #endif
    11  
    12  #ifdef GOAMD64_v4
    13  #define hasAVX2
    14  #endif