Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for _xgetbv (0.15 sec)

  1. src/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c

    #pragma clang attribute push (__attribute__((target("xsave"))), apply_to=function)
    
    // xgetbv reads the contents of an XCR (Extended Control Register)
    // specified in the ECX register into registers EDX:EAX.
    // Currently, the only supported value for XCR is 0.
    void
    gccgoXgetbv(uint32_t *eax, uint32_t *edx)
    {
    	uint64_t v = _xgetbv(0);
    	*eax = v & 0xffffffff;
    	*edx = v >> 32;
    }
    
    #pragma clang attribute pop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/internal/cpu/cpu_x86.s

    	MOVL eaxArg+0(FP), AX
    	MOVL ecxArg+4(FP), CX
    	CPUID
    	MOVL AX, eax+8(FP)
    	MOVL BX, ebx+12(FP)
    	MOVL CX, ecx+16(FP)
    	MOVL DX, edx+20(FP)
    	RET
    
    // func xgetbv() (eax, edx uint32)
    TEXT ·xgetbv(SB),NOSPLIT,$0-8
    	MOVL $0, CX
    	XGETBV
    	MOVL AX, eax+0(FP)
    	MOVL DX, edx+4(FP)
    	RET
    
    // func getGOAMD64level() int32
    TEXT ·getGOAMD64level(SB),NOSPLIT,$0-4
    #ifdef GOAMD64_v4
    	MOVL $4, ret+0(FP)
    #else
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 14 21:23:36 UTC 2022
    - 831 bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/sys/cpu/cpu_x86.s

    	MOVL eaxArg+0(FP), AX
    	MOVL ecxArg+4(FP), CX
    	CPUID
    	MOVL AX, eax+8(FP)
    	MOVL BX, ebx+12(FP)
    	MOVL CX, ecx+16(FP)
    	MOVL DX, edx+20(FP)
    	RET
    
    // func xgetbv() (eax, edx uint32)
    TEXT ·xgetbv(SB),NOSPLIT,$0-8
    	MOVL $0, CX
    	XGETBV
    	MOVL AX, eax+0(FP)
    	MOVL DX, edx+4(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 600 bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go

    package cpu
    
    // cpuid is implemented in cpu_x86.s for gc compiler
    // and in cpu_gccgo.c for gccgo.
    func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32)
    
    // xgetbv with ecx = 0 is implemented in cpu_x86.s for gc compiler
    // and in cpu_gccgo.c for gccgo.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 499 bytes
    - Viewed (0)
  5. src/internal/cpu/cpu_x86.go

    //go:build 386 || amd64
    
    package cpu
    
    const CacheLinePadSize = 64
    
    // cpuid is implemented in cpu_x86.s.
    func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32)
    
    // xgetbv with ecx = 0 is implemented in cpu_x86.s.
    func xgetbv() (eax, edx uint32)
    
    // getGOAMD64level is implemented in cpu_x86.s. Returns number in [1,4].
    func getGOAMD64level() int32
    
    const (
    	// ecx bits
    	cpuid_SSE3      = 1 << 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:20 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go

    	var a, b, c, d uint32
    	gccgoGetCpuidCount(eaxArg, ecxArg, &a, &b, &c, &d)
    	return a, b, c, d
    }
    
    //extern gccgoXgetbv
    func gccgoXgetbv(eax, edx *uint32)
    
    func xgetbv() (eax, edx uint32) {
    	var a, d uint32
    	gccgoXgetbv(&a, &d)
    	return a, d
    }
    
    // gccgo doesn't build on Darwin, per:
    // https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gcc.rb#L76
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 795 bytes
    - Viewed (0)
  7. src/cmd/internal/obj/x86/aenum.go

    	AXBEGIN
    	AXCHGB
    	AXCHGL
    	AXCHGQ
    	AXCHGW
    	AXEND
    	AXGETBV
    	AXLAT
    	AXORB
    	AXORL
    	AXORPD
    	AXORPS
    	AXORQ
    	AXORW
    	AXRELEASE
    	AXRSTOR
    	AXRSTOR64
    	AXRSTORS
    	AXRSTORS64
    	AXSAVE
    	AXSAVE64
    	AXSAVEC
    	AXSAVEC64
    	AXSAVEOPT
    	AXSAVEOPT64
    	AXSAVES
    	AXSAVES64
    	AXSETBV
    	AXTEST
    	ALAST
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 18:32:50 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/sys/cpu/cpu_x86.go

    	X86.HasAES = isSet(25, ecx1)
    	X86.HasOSXSAVE = isSet(27, ecx1)
    	X86.HasRDRAND = isSet(30, ecx1)
    
    	var osSupportsAVX, osSupportsAVX512 bool
    	// For XGETBV, OSXSAVE bit is required and sufficient.
    	if X86.HasOSXSAVE {
    		eax, _ := xgetbv()
    		// Check if XMM and YMM registers have OS support.
    		osSupportsAVX = isSet(1, eax) && isSet(2, eax)
    
    		if runtime.GOOS == "darwin" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/x86/anames.go

    	"XCHGL",
    	"XCHGQ",
    	"XCHGW",
    	"XEND",
    	"XGETBV",
    	"XLAT",
    	"XORB",
    	"XORL",
    	"XORPD",
    	"XORPS",
    	"XORQ",
    	"XORW",
    	"XRELEASE",
    	"XRSTOR",
    	"XRSTOR64",
    	"XRSTORS",
    	"XRSTORS64",
    	"XSAVE",
    	"XSAVE64",
    	"XSAVEC",
    	"XSAVEC64",
    	"XSAVEOPT",
    	"XSAVEOPT64",
    	"XSAVES",
    	"XSAVES64",
    	"XSETBV",
    	"XTEST",
    	"LAST",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 18:32:50 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/arch/x86/x86asm/tables.go

    	WRGSBASE:        "WRGSBASE",
    	WRMSR:           "WRMSR",
    	XABORT:          "XABORT",
    	XADD:            "XADD",
    	XBEGIN:          "XBEGIN",
    	XCHG:            "XCHG",
    	XEND:            "XEND",
    	XGETBV:          "XGETBV",
    	XLATB:           "XLATB",
    	XOR:             "XOR",
    	XORPD:           "XORPD",
    	XORPS:           "XORPS",
    	XRSTOR:          "XRSTOR",
    	XRSTOR64:        "XRSTOR64",
    	XRSTORS:         "XRSTORS",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 266.8K bytes
    - Viewed (0)
Back to top