simd/archsimd: reconcile Load*Array, FromBits, and ToInt* names with spec Reconcile parameter, receiver, and result names in Load*Array (y -> x), FromBits (y -> x), and To* mask conversions (from/to -> x/z) across simdgen and wasmgen to match internal/spec. For #81819 Change-Id: Id749b7f60f3b838254962f368e66cade6a6a6964 Reviewed-on: https://go-review.googlesource.com/c/go/+/845947 Auto-Submit: Austin Clements <austin@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
diff --git a/src/simd/archsimd/_gen/SPEC-STATS.txt b/src/simd/archsimd/_gen/SPEC-STATS.txt index 99c4b3b..fc9601f 100644 --- a/src/simd/archsimd/_gen/SPEC-STATS.txt +++ b/src/simd/archsimd/_gen/SPEC-STATS.txt
@@ -65,8 +65,8 @@ one (or _) is not, and is counted below as a name Fill fills in instead: type mismatches 0 -> 0 [fill-enforce] - parameter-name mismatches 62 -> 0 [named-results] - result-name mismatches 20 -> 0 [named-results] + parameter-name mismatches 0 -> 0 [named-results] + result-name mismatches 0 -> 0 [named-results] Names spec gives that the API leaves unnamed, for declarations spec covers:
diff --git a/src/simd/archsimd/_gen/simdgen/gen_simdTypes.go b/src/simd/archsimd/_gen/simdgen/gen_simdTypes.go index da27df9..4a80060 100644 --- a/src/simd/archsimd/_gen/simdgen/gen_simdTypes.go +++ b/src/simd/archsimd/_gen/simdgen/gen_simdTypes.go
@@ -459,7 +459,7 @@ // Load{{.Name}}Array loads {{.Article}} {{.Name}} from an array. // //go:noescape -func Load{{.Name}}Array(y *[{{.Lanes}}]{{.Base}}) {{.Name}} +func Load{{.Name}}Array(x *[{{.Lanes}}]{{.Base}}) {{.Name}} // StoreArray stores {{.Article}} {{.Name}} to an array. // @@ -540,11 +540,11 @@ const simdMaskFromValTemplate = ` // {{.Name}}FromBits constructs a {{.Name}} from a bitmap value, where 1 means set for the indexed element, 0 means unset. {{- if ne .Lanes .LanesContainer}} -// Only the lower {{.Lanes}} bits of y are used. +// Only the lower {{.Lanes}} bits of x are used. {{- end}} // // Asm: KMOV{{.IntelSizeSuffix}}, CPU Feature: AVX512 -func {{.Name}}FromBits(y uint{{.LanesContainer}}) {{.Name}} +func {{.Name}}FromBits(x uint{{.LanesContainer}}) {{.Name}} // ToBits constructs a bitmap from a {{.Name}}, where 1 means set for the indexed element, 0 means unset. {{- if ne .Lanes .LanesContainer}} @@ -762,7 +762,7 @@ st.Add("mask", `// To{{.VectorCounterpart}} converts from {{.Name}} to {{.VectorCounterpart}}. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from {{.Name}}) To{{.VectorCounterpart}}() (to {{.VectorCounterpart}}) +func (x {{.Name}}) To{{.VectorCounterpart}}() (z {{.VectorCounterpart}}) // asMask converts from {{.VectorCounterpart}} to {{.Name}}. func (from {{.VectorCounterpart}}) asMask() (to {{.Name}})
diff --git a/src/simd/archsimd/_gen/wasmgen/main.go b/src/simd/archsimd/_gen/wasmgen/main.go index 6cf1061..389fc0d 100644 --- a/src/simd/archsimd/_gen/wasmgen/main.go +++ b/src/simd/archsimd/_gen/wasmgen/main.go
@@ -1106,7 +1106,7 @@ // Load{{.Name}}Array loads {{.Article}} {{.Name}} from a [{{.Count}}]{{.Elem}}. // //go:noescape -func Load{{.Name}}Array(y *[{{.Count}}]{{.Elem}}) {{.Name}} +func Load{{.Name}}Array(x *[{{.Count}}]{{.Elem}}) {{.Name}} // Load{{.Name}} loads {{.Article}} {{.Name}} from a slice of at least {{.Count}} {{.Elem}}s. func Load{{.Name}}(s []{{.Elem}}) {{.Name}} {
diff --git a/src/simd/archsimd/ops_amd64.go b/src/simd/archsimd/ops_amd64.go index d02011a..0065124 100644 --- a/src/simd/archsimd/ops_amd64.go +++ b/src/simd/archsimd/ops_amd64.go
@@ -10314,7 +10314,7 @@ // ToInt8x16 converts from Mask8x16 to Int8x16. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask8x16) ToInt8x16() (to Int8x16) +func (x Mask8x16) ToInt8x16() (z Int8x16) // asMask converts from Int8x16 to Mask8x16. func (from Int8x16) asMask() (to Mask8x16) @@ -10326,7 +10326,7 @@ // ToInt8x32 converts from Mask8x32 to Int8x32. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask8x32) ToInt8x32() (to Int8x32) +func (x Mask8x32) ToInt8x32() (z Int8x32) // asMask converts from Int8x32 to Mask8x32. func (from Int8x32) asMask() (to Mask8x32) @@ -10338,7 +10338,7 @@ // ToInt8x64 converts from Mask8x64 to Int8x64. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask8x64) ToInt8x64() (to Int8x64) +func (x Mask8x64) ToInt8x64() (z Int8x64) // asMask converts from Int8x64 to Mask8x64. func (from Int8x64) asMask() (to Mask8x64) @@ -10350,7 +10350,7 @@ // ToInt16x8 converts from Mask16x8 to Int16x8. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask16x8) ToInt16x8() (to Int16x8) +func (x Mask16x8) ToInt16x8() (z Int16x8) // asMask converts from Int16x8 to Mask16x8. func (from Int16x8) asMask() (to Mask16x8) @@ -10362,7 +10362,7 @@ // ToInt16x16 converts from Mask16x16 to Int16x16. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask16x16) ToInt16x16() (to Int16x16) +func (x Mask16x16) ToInt16x16() (z Int16x16) // asMask converts from Int16x16 to Mask16x16. func (from Int16x16) asMask() (to Mask16x16) @@ -10374,7 +10374,7 @@ // ToInt16x32 converts from Mask16x32 to Int16x32. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask16x32) ToInt16x32() (to Int16x32) +func (x Mask16x32) ToInt16x32() (z Int16x32) // asMask converts from Int16x32 to Mask16x32. func (from Int16x32) asMask() (to Mask16x32) @@ -10386,7 +10386,7 @@ // ToInt32x4 converts from Mask32x4 to Int32x4. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask32x4) ToInt32x4() (to Int32x4) +func (x Mask32x4) ToInt32x4() (z Int32x4) // asMask converts from Int32x4 to Mask32x4. func (from Int32x4) asMask() (to Mask32x4) @@ -10398,7 +10398,7 @@ // ToInt32x8 converts from Mask32x8 to Int32x8. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask32x8) ToInt32x8() (to Int32x8) +func (x Mask32x8) ToInt32x8() (z Int32x8) // asMask converts from Int32x8 to Mask32x8. func (from Int32x8) asMask() (to Mask32x8) @@ -10410,7 +10410,7 @@ // ToInt32x16 converts from Mask32x16 to Int32x16. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask32x16) ToInt32x16() (to Int32x16) +func (x Mask32x16) ToInt32x16() (z Int32x16) // asMask converts from Int32x16 to Mask32x16. func (from Int32x16) asMask() (to Mask32x16) @@ -10422,7 +10422,7 @@ // ToInt64x2 converts from Mask64x2 to Int64x2. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask64x2) ToInt64x2() (to Int64x2) +func (x Mask64x2) ToInt64x2() (z Int64x2) // asMask converts from Int64x2 to Mask64x2. func (from Int64x2) asMask() (to Mask64x2) @@ -10434,7 +10434,7 @@ // ToInt64x4 converts from Mask64x4 to Int64x4. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask64x4) ToInt64x4() (to Int64x4) +func (x Mask64x4) ToInt64x4() (z Int64x4) // asMask converts from Int64x4 to Mask64x4. func (from Int64x4) asMask() (to Mask64x4) @@ -10446,7 +10446,7 @@ // ToInt64x8 converts from Mask64x8 to Int64x8. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask64x8) ToInt64x8() (to Int64x8) +func (x Mask64x8) ToInt64x8() (z Int64x8) // asMask converts from Int64x8 to Mask64x8. func (from Int64x8) asMask() (to Mask64x8)
diff --git a/src/simd/archsimd/ops_arm64.go b/src/simd/archsimd/ops_arm64.go index de82d39..0eef217 100644 --- a/src/simd/archsimd/ops_arm64.go +++ b/src/simd/archsimd/ops_arm64.go
@@ -2244,7 +2244,7 @@ // ToInt8x16 converts from Mask8x16 to Int8x16. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask8x16) ToInt8x16() (to Int8x16) +func (x Mask8x16) ToInt8x16() (z Int8x16) // asMask converts from Int8x16 to Mask8x16. func (from Int8x16) asMask() (to Mask8x16) @@ -2258,7 +2258,7 @@ // ToInt16x8 converts from Mask16x8 to Int16x8. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask16x8) ToInt16x8() (to Int16x8) +func (x Mask16x8) ToInt16x8() (z Int16x8) // asMask converts from Int16x8 to Mask16x8. func (from Int16x8) asMask() (to Mask16x8) @@ -2272,7 +2272,7 @@ // ToInt32x4 converts from Mask32x4 to Int32x4. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask32x4) ToInt32x4() (to Int32x4) +func (x Mask32x4) ToInt32x4() (z Int32x4) // asMask converts from Int32x4 to Mask32x4. func (from Int32x4) asMask() (to Mask32x4) @@ -2286,7 +2286,7 @@ // ToInt64x2 converts from Mask64x2 to Int64x2. // If element i in the mask is "true", all bits in element i of the resulting // vector will be set. -func (from Mask64x2) ToInt64x2() (to Int64x2) +func (x Mask64x2) ToInt64x2() (z Int64x2) // asMask converts from Int64x2 to Mask64x2. func (from Int64x2) asMask() (to Mask64x2)
diff --git a/src/simd/archsimd/types_amd64.go b/src/simd/archsimd/types_amd64.go index 40dafde..f65abf4 100644 --- a/src/simd/archsimd/types_amd64.go +++ b/src/simd/archsimd/types_amd64.go
@@ -21,7 +21,7 @@ // LoadFloat32x4Array loads a Float32x4 from an array. // //go:noescape -func LoadFloat32x4Array(y *[4]float32) Float32x4 +func LoadFloat32x4Array(x *[4]float32) Float32x4 // StoreArray stores a Float32x4 to an array. // @@ -59,7 +59,7 @@ // LoadFloat64x2Array loads a Float64x2 from an array. // //go:noescape -func LoadFloat64x2Array(y *[2]float64) Float64x2 +func LoadFloat64x2Array(x *[2]float64) Float64x2 // StoreArray stores a Float64x2 to an array. // @@ -97,7 +97,7 @@ // LoadInt8x16Array loads an Int8x16 from an array. // //go:noescape -func LoadInt8x16Array(y *[16]int8) Int8x16 +func LoadInt8x16Array(x *[16]int8) Int8x16 // StoreArray stores an Int8x16 to an array. // @@ -116,7 +116,7 @@ // LoadInt16x8Array loads an Int16x8 from an array. // //go:noescape -func LoadInt16x8Array(y *[8]int16) Int16x8 +func LoadInt16x8Array(x *[8]int16) Int16x8 // StoreArray stores an Int16x8 to an array. // @@ -135,7 +135,7 @@ // LoadInt32x4Array loads an Int32x4 from an array. // //go:noescape -func LoadInt32x4Array(y *[4]int32) Int32x4 +func LoadInt32x4Array(x *[4]int32) Int32x4 // StoreArray stores an Int32x4 to an array. // @@ -173,7 +173,7 @@ // LoadInt64x2Array loads an Int64x2 from an array. // //go:noescape -func LoadInt64x2Array(y *[2]int64) Int64x2 +func LoadInt64x2Array(x *[2]int64) Int64x2 // StoreArray stores an Int64x2 to an array. // @@ -211,7 +211,7 @@ // LoadUint8x16Array loads a Uint8x16 from an array. // //go:noescape -func LoadUint8x16Array(y *[16]uint8) Uint8x16 +func LoadUint8x16Array(x *[16]uint8) Uint8x16 // StoreArray stores a Uint8x16 to an array. // @@ -230,7 +230,7 @@ // LoadUint16x8Array loads a Uint16x8 from an array. // //go:noescape -func LoadUint16x8Array(y *[8]uint16) Uint16x8 +func LoadUint16x8Array(x *[8]uint16) Uint16x8 // StoreArray stores a Uint16x8 to an array. // @@ -249,7 +249,7 @@ // LoadUint32x4Array loads a Uint32x4 from an array. // //go:noescape -func LoadUint32x4Array(y *[4]uint32) Uint32x4 +func LoadUint32x4Array(x *[4]uint32) Uint32x4 // StoreArray stores a Uint32x4 to an array. // @@ -287,7 +287,7 @@ // LoadUint64x2Array loads a Uint64x2 from an array. // //go:noescape -func LoadUint64x2Array(y *[2]uint64) Uint64x2 +func LoadUint64x2Array(x *[2]uint64) Uint64x2 // StoreArray stores a Uint64x2 to an array. // @@ -322,7 +322,7 @@ // Mask8x16FromBits constructs a Mask8x16 from a bitmap value, where 1 means set for the indexed element, 0 means unset. // // Asm: KMOVB, CPU Feature: AVX512 -func Mask8x16FromBits(y uint16) Mask8x16 +func Mask8x16FromBits(x uint16) Mask8x16 // ToBits constructs a bitmap from a Mask8x16, where 1 means set for the indexed element, 0 means unset. // @@ -338,7 +338,7 @@ // Mask16x8FromBits constructs a Mask16x8 from a bitmap value, where 1 means set for the indexed element, 0 means unset. // // Asm: KMOVW, CPU Feature: AVX512 -func Mask16x8FromBits(y uint8) Mask16x8 +func Mask16x8FromBits(x uint8) Mask16x8 // ToBits constructs a bitmap from a Mask16x8, where 1 means set for the indexed element, 0 means unset. // @@ -352,10 +352,10 @@ } // Mask32x4FromBits constructs a Mask32x4 from a bitmap value, where 1 means set for the indexed element, 0 means unset. -// Only the lower 4 bits of y are used. +// Only the lower 4 bits of x are used. // // Asm: KMOVD, CPU Feature: AVX512 -func Mask32x4FromBits(y uint8) Mask32x4 +func Mask32x4FromBits(x uint8) Mask32x4 // ToBits constructs a bitmap from a Mask32x4, where 1 means set for the indexed element, 0 means unset. // Only the lower 4 bits of y are used. @@ -370,10 +370,10 @@ } // Mask64x2FromBits constructs a Mask64x2 from a bitmap value, where 1 means set for the indexed element, 0 means unset. -// Only the lower 2 bits of y are used. +// Only the lower 2 bits of x are used. // // Asm: KMOVQ, CPU Feature: AVX512 -func Mask64x2FromBits(y uint8) Mask64x2 +func Mask64x2FromBits(x uint8) Mask64x2 // ToBits constructs a bitmap from a Mask64x2, where 1 means set for the indexed element, 0 means unset. // Only the lower 2 bits of y are used. @@ -398,7 +398,7 @@ // LoadFloat32x8Array loads a Float32x8 from an array. // //go:noescape -func LoadFloat32x8Array(y *[8]float32) Float32x8 +func LoadFloat32x8Array(x *[8]float32) Float32x8 // StoreArray stores a Float32x8 to an array. // @@ -436,7 +436,7 @@ // LoadFloat64x4Array loads a Float64x4 from an array. // //go:noescape -func LoadFloat64x4Array(y *[4]float64) Float64x4 +func LoadFloat64x4Array(x *[4]float64) Float64x4 // StoreArray stores a Float64x4 to an array. // @@ -474,7 +474,7 @@ // LoadInt8x32Array loads an Int8x32 from an array. // //go:noescape -func LoadInt8x32Array(y *[32]int8) Int8x32 +func LoadInt8x32Array(x *[32]int8) Int8x32 // StoreArray stores an Int8x32 to an array. // @@ -493,7 +493,7 @@ // LoadInt16x16Array loads an Int16x16 from an array. // //go:noescape -func LoadInt16x16Array(y *[16]int16) Int16x16 +func LoadInt16x16Array(x *[16]int16) Int16x16 // StoreArray stores an Int16x16 to an array. // @@ -512,7 +512,7 @@ // LoadInt32x8Array loads an Int32x8 from an array. // //go:noescape -func LoadInt32x8Array(y *[8]int32) Int32x8 +func LoadInt32x8Array(x *[8]int32) Int32x8 // StoreArray stores an Int32x8 to an array. // @@ -550,7 +550,7 @@ // LoadInt64x4Array loads an Int64x4 from an array. // //go:noescape -func LoadInt64x4Array(y *[4]int64) Int64x4 +func LoadInt64x4Array(x *[4]int64) Int64x4 // StoreArray stores an Int64x4 to an array. // @@ -588,7 +588,7 @@ // LoadUint8x32Array loads a Uint8x32 from an array. // //go:noescape -func LoadUint8x32Array(y *[32]uint8) Uint8x32 +func LoadUint8x32Array(x *[32]uint8) Uint8x32 // StoreArray stores a Uint8x32 to an array. // @@ -607,7 +607,7 @@ // LoadUint16x16Array loads a Uint16x16 from an array. // //go:noescape -func LoadUint16x16Array(y *[16]uint16) Uint16x16 +func LoadUint16x16Array(x *[16]uint16) Uint16x16 // StoreArray stores a Uint16x16 to an array. // @@ -626,7 +626,7 @@ // LoadUint32x8Array loads a Uint32x8 from an array. // //go:noescape -func LoadUint32x8Array(y *[8]uint32) Uint32x8 +func LoadUint32x8Array(x *[8]uint32) Uint32x8 // StoreArray stores a Uint32x8 to an array. // @@ -664,7 +664,7 @@ // LoadUint64x4Array loads a Uint64x4 from an array. // //go:noescape -func LoadUint64x4Array(y *[4]uint64) Uint64x4 +func LoadUint64x4Array(x *[4]uint64) Uint64x4 // StoreArray stores a Uint64x4 to an array. // @@ -699,7 +699,7 @@ // Mask8x32FromBits constructs a Mask8x32 from a bitmap value, where 1 means set for the indexed element, 0 means unset. // // Asm: KMOVB, CPU Feature: AVX512 -func Mask8x32FromBits(y uint32) Mask8x32 +func Mask8x32FromBits(x uint32) Mask8x32 // ToBits constructs a bitmap from a Mask8x32, where 1 means set for the indexed element, 0 means unset. // @@ -715,7 +715,7 @@ // Mask16x16FromBits constructs a Mask16x16 from a bitmap value, where 1 means set for the indexed element, 0 means unset. // // Asm: KMOVW, CPU Feature: AVX512 -func Mask16x16FromBits(y uint16) Mask16x16 +func Mask16x16FromBits(x uint16) Mask16x16 // ToBits constructs a bitmap from a Mask16x16, where 1 means set for the indexed element, 0 means unset. // @@ -731,7 +731,7 @@ // Mask32x8FromBits constructs a Mask32x8 from a bitmap value, where 1 means set for the indexed element, 0 means unset. // // Asm: KMOVD, CPU Feature: AVX512 -func Mask32x8FromBits(y uint8) Mask32x8 +func Mask32x8FromBits(x uint8) Mask32x8 // ToBits constructs a bitmap from a Mask32x8, where 1 means set for the indexed element, 0 means unset. // @@ -745,10 +745,10 @@ } // Mask64x4FromBits constructs a Mask64x4 from a bitmap value, where 1 means set for the indexed element, 0 means unset. -// Only the lower 4 bits of y are used. +// Only the lower 4 bits of x are used. // // Asm: KMOVQ, CPU Feature: AVX512 -func Mask64x4FromBits(y uint8) Mask64x4 +func Mask64x4FromBits(x uint8) Mask64x4 // ToBits constructs a bitmap from a Mask64x4, where 1 means set for the indexed element, 0 means unset. // Only the lower 4 bits of y are used. @@ -773,7 +773,7 @@ // LoadFloat32x16Array loads a Float32x16 from an array. // //go:noescape -func LoadFloat32x16Array(y *[16]float32) Float32x16 +func LoadFloat32x16Array(x *[16]float32) Float32x16 // StoreArray stores a Float32x16 to an array. // @@ -811,7 +811,7 @@ // LoadFloat64x8Array loads a Float64x8 from an array. // //go:noescape -func LoadFloat64x8Array(y *[8]float64) Float64x8 +func LoadFloat64x8Array(x *[8]float64) Float64x8 // StoreArray stores a Float64x8 to an array. // @@ -849,7 +849,7 @@ // LoadInt8x64Array loads an Int8x64 from an array. // //go:noescape -func LoadInt8x64Array(y *[64]int8) Int8x64 +func LoadInt8x64Array(x *[64]int8) Int8x64 // StoreArray stores an Int8x64 to an array. // @@ -887,7 +887,7 @@ // LoadInt16x32Array loads an Int16x32 from an array. // //go:noescape -func LoadInt16x32Array(y *[32]int16) Int16x32 +func LoadInt16x32Array(x *[32]int16) Int16x32 // StoreArray stores an Int16x32 to an array. // @@ -925,7 +925,7 @@ // LoadInt32x16Array loads an Int32x16 from an array. // //go:noescape -func LoadInt32x16Array(y *[16]int32) Int32x16 +func LoadInt32x16Array(x *[16]int32) Int32x16 // StoreArray stores an Int32x16 to an array. // @@ -963,7 +963,7 @@ // LoadInt64x8Array loads an Int64x8 from an array. // //go:noescape -func LoadInt64x8Array(y *[8]int64) Int64x8 +func LoadInt64x8Array(x *[8]int64) Int64x8 // StoreArray stores an Int64x8 to an array. // @@ -1001,7 +1001,7 @@ // LoadUint8x64Array loads a Uint8x64 from an array. // //go:noescape -func LoadUint8x64Array(y *[64]uint8) Uint8x64 +func LoadUint8x64Array(x *[64]uint8) Uint8x64 // StoreArray stores a Uint8x64 to an array. // @@ -1039,7 +1039,7 @@ // LoadUint16x32Array loads a Uint16x32 from an array. // //go:noescape -func LoadUint16x32Array(y *[32]uint16) Uint16x32 +func LoadUint16x32Array(x *[32]uint16) Uint16x32 // StoreArray stores a Uint16x32 to an array. // @@ -1077,7 +1077,7 @@ // LoadUint32x16Array loads a Uint32x16 from an array. // //go:noescape -func LoadUint32x16Array(y *[16]uint32) Uint32x16 +func LoadUint32x16Array(x *[16]uint32) Uint32x16 // StoreArray stores a Uint32x16 to an array. // @@ -1115,7 +1115,7 @@ // LoadUint64x8Array loads a Uint64x8 from an array. // //go:noescape -func LoadUint64x8Array(y *[8]uint64) Uint64x8 +func LoadUint64x8Array(x *[8]uint64) Uint64x8 // StoreArray stores a Uint64x8 to an array. // @@ -1150,7 +1150,7 @@ // Mask8x64FromBits constructs a Mask8x64 from a bitmap value, where 1 means set for the indexed element, 0 means unset. // // Asm: KMOVB, CPU Feature: AVX512 -func Mask8x64FromBits(y uint64) Mask8x64 +func Mask8x64FromBits(x uint64) Mask8x64 // ToBits constructs a bitmap from a Mask8x64, where 1 means set for the indexed element, 0 means unset. // @@ -1166,7 +1166,7 @@ // Mask16x32FromBits constructs a Mask16x32 from a bitmap value, where 1 means set for the indexed element, 0 means unset. // // Asm: KMOVW, CPU Feature: AVX512 -func Mask16x32FromBits(y uint32) Mask16x32 +func Mask16x32FromBits(x uint32) Mask16x32 // ToBits constructs a bitmap from a Mask16x32, where 1 means set for the indexed element, 0 means unset. // @@ -1182,7 +1182,7 @@ // Mask32x16FromBits constructs a Mask32x16 from a bitmap value, where 1 means set for the indexed element, 0 means unset. // // Asm: KMOVD, CPU Feature: AVX512 -func Mask32x16FromBits(y uint16) Mask32x16 +func Mask32x16FromBits(x uint16) Mask32x16 // ToBits constructs a bitmap from a Mask32x16, where 1 means set for the indexed element, 0 means unset. // @@ -1198,7 +1198,7 @@ // Mask64x8FromBits constructs a Mask64x8 from a bitmap value, where 1 means set for the indexed element, 0 means unset. // // Asm: KMOVQ, CPU Feature: AVX512 -func Mask64x8FromBits(y uint8) Mask64x8 +func Mask64x8FromBits(x uint8) Mask64x8 // ToBits constructs a bitmap from a Mask64x8, where 1 means set for the indexed element, 0 means unset. //
diff --git a/src/simd/archsimd/types_arm64.go b/src/simd/archsimd/types_arm64.go index 57c641f..cd35954 100644 --- a/src/simd/archsimd/types_arm64.go +++ b/src/simd/archsimd/types_arm64.go
@@ -21,7 +21,7 @@ // LoadFloat32x4Array loads a Float32x4 from an array. // //go:noescape -func LoadFloat32x4Array(y *[4]float32) Float32x4 +func LoadFloat32x4Array(x *[4]float32) Float32x4 // StoreArray stores a Float32x4 to an array. // @@ -40,7 +40,7 @@ // LoadFloat64x2Array loads a Float64x2 from an array. // //go:noescape -func LoadFloat64x2Array(y *[2]float64) Float64x2 +func LoadFloat64x2Array(x *[2]float64) Float64x2 // StoreArray stores a Float64x2 to an array. // @@ -59,7 +59,7 @@ // LoadInt8x16Array loads an Int8x16 from an array. // //go:noescape -func LoadInt8x16Array(y *[16]int8) Int8x16 +func LoadInt8x16Array(x *[16]int8) Int8x16 // StoreArray stores an Int8x16 to an array. // @@ -78,7 +78,7 @@ // LoadInt16x8Array loads an Int16x8 from an array. // //go:noescape -func LoadInt16x8Array(y *[8]int16) Int16x8 +func LoadInt16x8Array(x *[8]int16) Int16x8 // StoreArray stores an Int16x8 to an array. // @@ -97,7 +97,7 @@ // LoadInt32x4Array loads an Int32x4 from an array. // //go:noescape -func LoadInt32x4Array(y *[4]int32) Int32x4 +func LoadInt32x4Array(x *[4]int32) Int32x4 // StoreArray stores an Int32x4 to an array. // @@ -116,7 +116,7 @@ // LoadInt64x2Array loads an Int64x2 from an array. // //go:noescape -func LoadInt64x2Array(y *[2]int64) Int64x2 +func LoadInt64x2Array(x *[2]int64) Int64x2 // StoreArray stores an Int64x2 to an array. // @@ -135,7 +135,7 @@ // LoadUint8x16Array loads a Uint8x16 from an array. // //go:noescape -func LoadUint8x16Array(y *[16]uint8) Uint8x16 +func LoadUint8x16Array(x *[16]uint8) Uint8x16 // StoreArray stores a Uint8x16 to an array. // @@ -154,7 +154,7 @@ // LoadUint16x8Array loads a Uint16x8 from an array. // //go:noescape -func LoadUint16x8Array(y *[8]uint16) Uint16x8 +func LoadUint16x8Array(x *[8]uint16) Uint16x8 // StoreArray stores a Uint16x8 to an array. // @@ -173,7 +173,7 @@ // LoadUint32x4Array loads a Uint32x4 from an array. // //go:noescape -func LoadUint32x4Array(y *[4]uint32) Uint32x4 +func LoadUint32x4Array(x *[4]uint32) Uint32x4 // StoreArray stores a Uint32x4 to an array. // @@ -192,7 +192,7 @@ // LoadUint64x2Array loads a Uint64x2 from an array. // //go:noescape -func LoadUint64x2Array(y *[2]uint64) Uint64x2 +func LoadUint64x2Array(x *[2]uint64) Uint64x2 // StoreArray stores a Uint64x2 to an array. //
diff --git a/src/simd/archsimd/types_wasm.go b/src/simd/archsimd/types_wasm.go index 7e03d97..4332da8 100644 --- a/src/simd/archsimd/types_wasm.go +++ b/src/simd/archsimd/types_wasm.go
@@ -21,7 +21,7 @@ // LoadInt8x16Array loads an Int8x16 from a [16]int8. // //go:noescape -func LoadInt8x16Array(y *[16]int8) Int8x16 +func LoadInt8x16Array(x *[16]int8) Int8x16 // LoadInt8x16 loads an Int8x16 from a slice of at least 16 int8s. func LoadInt8x16(s []int8) Int8x16 { @@ -53,7 +53,7 @@ // LoadInt16x8Array loads an Int16x8 from a [8]int16. // //go:noescape -func LoadInt16x8Array(y *[8]int16) Int16x8 +func LoadInt16x8Array(x *[8]int16) Int16x8 // LoadInt16x8 loads an Int16x8 from a slice of at least 8 int16s. func LoadInt16x8(s []int16) Int16x8 { @@ -85,7 +85,7 @@ // LoadInt32x4Array loads an Int32x4 from a [4]int32. // //go:noescape -func LoadInt32x4Array(y *[4]int32) Int32x4 +func LoadInt32x4Array(x *[4]int32) Int32x4 // LoadInt32x4 loads an Int32x4 from a slice of at least 4 int32s. func LoadInt32x4(s []int32) Int32x4 { @@ -117,7 +117,7 @@ // LoadInt64x2Array loads an Int64x2 from a [2]int64. // //go:noescape -func LoadInt64x2Array(y *[2]int64) Int64x2 +func LoadInt64x2Array(x *[2]int64) Int64x2 // LoadInt64x2 loads an Int64x2 from a slice of at least 2 int64s. func LoadInt64x2(s []int64) Int64x2 { @@ -149,7 +149,7 @@ // LoadUint8x16Array loads a Uint8x16 from a [16]uint8. // //go:noescape -func LoadUint8x16Array(y *[16]uint8) Uint8x16 +func LoadUint8x16Array(x *[16]uint8) Uint8x16 // LoadUint8x16 loads a Uint8x16 from a slice of at least 16 uint8s. func LoadUint8x16(s []uint8) Uint8x16 { @@ -181,7 +181,7 @@ // LoadUint16x8Array loads a Uint16x8 from a [8]uint16. // //go:noescape -func LoadUint16x8Array(y *[8]uint16) Uint16x8 +func LoadUint16x8Array(x *[8]uint16) Uint16x8 // LoadUint16x8 loads a Uint16x8 from a slice of at least 8 uint16s. func LoadUint16x8(s []uint16) Uint16x8 { @@ -213,7 +213,7 @@ // LoadUint32x4Array loads a Uint32x4 from a [4]uint32. // //go:noescape -func LoadUint32x4Array(y *[4]uint32) Uint32x4 +func LoadUint32x4Array(x *[4]uint32) Uint32x4 // LoadUint32x4 loads a Uint32x4 from a slice of at least 4 uint32s. func LoadUint32x4(s []uint32) Uint32x4 { @@ -245,7 +245,7 @@ // LoadUint64x2Array loads a Uint64x2 from a [2]uint64. // //go:noescape -func LoadUint64x2Array(y *[2]uint64) Uint64x2 +func LoadUint64x2Array(x *[2]uint64) Uint64x2 // LoadUint64x2 loads a Uint64x2 from a slice of at least 2 uint64s. func LoadUint64x2(s []uint64) Uint64x2 { @@ -277,7 +277,7 @@ // LoadFloat32x4Array loads a Float32x4 from a [4]float32. // //go:noescape -func LoadFloat32x4Array(y *[4]float32) Float32x4 +func LoadFloat32x4Array(x *[4]float32) Float32x4 // LoadFloat32x4 loads a Float32x4 from a slice of at least 4 float32s. func LoadFloat32x4(s []float32) Float32x4 { @@ -309,7 +309,7 @@ // LoadFloat64x2Array loads a Float64x2 from a [2]float64. // //go:noescape -func LoadFloat64x2Array(y *[2]float64) Float64x2 +func LoadFloat64x2Array(x *[2]float64) Float64x2 // LoadFloat64x2 loads a Float64x2 from a slice of at least 2 float64s. func LoadFloat64x2(s []float64) Float64x2 {
diff --git a/src/simd/simd_stubs.go b/src/simd/simd_stubs.go index c61bcc4..278ddab 100644 --- a/src/simd/simd_stubs.go +++ b/src/simd/simd_stubs.go
@@ -1023,7 +1023,7 @@ func (x Mask8s) String() string // ToInt8s converts the mask to an Int8s vector. -func (x Mask8s) ToInt8s() (to Int8s) +func (x Mask8s) ToInt8s() (z Int8s) // TrailingZeros returns the number of low-order false (zero) elements in mask x. func (x Mask8s) TrailingZeros() int @@ -1047,7 +1047,7 @@ func (x Mask16s) String() string // ToInt16s converts the mask to an Int16s vector. -func (x Mask16s) ToInt16s() (to Int16s) +func (x Mask16s) ToInt16s() (z Int16s) // TrailingZeros returns the number of low-order false (zero) elements in mask x. func (x Mask16s) TrailingZeros() int @@ -1071,7 +1071,7 @@ func (x Mask32s) String() string // ToInt32s converts the mask to an Int32s vector. -func (x Mask32s) ToInt32s() (to Int32s) +func (x Mask32s) ToInt32s() (z Int32s) // TrailingZeros returns the number of low-order false (zero) elements in mask x. func (x Mask32s) TrailingZeros() int @@ -1095,7 +1095,7 @@ func (x Mask64s) String() string // ToInt64s converts the mask to an Int64s vector. -func (x Mask64s) ToInt64s() (to Int64s) +func (x Mask64s) ToInt64s() (z Int64s) // TrailingZeros returns the number of low-order false (zero) elements in mask x. func (x Mask64s) TrailingZeros() int