mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.simd] simd: add AVX512 aggregated check
This added check could make AI test code generation's life easier. Change-Id: I725f567100159acd1ee537e8b1e6cb9c9e2bc690 Reviewed-on: https://go-review.googlesource.com/c/go/+/683016 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
0cdb2697d1
commit
dd63b7aa0e
2 changed files with 13 additions and 16 deletions
|
|
@ -11,10 +11,7 @@ package simd
|
|||
|
||||
import "internal/cpu"
|
||||
|
||||
func HasAVX512BW() bool {
|
||||
return cpu.X86.HasAVX512BW
|
||||
}
|
||||
|
||||
func HasAVX512VL() bool {
|
||||
return cpu.X86.HasAVX512VL
|
||||
// HasAVX512 checks AVX512 CPU feature F+CD+BW+DQ+VL.
|
||||
func HasAVX512() bool {
|
||||
return cpu.X86.HasAVX512
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue