github.com/geraldss/go/src@v0.0.0-20210511222824-ac7d0ebfc235/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 "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 }