mirror of
https://github.com/hanzoai/wasm2go.git
synced 2026-10-30 15:06:48 +00:00
Assembly overrides can now declare an arm64 body for FEAT_FHM, the f16-product / f32-accumulate multiply-adds (FMLAL, FMLAL2 and their by-element forms). The base package detects it (hw.optional.arm.FEAT_FHM on darwin, HWCAP_ASIMDFHM on linux) as CPUFHM, and the dispatch ladder checks it first: the arm64 levels are independent features rather than a ladder, so the order only decides which of several present bodies runs. Co-authored-by: Claude Fable 5.1 <[email protected]>
10 lines
214 B
Go
10 lines
214 B
Go
//go:build arm64 && !darwin && !linux
|
|
|
|
package helpers
|
|
|
|
// CPUDotProd / CPUI8MM / CPUFHM: no detection story on this OS — run
|
|
// the portable bodies.
|
|
var CPUDotProd = false
|
|
var CPUI8MM = false
|
|
var CPUFHM = false
|