github.com/comwrg/go/src@v0.0.0-20220319063731-c238d0440370/runtime/cpuflags_arm64.go (about)

     1  // Copyright 2020 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  package runtime
     6  
     7  import (
     8  	"github.com/comwrg/go/src/internal/cpu"
     9  )
    10  
    11  var arm64UseAlignedLoads bool
    12  
    13  func init() {
    14  	if cpu.ARM64.IsNeoverseN1 || cpu.ARM64.IsZeus {
    15  		arm64UseAlignedLoads = true
    16  	}
    17  }