Source file src/simd/archsimd/_gen/cmd/hostinfo/sve_arm64.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 main
     8  
     9  import "simd/archsimd"
    10  
    11  func sveVectorBits() (int, bool) {
    12  	if !archsimd.ARM64.SVE() {
    13  		return 0, false
    14  	}
    15  	// Int8s.Len() returns the runtime vector length in bytes (vl()).
    16  	return archsimd.Int8s{}.Len() * 8, true
    17  }
    18  

View as plain text