Black Lives Matter. Support the Equal Justice Initiative.

Source file src/internal/cpu/cpu_ppc64x.go

Documentation: internal/cpu

     1  // Copyright 2017 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 CacheLinePadSize = 128
    11  
    12  func doinit() {
    13  	options = []option{
    14  		{Name: "darn", Feature: &PPC64.HasDARN},
    15  		{Name: "scv", Feature: &PPC64.HasSCV},
    16  		{Name: "power9", Feature: &PPC64.IsPOWER9},
    17  	}
    18  
    19  	osinit()
    20  }
    21  
    22  func isSet(hwc uint, value uint) bool {
    23  	return hwc&value != 0
    24  }
    25  

View as plain text