]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
simd/archsimd: define ToMask only on integer vectors
authorCherry Mui <cherryyz@google.com>
Wed, 10 Dec 2025 17:05:45 +0000 (12:05 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 11 Dec 2025 16:31:43 +0000 (08:31 -0800)
commitf110ba540c35c5ac835921727332fb6f02adf594
tree06f58a230bfef1e752ff272f60692f3ae49ca308
parent1da0c29c2aeb114a6bc4cc62bcedc1b956925cf9
simd/archsimd: define ToMask only on integer vectors

The ToMask method is for converting an AVX2-style mask
represented in a vector to the Mask type. The AVX2-style mask is
a (signed) integer, so define ToMask only on integer vectors.

Cherry-pick CL 729020 from the dev.simd branch, for Go 1.26.

Change-Id: I0c541eb28e945bfaebf2a2feb940bdd438fb6e99
Reviewed-on: https://go-review.googlesource.com/c/go/+/729222
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: David Chase <drchase@google.com>
src/simd/archsimd/_gen/tmplgen/main.go
src/simd/archsimd/other_gen_amd64.go