1 // Copyright 2019 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.
9 import "golang.org/x/sys/unix"
11 const cacheLineSize = 128
14 // getsystemcfg constants
16 _IMPL_POWER8 = 0x10000
17 _IMPL_POWER9 = 0x20000
21 impl := unix.Getsystemcfg(_SC_IMPL)
22 if impl&_IMPL_POWER8 != 0 {
25 if impl&_IMPL_POWER9 != 0 {