Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for HWCap (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/runtime/os_linux_arm64.go

    // license that can be found in the LICENSE file.
    
    //go:build arm64
    
    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()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 478 bytes
    - Viewed (0)
  7. src/internal/cpu/cpu_arm64_other.go

    // license that can be found in the LICENSE file.
    
    //go:build arm64 && !linux && !freebsd && !android && (!darwin || ios) && !openbsd
    
    package cpu
    
    func osInit() {
    	// Other operating systems do not support reading HWCap from auxiliary vector,
    	// reading privileged aarch64 system registers or sysctl in user space to detect
    	// CPU features at runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 15:07:46 UTC 2022
    - 466 bytes
    - Viewed (0)
  8. src/internal/cpu/cpu_s390x.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cpu
    
    const CacheLinePadSize = 256
    
    var HWCap uint
    
    // bitIsSet reports whether the bit at index is set. The bit index
    // is in big endian order, so bit index 0 is the leftmost bit.
    func bitIsSet(bits []uint64, index uint) bool {
    	return bits[index/64]&((1<<63)>>(index%64)) != 0
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 22 17:11:03 UTC 2020
    - 5.9K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build linux && (ppc64 || ppc64le)
    
    package cpu
    
    // HWCAP/HWCAP2 bits. These are exposed by the kernel.
    const (
    	// ISA Level
    	_PPC_FEATURE2_ARCH_2_07 = 0x80000000
    	_PPC_FEATURE2_ARCH_3_00 = 0x00800000
    
    	// CPU features
    	_PPC_FEATURE2_DARN = 0x00200000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 775 bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/sys/cpu/cpu_arm.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cpu
    
    const cacheLineSize = 32
    
    // HWCAP/HWCAP2 bits.
    // These are specific to Linux.
    const (
    	hwcap_SWP       = 1 << 0
    	hwcap_HALF      = 1 << 1
    	hwcap_THUMB     = 1 << 2
    	hwcap_26BIT     = 1 << 3
    	hwcap_FAST_MULT = 1 << 4
    	hwcap_FPA       = 1 << 5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 21 22:10:00 UTC 2020
    - 2.1K bytes
    - Viewed (0)
Back to top