github.com/c9s/go@v0.0.0-20180120015821-984e81f64e0c/src/runtime/cpuflags_amd64.go (about) 1 // Copyright 2015 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 var useAVXmemmove bool 8 9 func init() { 10 // Let's remove stepping and reserved fields 11 processor := processorVersionInfo & 0x0FFF3FF0 12 13 isIntelBridgeFamily := isIntel && 14 processor == 0x206A0 || 15 processor == 0x206D0 || 16 processor == 0x306A0 || 17 processor == 0x306E0 18 19 useAVXmemmove = support_avx && !isIntelBridgeFamily 20 }