File: cpu_gc_x86.go

package info (click to toggle)
golang-golang-x-sys 0.0~git20211216.1d35b9e-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 8,844 kB
  • sloc: asm: 1,987; sh: 900; ansic: 44; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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 (386 || amd64 || amd64p32) && gc
// +build 386 amd64 amd64p32
// +build gc

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.
func xgetbv() (eax, edx uint32)