2025-05-29 14:55:01 -04:00
|
|
|
// Copyright 2025 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 goexperiment.simd
|
|
|
|
|
|
2025-06-05 15:09:19 -04:00
|
|
|
// The build condition == if the experiment is not on, cmd/api TestCheck will see this and complain
|
2025-05-29 14:55:01 -04:00
|
|
|
// see also go/doc/comment, where "simd" is inserted to the package list of the experiment is not on.
|
|
|
|
|
|
|
|
|
|
package simd
|
|
|
|
|
|
|
|
|
|
import "internal/cpu"
|
|
|
|
|
|
|
|
|
|
func HasAVX512BW() bool {
|
|
|
|
|
return cpu.X86.HasAVX512BW
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func HasAVX512VL() bool {
|
|
|
|
|
return cpu.X86.HasAVX512VL
|
|
|
|
|
}
|