You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cpu_gc_x86.go 681B

123456789101112131415161718192021
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build (386 || amd64 || amd64p32) && gc
  5. // +build 386 amd64 amd64p32
  6. // +build gc
  7. package cpu
  8. // cpuid is implemented in cpu_x86.s for gc compiler
  9. // and in cpu_gccgo.c for gccgo.
  10. func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32)
  11. // xgetbv with ecx = 0 is implemented in cpu_x86.s for gc compiler
  12. // and in cpu_gccgo.c for gccgo.
  13. func xgetbv() (eax, edx uint32)
  14. // darwinSupportsAVX512 is implemented in cpu_x86.s for gc compiler
  15. // and in cpu_gccgo_x86.go for gccgo.
  16. func darwinSupportsAVX512() bool