diff --git a/src/simd/internal/bridge/simd_emulated.go b/src/simd/internal/bridge/simd_emulated.go
index b6d0d72..440446d 100644
--- a/src/simd/internal/bridge/simd_emulated.go
+++ b/src/simd/internal/bridge/simd_emulated.go
@@ -12,7 +12,7 @@
"math/bits"
)
-// VectorSize returns the bit length of the emulated vector (fixed to 128).
+// VectorBitSize returns the bit length of the emulated vector (fixed to 128).
func VectorBitSize() int {
return 128
}
@@ -3210,65 +3210,65 @@
by16 = 0x0001000100010001
)
-// BroadcastInt8 fills the elements of a slice with its argument value.
+// BroadcastInt8s fills the elements of a slice with its argument value.
func BroadcastInt8s(x int8) Int8s {
v := (255 & uint64(x)) * by8
return Int8s{a: v, b: v}
}
-// BroadcastInt16 fills the elements of a slice with its argument value.
+// BroadcastInt16s fills the elements of a slice with its argument value.
func BroadcastInt16s(x int16) Int16s {
v := (65535 & uint64(x)) * by16
return Int16s{a: v, b: v}
}
-// BroadcastInt32 fills the elements of a slice with its argument value.
+// BroadcastInt32s fills the elements of a slice with its argument value.
func BroadcastInt32s(x int32) Int32s {
v := uint64(x) & 0xffffffff
v = v<<32 | v
return Int32s{a: v, b: v}
}
-// BroadcastInt64 fills the elements of a slice with its argument value.
+// BroadcastInt64s fills the elements of a slice with its argument value.
func BroadcastInt64s(x int64) Int64s {
v := uint64(x)
return Int64s{a: v, b: v}
}
-// BroadcastUint8 fills the elements of a slice with its argument value.
+// BroadcastUint8s fills the elements of a slice with its argument value.
func BroadcastUint8s(x uint8) Uint8s {
v := uint64(x) * by8
return Uint8s{a: v, b: v}
}
-// BroadcastUint16 fills the elements of a slice with its argument value.
+// BroadcastUint16s fills the elements of a slice with its argument value.
func BroadcastUint16s(x uint16) Uint16s {
v := uint64(x) * by16
return Uint16s{a: v, b: v}
}
-// BroadcastUint32 fills the elements of a slice with its argument value.
+// BroadcastUint32s fills the elements of a slice with its argument value.
func BroadcastUint32s(x uint32) Uint32s {
v := uint64(x)
v = v<<32 | v
return Uint32s{a: v, b: v}
}
-// BroadcastUint64 fills the elements of a slice with its argument value.
+// BroadcastUint64s fills the elements of a slice with its argument value.
func BroadcastUint64s(x uint64) Uint64s {
return Uint64s{a: x, b: x}
}
-// BroadcastFloat32 fills the elements of a slice with its argument value.
+// BroadcastFloat32s fills the elements of a slice with its argument value.
func BroadcastFloat32s(x float32) Float32s {
v := uint64(math.Float32bits(x))
v = v<<32 | v
return Float32s{a: v, b: v}
}
-// BroadcastFloat64 fills the elements of a slice with its argument value.
+// BroadcastFloat64s fills the elements of a slice with its argument value.
func BroadcastFloat64s(x float64) Float64s {
v := math.Float64bits(x)
return Float64s{a: v, b: v}
diff --git a/src/simd/ip_test.go b/src/simd/ip_test.go
index b88c499..cd16893 100644
--- a/src/simd/ip_test.go
+++ b/src/simd/ip_test.go
@@ -170,7 +170,7 @@
return z
}
-// BenchmarkIPnosimd1 is serial, just a vanilla inner product.
+// BenchmarkIPnosimd0 is serial, just a vanilla inner product.
func BenchmarkIPnosimd0(b *testing.B) {
x := make([]float32, ipBenchLen)
y := make([]float32, ipBenchLen)
diff --git a/src/simd/simd_emulated.go b/src/simd/simd_emulated.go
index 3737297..4bee6a1 100644
--- a/src/simd/simd_emulated.go
+++ b/src/simd/simd_emulated.go
@@ -12,7 +12,7 @@
"math/bits"
)
-// VectorSize returns the bit length of the emulated vector (fixed to 128).
+// VectorBitSize returns the bit length of the emulated vector (fixed to 128).
func VectorBitSize() int {
return 128
}
@@ -3210,65 +3210,65 @@
by16 = 0x0001000100010001
)
-// BroadcastInt8 fills the elements of a slice with its argument value.
+// BroadcastInt8s fills the elements of a slice with its argument value.
func BroadcastInt8s(x int8) Int8s {
v := (255 & uint64(x)) * by8
return Int8s{a: v, b: v}
}
-// BroadcastInt16 fills the elements of a slice with its argument value.
+// BroadcastInt16s fills the elements of a slice with its argument value.
func BroadcastInt16s(x int16) Int16s {
v := (65535 & uint64(x)) * by16
return Int16s{a: v, b: v}
}
-// BroadcastInt32 fills the elements of a slice with its argument value.
+// BroadcastInt32s fills the elements of a slice with its argument value.
func BroadcastInt32s(x int32) Int32s {
v := uint64(x) & 0xffffffff
v = v<<32 | v
return Int32s{a: v, b: v}
}
-// BroadcastInt64 fills the elements of a slice with its argument value.
+// BroadcastInt64s fills the elements of a slice with its argument value.
func BroadcastInt64s(x int64) Int64s {
v := uint64(x)
return Int64s{a: v, b: v}
}
-// BroadcastUint8 fills the elements of a slice with its argument value.
+// BroadcastUint8s fills the elements of a slice with its argument value.
func BroadcastUint8s(x uint8) Uint8s {
v := uint64(x) * by8
return Uint8s{a: v, b: v}
}
-// BroadcastUint16 fills the elements of a slice with its argument value.
+// BroadcastUint16s fills the elements of a slice with its argument value.
func BroadcastUint16s(x uint16) Uint16s {
v := uint64(x) * by16
return Uint16s{a: v, b: v}
}
-// BroadcastUint32 fills the elements of a slice with its argument value.
+// BroadcastUint32s fills the elements of a slice with its argument value.
func BroadcastUint32s(x uint32) Uint32s {
v := uint64(x)
v = v<<32 | v
return Uint32s{a: v, b: v}
}
-// BroadcastUint64 fills the elements of a slice with its argument value.
+// BroadcastUint64s fills the elements of a slice with its argument value.
func BroadcastUint64s(x uint64) Uint64s {
return Uint64s{a: x, b: x}
}
-// BroadcastFloat32 fills the elements of a slice with its argument value.
+// BroadcastFloat32s fills the elements of a slice with its argument value.
func BroadcastFloat32s(x float32) Float32s {
v := uint64(math.Float32bits(x))
v = v<<32 | v
return Float32s{a: v, b: v}
}
-// BroadcastFloat64 fills the elements of a slice with its argument value.
+// BroadcastFloat64s fills the elements of a slice with its argument value.
func BroadcastFloat64s(x float64) Float64s {
v := math.Float64bits(x)
return Float64s{a: v, b: v}
diff --git a/src/simd/simd_stubs.go b/src/simd/simd_stubs.go
index 5206290..25ed1a8 100644
--- a/src/simd/simd_stubs.go
+++ b/src/simd/simd_stubs.go
@@ -833,13 +833,13 @@
// Xor returns the bitwise XOR of x and y.
func (x Uint64s) Xor(y Uint64s) Uint64s
-// LoadFloat32 loads a slice of float32 into an Float32s vector.
+// LoadFloat32s loads a slice of float32 into an Float32s vector.
func LoadFloat32s([]float32) Float32s
-// LoadFloat32Part loads a partial slice of float32 into an Float32s vector, returning the vector and the number of elements loaded.
+// LoadFloat32sPart loads a partial slice of float32 into an Float32s vector, returning the vector and the number of elements loaded.
func LoadFloat32sPart([]float32) (Float32s, int)
-// BroadcastFloat32 fills the elements of a slice with its argument value.
+// BroadcastFloat32s fills the elements of a slice with its argument value.
func BroadcastFloat32s(float32) Float32s
// Abs returns the element-wise absolute value of x.
@@ -914,13 +914,13 @@
// ToBits reinterprets the vector bits as an unsigned integer vector.
func (x Float32s) ToBits() Uint32s
-// LoadFloat64 loads a slice of float64 into an Float64s vector.
+// LoadFloat64s loads a slice of float64 into an Float64s vector.
func LoadFloat64s([]float64) Float64s
-// LoadFloat64Part loads a partial slice of float64 into an Float64s vector, returning the vector and the number of elements loaded.
+// LoadFloat64sPart loads a partial slice of float64 into an Float64s vector, returning the vector and the number of elements loaded.
func LoadFloat64sPart([]float64) (Float64s, int)
-// BroadcastFloat64 fills the elements of a slice with its argument value.
+// BroadcastFloat64s fills the elements of a slice with its argument value.
func BroadcastFloat64s(float64) Float64s
// Abs returns the element-wise absolute value of x.