Black Lives Matter. Support the Equal Justice Initiative.

Source file src/internal/cpu/cpu_ppc64x_aix.go

Documentation: internal/cpu

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

View as plain text