mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
s/!gccgo/gc/ in files which use gc-syntax assembly. Change-Id: Iafc006cd60ad0e429cff182a05c790d80c380802 Reviewed-on: https://go-review.googlesource.com/c/sys/+/269717 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Than McIntosh <thanm@google.com>
17 lines
497 B
Go
17 lines
497 B
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.
|
|
|
|
// +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)
|