Source file src/simd/archsimd/cpu_sve_notarm64.go
1 // Copyright 2026 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 5 //go:build goexperiment.simd && !arm64 6 7 package archsimd 8 9 // SVE returns whether the CPU supports the SVE extension with a hardware 10 // vector length of at most 256 bits. The scalable vector types require SVE. 11 // 12 // SVE is defined on all GOARCHes, but will only return true on 13 // GOARCH arm64. 14 func (ARM64Features) SVE() bool { 15 return false 16 } 17 18 // SVE2 returns whether the CPU supports the SVE2 extension with a hardware 19 // vector length of at most 256 bits. 20 // 21 // SVE2 is defined on all GOARCHes, but will only return true on 22 // GOARCH arm64. 23 func (ARM64Features) SVE2() bool { 24 return false 25 } 26