]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] simd, internal/cpu: support more AVX CPU Feature checks
authorJunyang Shao <shaojunyang@google.com>
Tue, 15 Jul 2025 21:38:28 +0000 (21:38 +0000)
committerDavid Chase <drchase@google.com>
Mon, 21 Jul 2025 21:26:04 +0000 (14:26 -0700)
commit41054cdb1cd9f2a7400668d385ec1a030d90389c
tree718774b79107c2cf5477190e4411407319540560
parent957f06c410db08ac7bc5dea19fce2c6187c95d6a
[dev.simd] simd, internal/cpu: support more AVX CPU Feature checks

This CL adds more checks, it also changes HasAVX512GFNI to be exactly
checking GFNI instead of being a virtual feature.

This CL copies its logic from x/sys/arch.

Change-Id: I4612b0409b8a3518928300562ae08bcf123d53a7
Reviewed-on: https://go-review.googlesource.com/c/go/+/688276
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/internal/cpu/cpu.go
src/internal/cpu/cpu_x86.go
src/simd/cpu.go