Source file src/simd/archsimd/cpu_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  type ARM64Features struct{}
    10  
    11  var ARM64 ARM64Features
    12  
    13  // PMULL returns whether the CPU supports the PMULL feature.
    14  //
    15  // PMULL is defined on all GOARCHes, but will only return true on
    16  // GOARCH arm64.
    17  func (ARM64Features) PMULL() bool {
    18  	return false
    19  }
    20  
    21  func (ARM64Features) SVE() bool {
    22  	return false
    23  }
    24  
    25  // SVE2 returns whether the CPU supports the SVE2 extension.
    26  func (ARM64Features) SVE2() bool {
    27  	return false
    28  }
    29  

View as plain text