Source file src/simd/archsimd/cpu_other.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 6 7 package archsimd 8 9 import "internal/cpu" 10 11 type ARM64Features struct{} 12 13 var ARM64 ARM64Features 14 15 // PMULL returns whether the CPU supports the PMULL feature. 16 // 17 // PMULL is defined on all GOARCHes, but will only return true on 18 // GOARCH arm64. 19 func (ARM64Features) PMULL() bool { 20 return cpu.ARM64.HasPMULL 21 } 22