Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for HWCap (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/internal/cpu/cpu_arm.go

    		{Name: "v7atomics", Feature: &ARM.HasV7Atomics},
    	}
    
    	// HWCAP feature bits
    	ARM.HasVFPv4 = isSet(HWCap, hwcap_VFPv4)
    	ARM.HasIDIVA = isSet(HWCap, hwcap_IDIVA)
    	// lpae is required to make the 64-bit instructions LDRD and STRD (and variants) atomic.
    	// See ARMv7 manual section B1.6.
    	// We also need at least a v7 chip, for the DMB instruction.
    	ARM.HasV7Atomics = isSet(HWCap, hwcap_LPAE) && isV7(Platform)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:38:55 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/runtime/os_freebsd_arm.go

    	_HWCAP_VFP   = 1 << 6
    	_HWCAP_VFPv3 = 1 << 13
    )
    
    func checkgoarm() {
    	if cpu.HWCap&_HWCAP_VFP == 0 && goarmsoftfp == 0 {
    		print("runtime: this CPU has no floating point hardware, so it cannot run\n")
    		print("a binary compiled for hard floating point. Recompile adding ,softfloat\n")
    		print("to GOARM.\n")
    		exit(1)
    	}
    	if goarm > 6 && cpu.HWCap&_HWCAP_VFPv3 == 0 && goarmsoftfp == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go

    // license that can be found in the LICENSE file.
    
    //go:build linux && (mips64 || mips64le)
    
    package cpu
    
    // HWCAP bits. These are exposed by the Linux kernel 5.4.
    const (
    	// CPU features
    	hwcap_MIPS_MSA = 1 << 1
    )
    
    func doinit() {
    	// HWCAP feature bits
    	MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA)
    }
    
    func isSet(hwc uint, value uint) bool {
    	return hwc&value != 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 480 bytes
    - Viewed (0)
  9. src/runtime/os_linux_mips64x.go

    // license that can be found in the LICENSE file.
    
    //go:build linux && (mips64 || mips64le)
    
    package runtime
    
    import "internal/cpu"
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		cpu.HWCap = uint(val)
    	}
    }
    
    func osArchInit() {}
    
    //go:nosplit
    func cputicks() int64 {
    	// nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    }
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 996 bytes
    - Viewed (0)
  10. src/internal/cpu/cpu_ppc64x_other.go

    // license that can be found in the LICENSE file.
    
    //go:build (ppc64 || ppc64le) && !aix && !linux
    
    package cpu
    
    func osinit() {
    	// Other operating systems do not support reading HWCap from auxiliary vector,
    	// reading privileged system registers or sysctl in user space to detect CPU
    	// features at runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 18 06:24:06 UTC 2023
    - 423 bytes
    - Viewed (0)
Back to top