...
Run Format

Source file src/runtime/os_linux_s390x.go

Documentation: runtime

     1  // Copyright 2016 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  import "internal/cpu"
     8  
     9  const (
    10  	// bit masks taken from bits/hwcap.h
    11  	_HWCAP_S390_VX = 2048 // vector facility
    12  )
    13  
    14  func archauxv(tag, val uintptr) {
    15  	switch tag {
    16  	case _AT_HWCAP: // CPU capability bit flags
    17  		cpu.S390X.HasVX = val&_HWCAP_S390_VX != 0
    18  	}
    19  }
    20  

View as plain text