Debian Codegraph @

libgo/go/internal/cpu/cpu_ppc64x_aix.go

raw
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 //go:build ppc || ppc64 || ppc64le
6
7 package cpu
8
9 const (
10 // getsystemcfg constants
11 _SC_IMPL = 2
12 _IMPL_POWER9 = 0x20000
13 )
14
15 func osinit() {
16 impl := getsystemcfg(_SC_IMPL)
17 PPC64.IsPOWER9 = isSet(impl, _IMPL_POWER9)
18 }
19
20 //extern getsystemcfg
21 func getsystemcfg(label uint) uint