]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] simd: move lots of slice functions and methods to generated code
authorDavid Chase <drchase@google.com>
Fri, 25 Jul 2025 19:18:11 +0000 (15:18 -0400)
committerDavid Chase <drchase@google.com>
Mon, 4 Aug 2025 18:52:48 +0000 (11:52 -0700)
commitd375b95357fdf8cdfec722b3672dcc425acf10ad
tree34e2a92ae74317cff2f235436498b1de3995e221
parent3f92aa1ecae1f935731cffefcfe3a400e284ab82
[dev.simd] simd: move lots of slice functions and methods to generated code

Lots of handwritten/stenciled code is now untouched by human hands

For certain combinations of operation-arity and type, there
is an option to use a flaky version of a test helper, that only
requires "close enough".  For example:

testFloat32x4TernaryFlaky(t, simd.Float32x4.FusedMultiplyAdd, fmaSlice[float32], 0.001)

Some of the quirkier operations have their behavior captured
in their test-simulation, for example, ceilResidue regards
infinities as integers (therefore their residue is zero).

Change-Id: I8242914e5ab399edbe226da8586988441cffa83f
Reviewed-on: https://go-review.googlesource.com/c/go/+/690575
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
14 files changed:
src/simd/binary_helpers_test.go
src/simd/compare_helpers_test.go
src/simd/comparemasked_helpers_test.go
src/simd/genfiles.go
src/simd/helpers_test.go
src/simd/simulation_helpers_test.go
src/simd/slice_amd64.go
src/simd/slicepart_amd64.go
src/simd/slicepart_test.go
src/simd/ternary_helpers_test.go
src/simd/ternary_test.go
src/simd/unary_helpers_test.go
src/simd/unary_test.go
src/simd/unsafe_helpers.go [new file with mode: 0644]