Source file src/simd/midway_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 simd 8 9 import ( 10 "internal/cpu" 11 ) 12 13 const archHasHwClmul = true 14 15 func archMaxVectorSize() (size, allFeatureSize int) { 16 // This describes Neon, SVE is still TBD. 17 size = 128 18 if cpu.ARM64.HasPMULL { 19 allFeatureSize = 128 20 } 21 return 22 } 23