Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for HWCap (0.04 sec)

  1. src/internal/cpu/cpu_mips64x.go

    // initialized.
    var HWCap uint
    
    // HWCAP bits. These are exposed by the Linux kernel 5.4.
    const (
    	// CPU features
    	hwcap_MIPS_MSA = 1 << 1
    )
    
    func doinit() {
    	options = []option{
    		{Name: "msa", Feature: &MIPS64X.HasMSA},
    	}
    
    	// HWCAP feature bits
    	MIPS64X.HasMSA = isSet(HWCap, hwcap_MIPS_MSA)
    }
    
    func isSet(hwc uint, value uint) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 671 bytes
    - Viewed (0)
  2. src/runtime/os_linux_ppc64x.go

    package runtime
    
    import "internal/cpu"
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		// ppc64x doesn't have a 'cpuid' instruction
    		// equivalent and relies on HWCAP/HWCAP2 bits for
    		// hardware capabilities.
    		cpu.HWCap = uint(val)
    	case _AT_HWCAP2:
    		cpu.HWCap2 = uint(val)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 526 bytes
    - Viewed (0)
  3. src/internal/cpu/cpu_ppc64x_linux.go

    //go:build ppc64 || ppc64le
    
    package cpu
    
    // ppc64 doesn't have a 'cpuid' equivalent, so we rely on HWCAP/HWCAP2.
    // These are initialized by archauxv and should not be changed after they are
    // initialized.
    var HWCap uint
    var HWCap2 uint
    
    // HWCAP bits. These are exposed by Linux.
    const (
    	// ISA Level
    	hwcap2_ARCH_2_07 = 0x80000000
    	hwcap2_ARCH_3_00 = 0x00800000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 20:05:43 UTC 2022
    - 885 bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/sys/cpu/cpu_linux_s390x.go

    package cpu
    
    const (
    	// bit mask values from /usr/include/bits/hwcap.h
    	hwcap_ZARCH  = 2
    	hwcap_STFLE  = 4
    	hwcap_MSA    = 8
    	hwcap_LDISP  = 16
    	hwcap_EIMM   = 32
    	hwcap_DFP    = 64
    	hwcap_ETF3EH = 256
    	hwcap_VX     = 2048
    	hwcap_VXE    = 8192
    )
    
    func initS390Xbase() {
    	// test HWCAP bit vector
    	has := func(featureMask uint) bool {
    		return hwCap&featureMask == featureMask
    	}
    
    	// mandatory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 890 bytes
    - Viewed (0)
  5. src/runtime/os_linux_s390x.go

    	_HWCAP_VX = 1 << 11 // vector facility
    )
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		cpu.HWCap = uint(val)
    	}
    }
    
    func osArchInit() {}
    
    func checkS390xCPU() {
    	// Check if the present z-system has the hardware capability to carryout
    	// floating point operations. Check if hwcap reflects CPU capability for the
    	// necessary floating point hardware (HasVX) availability.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 17:36:28 UTC 2023
    - 825 bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/sys/cpu/cpu_linux_arm.go

    	ARM.HasTHUMBEE = isSet(hwCap, hwcap_THUMBEE)
    	ARM.HasNEON = isSet(hwCap, hwcap_NEON)
    	ARM.HasVFPv3 = isSet(hwCap, hwcap_VFPv3)
    	ARM.HasVFPv3D16 = isSet(hwCap, hwcap_VFPv3D16)
    	ARM.HasTLS = isSet(hwCap, hwcap_TLS)
    	ARM.HasVFPv4 = isSet(hwCap, hwcap_VFPv4)
    	ARM.HasIDIVA = isSet(hwCap, hwcap_IDIVA)
    	ARM.HasIDIVT = isSet(hwCap, hwcap_IDIVT)
    	ARM.HasVFPD32 = isSet(hwCap, hwcap_VFPD32)
    	ARM.HasLPAE = isSet(hwCap, hwcap_LPAE)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 21:26:10 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go

    	ARM64.HasFPHP = isSet(hwCap, hwcap_FPHP)
    	ARM64.HasASIMDHP = isSet(hwCap, hwcap_ASIMDHP)
    	ARM64.HasCPUID = isSet(hwCap, hwcap_CPUID)
    	ARM64.HasASIMDRDM = isSet(hwCap, hwcap_ASIMDRDM)
    	ARM64.HasJSCVT = isSet(hwCap, hwcap_JSCVT)
    	ARM64.HasFCMA = isSet(hwCap, hwcap_FCMA)
    	ARM64.HasLRCPC = isSet(hwCap, hwcap_LRCPC)
    	ARM64.HasDCPOP = isSet(hwCap, hwcap_DCPOP)
    	ARM64.HasSHA3 = isSet(hwCap, hwcap_SHA3)
    	ARM64.HasSM3 = isSet(hwCap, hwcap_SM3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. src/internal/cpu/cpu_arm64_hwcap.go

    )
    
    func hwcapInit(os string) {
    	// HWCap was populated by the runtime from the auxiliary vector.
    	// Use HWCap information since reading aarch64 system registers
    	// is not supported in user space on older linux kernels.
    	ARM64.HasAES = isSet(HWCap, hwcap_AES)
    	ARM64.HasPMULL = isSet(HWCap, hwcap_PMULL)
    	ARM64.HasSHA1 = isSet(HWCap, hwcap_SHA1)
    	ARM64.HasSHA2 = isSet(HWCap, hwcap_SHA2)
    	ARM64.HasCRC32 = isSet(HWCap, hwcap_CRC32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/sys/cpu/hwcap_linux.go

    	_AT_HWCAP2 = 26
    
    	procAuxv = "/proc/self/auxv"
    
    	uintSize = int(32 << (^uint(0) >> 63))
    )
    
    // For those platforms don't have a 'cpuid' equivalent we use HWCAP/HWCAP2
    // These are initialized in cpu_$GOARCH.go
    // and should not be changed after they are initialized.
    var hwCap uint
    var hwCap2 uint
    
    func readHWCAP() error {
    	// For Go 1.21+, get auxv from the Go runtime.
    	if a := getAuxv(); len(a) > 0 {
    		for len(a) >= 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. src/runtime/os_linux_arm.go

    )
    
    func vdsoCall()
    
    func checkgoarm() {
    	// On Android, /proc/self/auxv might be unreadable and hwcap won't
    	// reflect the CPU capabilities. Assume that every Android arm device
    	// has the necessary floating point hardware available.
    	if GOOS == "android" {
    		return
    	}
    	if cpu.HWCap&_HWCAP_VFP == 0 && goarmsoftfp == 0 {
    		print("runtime: this CPU has no floating point hardware, so it cannot run\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top