// Code generated by 'go run genfiles.go'; DO NOT EDIT.//go:build goexperiment.simdpackage archsimdimport// LoadInt8x16Slice loads an Int8x16 from a slice of at least 16 int8sfunc ( []int8) Int8x16 {returnLoadInt8x16((*[16]int8)())}// StoreSlice stores x into a slice of at least 16 int8sfunc ( Int8x16) ( []int8) { .Store((*[16]int8)())}// LoadInt16x8Slice loads an Int16x8 from a slice of at least 8 int16sfunc ( []int16) Int16x8 {returnLoadInt16x8((*[8]int16)())}// StoreSlice stores x into a slice of at least 8 int16sfunc ( Int16x8) ( []int16) { .Store((*[8]int16)())}// LoadInt32x4Slice loads an Int32x4 from a slice of at least 4 int32sfunc ( []int32) Int32x4 {returnLoadInt32x4((*[4]int32)())}// StoreSlice stores x into a slice of at least 4 int32sfunc ( Int32x4) ( []int32) { .Store((*[4]int32)())}// LoadInt64x2Slice loads an Int64x2 from a slice of at least 2 int64sfunc ( []int64) Int64x2 {returnLoadInt64x2((*[2]int64)())}// StoreSlice stores x into a slice of at least 2 int64sfunc ( Int64x2) ( []int64) { .Store((*[2]int64)())}// LoadUint8x16Slice loads an Uint8x16 from a slice of at least 16 uint8sfunc ( []uint8) Uint8x16 {returnLoadUint8x16((*[16]uint8)())}// StoreSlice stores x into a slice of at least 16 uint8sfunc ( Uint8x16) ( []uint8) { .Store((*[16]uint8)())}// LoadUint16x8Slice loads an Uint16x8 from a slice of at least 8 uint16sfunc ( []uint16) Uint16x8 {returnLoadUint16x8((*[8]uint16)())}// StoreSlice stores x into a slice of at least 8 uint16sfunc ( Uint16x8) ( []uint16) { .Store((*[8]uint16)())}// LoadUint32x4Slice loads an Uint32x4 from a slice of at least 4 uint32sfunc ( []uint32) Uint32x4 {returnLoadUint32x4((*[4]uint32)())}// StoreSlice stores x into a slice of at least 4 uint32sfunc ( Uint32x4) ( []uint32) { .Store((*[4]uint32)())}// LoadUint64x2Slice loads an Uint64x2 from a slice of at least 2 uint64sfunc ( []uint64) Uint64x2 {returnLoadUint64x2((*[2]uint64)())}// StoreSlice stores x into a slice of at least 2 uint64sfunc ( Uint64x2) ( []uint64) { .Store((*[2]uint64)())}// LoadFloat32x4Slice loads a Float32x4 from a slice of at least 4 float32sfunc ( []float32) Float32x4 {returnLoadFloat32x4((*[4]float32)())}// StoreSlice stores x into a slice of at least 4 float32sfunc ( Float32x4) ( []float32) { .Store((*[4]float32)())}// LoadFloat64x2Slice loads a Float64x2 from a slice of at least 2 float64sfunc ( []float64) Float64x2 {returnLoadFloat64x2((*[2]float64)())}// StoreSlice stores x into a slice of at least 2 float64sfunc ( Float64x2) ( []float64) { .Store((*[2]float64)())}// LoadInt8x32Slice loads an Int8x32 from a slice of at least 32 int8sfunc ( []int8) Int8x32 {returnLoadInt8x32((*[32]int8)())}// StoreSlice stores x into a slice of at least 32 int8sfunc ( Int8x32) ( []int8) { .Store((*[32]int8)())}// LoadInt16x16Slice loads an Int16x16 from a slice of at least 16 int16sfunc ( []int16) Int16x16 {returnLoadInt16x16((*[16]int16)())}// StoreSlice stores x into a slice of at least 16 int16sfunc ( Int16x16) ( []int16) { .Store((*[16]int16)())}// LoadInt32x8Slice loads an Int32x8 from a slice of at least 8 int32sfunc ( []int32) Int32x8 {returnLoadInt32x8((*[8]int32)())}// StoreSlice stores x into a slice of at least 8 int32sfunc ( Int32x8) ( []int32) { .Store((*[8]int32)())}// LoadInt64x4Slice loads an Int64x4 from a slice of at least 4 int64sfunc ( []int64) Int64x4 {returnLoadInt64x4((*[4]int64)())}// StoreSlice stores x into a slice of at least 4 int64sfunc ( Int64x4) ( []int64) { .Store((*[4]int64)())}// LoadUint8x32Slice loads an Uint8x32 from a slice of at least 32 uint8sfunc ( []uint8) Uint8x32 {returnLoadUint8x32((*[32]uint8)())}// StoreSlice stores x into a slice of at least 32 uint8sfunc ( Uint8x32) ( []uint8) { .Store((*[32]uint8)())}// LoadUint16x16Slice loads an Uint16x16 from a slice of at least 16 uint16sfunc ( []uint16) Uint16x16 {returnLoadUint16x16((*[16]uint16)())}// StoreSlice stores x into a slice of at least 16 uint16sfunc ( Uint16x16) ( []uint16) { .Store((*[16]uint16)())}// LoadUint32x8Slice loads an Uint32x8 from a slice of at least 8 uint32sfunc ( []uint32) Uint32x8 {returnLoadUint32x8((*[8]uint32)())}// StoreSlice stores x into a slice of at least 8 uint32sfunc ( Uint32x8) ( []uint32) { .Store((*[8]uint32)())}// LoadUint64x4Slice loads an Uint64x4 from a slice of at least 4 uint64sfunc ( []uint64) Uint64x4 {returnLoadUint64x4((*[4]uint64)())}// StoreSlice stores x into a slice of at least 4 uint64sfunc ( Uint64x4) ( []uint64) { .Store((*[4]uint64)())}// LoadFloat32x8Slice loads a Float32x8 from a slice of at least 8 float32sfunc ( []float32) Float32x8 {returnLoadFloat32x8((*[8]float32)())}// StoreSlice stores x into a slice of at least 8 float32sfunc ( Float32x8) ( []float32) { .Store((*[8]float32)())}// LoadFloat64x4Slice loads a Float64x4 from a slice of at least 4 float64sfunc ( []float64) Float64x4 {returnLoadFloat64x4((*[4]float64)())}// StoreSlice stores x into a slice of at least 4 float64sfunc ( Float64x4) ( []float64) { .Store((*[4]float64)())}// LoadInt8x64Slice loads an Int8x64 from a slice of at least 64 int8sfunc ( []int8) Int8x64 {returnLoadInt8x64((*[64]int8)())}// StoreSlice stores x into a slice of at least 64 int8sfunc ( Int8x64) ( []int8) { .Store((*[64]int8)())}// LoadInt16x32Slice loads an Int16x32 from a slice of at least 32 int16sfunc ( []int16) Int16x32 {returnLoadInt16x32((*[32]int16)())}// StoreSlice stores x into a slice of at least 32 int16sfunc ( Int16x32) ( []int16) { .Store((*[32]int16)())}// LoadInt32x16Slice loads an Int32x16 from a slice of at least 16 int32sfunc ( []int32) Int32x16 {returnLoadInt32x16((*[16]int32)())}// StoreSlice stores x into a slice of at least 16 int32sfunc ( Int32x16) ( []int32) { .Store((*[16]int32)())}// LoadInt64x8Slice loads an Int64x8 from a slice of at least 8 int64sfunc ( []int64) Int64x8 {returnLoadInt64x8((*[8]int64)())}// StoreSlice stores x into a slice of at least 8 int64sfunc ( Int64x8) ( []int64) { .Store((*[8]int64)())}// LoadUint8x64Slice loads an Uint8x64 from a slice of at least 64 uint8sfunc ( []uint8) Uint8x64 {returnLoadUint8x64((*[64]uint8)())}// StoreSlice stores x into a slice of at least 64 uint8sfunc ( Uint8x64) ( []uint8) { .Store((*[64]uint8)())}// LoadUint16x32Slice loads an Uint16x32 from a slice of at least 32 uint16sfunc ( []uint16) Uint16x32 {returnLoadUint16x32((*[32]uint16)())}// StoreSlice stores x into a slice of at least 32 uint16sfunc ( Uint16x32) ( []uint16) { .Store((*[32]uint16)())}// LoadUint32x16Slice loads an Uint32x16 from a slice of at least 16 uint32sfunc ( []uint32) Uint32x16 {returnLoadUint32x16((*[16]uint32)())}// StoreSlice stores x into a slice of at least 16 uint32sfunc ( Uint32x16) ( []uint32) { .Store((*[16]uint32)())}// LoadUint64x8Slice loads an Uint64x8 from a slice of at least 8 uint64sfunc ( []uint64) Uint64x8 {returnLoadUint64x8((*[8]uint64)())}// StoreSlice stores x into a slice of at least 8 uint64sfunc ( Uint64x8) ( []uint64) { .Store((*[8]uint64)())}// LoadFloat32x16Slice loads a Float32x16 from a slice of at least 16 float32sfunc ( []float32) Float32x16 {returnLoadFloat32x16((*[16]float32)())}// StoreSlice stores x into a slice of at least 16 float32sfunc ( Float32x16) ( []float32) { .Store((*[16]float32)())}// LoadFloat64x8Slice loads a Float64x8 from a slice of at least 8 float64sfunc ( []float64) Float64x8 {returnLoadFloat64x8((*[8]float64)())}// StoreSlice stores x into a slice of at least 8 float64sfunc ( Float64x8) ( []float64) { .Store((*[8]float64)())}// LoadInt8x64SlicePart loads a Int8x64 from the slice s.// If s has fewer than 64 elements, the remaining elements of the vector are filled with zeroes.// If s has 64 or more elements, the function is equivalent to LoadInt8x64Slice.func ( []int8) Int8x64 { := len()if >= 64 {returnLoadInt8x64Slice() }if == 0 {varInt8x64return } := Mask8x64FromBits(0xffffffffffffffff >> (64 - ))returnLoadMaskedInt8x64(paInt8x64(), )}// StoreSlicePart stores the 64 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 64 or more elements, the method is equivalent to x.StoreSlice.func ( Int8x64) ( []int8) { := len()if >= 64 { .StoreSlice()return }if == 0 {return } := Mask8x64FromBits(0xffffffffffffffff >> (64 - )) .StoreMasked(paInt8x64(), )}// LoadInt16x32SlicePart loads a Int16x32 from the slice s.// If s has fewer than 32 elements, the remaining elements of the vector are filled with zeroes.// If s has 32 or more elements, the function is equivalent to LoadInt16x32Slice.func ( []int16) Int16x32 { := len()if >= 32 {returnLoadInt16x32Slice() }if == 0 {varInt16x32return } := Mask16x32FromBits(0xffffffff >> (32 - ))returnLoadMaskedInt16x32(paInt16x32(), )}// StoreSlicePart stores the 32 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 32 or more elements, the method is equivalent to x.StoreSlice.func ( Int16x32) ( []int16) { := len()if >= 32 { .StoreSlice()return }if == 0 {return } := Mask16x32FromBits(0xffffffff >> (32 - )) .StoreMasked(paInt16x32(), )}// LoadInt32x16SlicePart loads a Int32x16 from the slice s.// If s has fewer than 16 elements, the remaining elements of the vector are filled with zeroes.// If s has 16 or more elements, the function is equivalent to LoadInt32x16Slice.func ( []int32) Int32x16 { := len()if >= 16 {returnLoadInt32x16Slice() }if == 0 {varInt32x16return } := Mask32x16FromBits(0xffff >> (16 - ))returnLoadMaskedInt32x16(paInt32x16(), )}// StoreSlicePart stores the 16 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 16 or more elements, the method is equivalent to x.StoreSlice.func ( Int32x16) ( []int32) { := len()if >= 16 { .StoreSlice()return }if == 0 {return } := Mask32x16FromBits(0xffff >> (16 - )) .StoreMasked(paInt32x16(), )}// LoadInt64x8SlicePart loads a Int64x8 from the slice s.// If s has fewer than 8 elements, the remaining elements of the vector are filled with zeroes.// If s has 8 or more elements, the function is equivalent to LoadInt64x8Slice.func ( []int64) Int64x8 { := len()if >= 8 {returnLoadInt64x8Slice() }if == 0 {varInt64x8return } := Mask64x8FromBits(0xff >> (8 - ))returnLoadMaskedInt64x8(paInt64x8(), )}// StoreSlicePart stores the 8 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 8 or more elements, the method is equivalent to x.StoreSlice.func ( Int64x8) ( []int64) { := len()if >= 8 { .StoreSlice()return }if == 0 {return } := Mask64x8FromBits(0xff >> (8 - )) .StoreMasked(paInt64x8(), )}// LoadUint8x64SlicePart loads a Uint8x64 from the slice s.// If s has fewer than 64 elements, the remaining elements of the vector are filled with zeroes.// If s has 64 or more elements, the function is equivalent to LoadUint8x64Slice.func ( []uint8) Uint8x64 { := len()if >= 64 {returnLoadUint8x64Slice() }if == 0 {varUint8x64return } := Mask8x64FromBits(0xffffffffffffffff >> (64 - ))returnLoadMaskedUint8x64(paUint8x64(), )}// StoreSlicePart stores the 64 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 64 or more elements, the method is equivalent to x.StoreSlice.func ( Uint8x64) ( []uint8) { := len()if >= 64 { .StoreSlice()return }if == 0 {return } := Mask8x64FromBits(0xffffffffffffffff >> (64 - )) .StoreMasked(paUint8x64(), )}// LoadUint16x32SlicePart loads a Uint16x32 from the slice s.// If s has fewer than 32 elements, the remaining elements of the vector are filled with zeroes.// If s has 32 or more elements, the function is equivalent to LoadUint16x32Slice.func ( []uint16) Uint16x32 { := len()if >= 32 {returnLoadUint16x32Slice() }if == 0 {varUint16x32return } := Mask16x32FromBits(0xffffffff >> (32 - ))returnLoadMaskedUint16x32(paUint16x32(), )}// StoreSlicePart stores the 32 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 32 or more elements, the method is equivalent to x.StoreSlice.func ( Uint16x32) ( []uint16) { := len()if >= 32 { .StoreSlice()return }if == 0 {return } := Mask16x32FromBits(0xffffffff >> (32 - )) .StoreMasked(paUint16x32(), )}// LoadUint32x16SlicePart loads a Uint32x16 from the slice s.// If s has fewer than 16 elements, the remaining elements of the vector are filled with zeroes.// If s has 16 or more elements, the function is equivalent to LoadUint32x16Slice.func ( []uint32) Uint32x16 { := len()if >= 16 {returnLoadUint32x16Slice() }if == 0 {varUint32x16return } := Mask32x16FromBits(0xffff >> (16 - ))returnLoadMaskedUint32x16(paUint32x16(), )}// StoreSlicePart stores the 16 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 16 or more elements, the method is equivalent to x.StoreSlice.func ( Uint32x16) ( []uint32) { := len()if >= 16 { .StoreSlice()return }if == 0 {return } := Mask32x16FromBits(0xffff >> (16 - )) .StoreMasked(paUint32x16(), )}// LoadUint64x8SlicePart loads a Uint64x8 from the slice s.// If s has fewer than 8 elements, the remaining elements of the vector are filled with zeroes.// If s has 8 or more elements, the function is equivalent to LoadUint64x8Slice.func ( []uint64) Uint64x8 { := len()if >= 8 {returnLoadUint64x8Slice() }if == 0 {varUint64x8return } := Mask64x8FromBits(0xff >> (8 - ))returnLoadMaskedUint64x8(paUint64x8(), )}// StoreSlicePart stores the 8 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 8 or more elements, the method is equivalent to x.StoreSlice.func ( Uint64x8) ( []uint64) { := len()if >= 8 { .StoreSlice()return }if == 0 {return } := Mask64x8FromBits(0xff >> (8 - )) .StoreMasked(paUint64x8(), )}// LoadFloat32x16SlicePart loads a Float32x16 from the slice s.// If s has fewer than 16 elements, the remaining elements of the vector are filled with zeroes.// If s has 16 or more elements, the function is equivalent to LoadFloat32x16Slice.func ( []float32) Float32x16 { := len()if >= 16 {returnLoadFloat32x16Slice() }if == 0 {varFloat32x16return } := Mask32x16FromBits(0xffff >> (16 - ))returnLoadMaskedFloat32x16(paFloat32x16(), )}// StoreSlicePart stores the 16 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 16 or more elements, the method is equivalent to x.StoreSlice.func ( Float32x16) ( []float32) { := len()if >= 16 { .StoreSlice()return }if == 0 {return } := Mask32x16FromBits(0xffff >> (16 - )) .StoreMasked(paFloat32x16(), )}// LoadFloat64x8SlicePart loads a Float64x8 from the slice s.// If s has fewer than 8 elements, the remaining elements of the vector are filled with zeroes.// If s has 8 or more elements, the function is equivalent to LoadFloat64x8Slice.func ( []float64) Float64x8 { := len()if >= 8 {returnLoadFloat64x8Slice() }if == 0 {varFloat64x8return } := Mask64x8FromBits(0xff >> (8 - ))returnLoadMaskedFloat64x8(paFloat64x8(), )}// StoreSlicePart stores the 8 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 8 or more elements, the method is equivalent to x.StoreSlice.func ( Float64x8) ( []float64) { := len()if >= 8 { .StoreSlice()return }if == 0 {return } := Mask64x8FromBits(0xff >> (8 - )) .StoreMasked(paFloat64x8(), )}// LoadInt32x4SlicePart loads a Int32x4 from the slice s.// If s has fewer than 4 elements, the remaining elements of the vector are filled with zeroes.// If s has 4 or more elements, the function is equivalent to LoadInt32x4Slice.func ( []int32) Int32x4 { := len()if >= 4 {returnLoadInt32x4Slice() }if == 0 {varInt32x4return } := vecMask32[len(vecMask32)/2-:]returnLoadMaskedInt32x4(paInt32x4(), LoadInt32x4Slice().asMask())}// StoreSlicePart stores the 4 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 4 or more elements, the method is equivalent to x.StoreSlice.func ( Int32x4) ( []int32) { := len()if >= 4 { .StoreSlice()return }if == 0 {return } := vecMask32[len(vecMask32)/2-:] .StoreMasked(paInt32x4(), LoadInt32x4Slice().asMask())}// LoadInt64x2SlicePart loads a Int64x2 from the slice s.// If s has fewer than 2 elements, the remaining elements of the vector are filled with zeroes.// If s has 2 or more elements, the function is equivalent to LoadInt64x2Slice.func ( []int64) Int64x2 { := len()if >= 2 {returnLoadInt64x2Slice() }if == 0 {varInt64x2return } := vecMask64[len(vecMask64)/2-:]returnLoadMaskedInt64x2(paInt64x2(), LoadInt64x2Slice().asMask())}// StoreSlicePart stores the 2 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 2 or more elements, the method is equivalent to x.StoreSlice.func ( Int64x2) ( []int64) { := len()if >= 2 { .StoreSlice()return }if == 0 {return } := vecMask64[len(vecMask64)/2-:] .StoreMasked(paInt64x2(), LoadInt64x2Slice().asMask())}// LoadUint32x4SlicePart loads a Uint32x4 from the slice s.// If s has fewer than 4 elements, the remaining elements of the vector are filled with zeroes.// If s has 4 or more elements, the function is equivalent to LoadUint32x4Slice.func ( []uint32) Uint32x4 { := len()if >= 4 {returnLoadUint32x4Slice() }if == 0 {varUint32x4return } := vecMask32[len(vecMask32)/2-:]returnLoadMaskedUint32x4(paUint32x4(), LoadInt32x4Slice().asMask())}// StoreSlicePart stores the 4 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 4 or more elements, the method is equivalent to x.StoreSlice.func ( Uint32x4) ( []uint32) { := len()if >= 4 { .StoreSlice()return }if == 0 {return } := vecMask32[len(vecMask32)/2-:] .StoreMasked(paUint32x4(), LoadInt32x4Slice().asMask())}// LoadUint64x2SlicePart loads a Uint64x2 from the slice s.// If s has fewer than 2 elements, the remaining elements of the vector are filled with zeroes.// If s has 2 or more elements, the function is equivalent to LoadUint64x2Slice.func ( []uint64) Uint64x2 { := len()if >= 2 {returnLoadUint64x2Slice() }if == 0 {varUint64x2return } := vecMask64[len(vecMask64)/2-:]returnLoadMaskedUint64x2(paUint64x2(), LoadInt64x2Slice().asMask())}// StoreSlicePart stores the 2 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 2 or more elements, the method is equivalent to x.StoreSlice.func ( Uint64x2) ( []uint64) { := len()if >= 2 { .StoreSlice()return }if == 0 {return } := vecMask64[len(vecMask64)/2-:] .StoreMasked(paUint64x2(), LoadInt64x2Slice().asMask())}// LoadFloat32x4SlicePart loads a Float32x4 from the slice s.// If s has fewer than 4 elements, the remaining elements of the vector are filled with zeroes.// If s has 4 or more elements, the function is equivalent to LoadFloat32x4Slice.func ( []float32) Float32x4 { := len()if >= 4 {returnLoadFloat32x4Slice() }if == 0 {varFloat32x4return } := vecMask32[len(vecMask32)/2-:]returnLoadMaskedFloat32x4(paFloat32x4(), LoadInt32x4Slice().asMask())}// StoreSlicePart stores the 4 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 4 or more elements, the method is equivalent to x.StoreSlice.func ( Float32x4) ( []float32) { := len()if >= 4 { .StoreSlice()return }if == 0 {return } := vecMask32[len(vecMask32)/2-:] .StoreMasked(paFloat32x4(), LoadInt32x4Slice().asMask())}// LoadFloat64x2SlicePart loads a Float64x2 from the slice s.// If s has fewer than 2 elements, the remaining elements of the vector are filled with zeroes.// If s has 2 or more elements, the function is equivalent to LoadFloat64x2Slice.func ( []float64) Float64x2 { := len()if >= 2 {returnLoadFloat64x2Slice() }if == 0 {varFloat64x2return } := vecMask64[len(vecMask64)/2-:]returnLoadMaskedFloat64x2(paFloat64x2(), LoadInt64x2Slice().asMask())}// StoreSlicePart stores the 2 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 2 or more elements, the method is equivalent to x.StoreSlice.func ( Float64x2) ( []float64) { := len()if >= 2 { .StoreSlice()return }if == 0 {return } := vecMask64[len(vecMask64)/2-:] .StoreMasked(paFloat64x2(), LoadInt64x2Slice().asMask())}// LoadInt32x8SlicePart loads a Int32x8 from the slice s.// If s has fewer than 8 elements, the remaining elements of the vector are filled with zeroes.// If s has 8 or more elements, the function is equivalent to LoadInt32x8Slice.func ( []int32) Int32x8 { := len()if >= 8 {returnLoadInt32x8Slice() }if == 0 {varInt32x8return } := vecMask32[len(vecMask32)/2-:]returnLoadMaskedInt32x8(paInt32x8(), LoadInt32x8Slice().asMask())}// StoreSlicePart stores the 8 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 8 or more elements, the method is equivalent to x.StoreSlice.func ( Int32x8) ( []int32) { := len()if >= 8 { .StoreSlice()return }if == 0 {return } := vecMask32[len(vecMask32)/2-:] .StoreMasked(paInt32x8(), LoadInt32x8Slice().asMask())}// LoadInt64x4SlicePart loads a Int64x4 from the slice s.// If s has fewer than 4 elements, the remaining elements of the vector are filled with zeroes.// If s has 4 or more elements, the function is equivalent to LoadInt64x4Slice.func ( []int64) Int64x4 { := len()if >= 4 {returnLoadInt64x4Slice() }if == 0 {varInt64x4return } := vecMask64[len(vecMask64)/2-:]returnLoadMaskedInt64x4(paInt64x4(), LoadInt64x4Slice().asMask())}// StoreSlicePart stores the 4 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 4 or more elements, the method is equivalent to x.StoreSlice.func ( Int64x4) ( []int64) { := len()if >= 4 { .StoreSlice()return }if == 0 {return } := vecMask64[len(vecMask64)/2-:] .StoreMasked(paInt64x4(), LoadInt64x4Slice().asMask())}// LoadUint32x8SlicePart loads a Uint32x8 from the slice s.// If s has fewer than 8 elements, the remaining elements of the vector are filled with zeroes.// If s has 8 or more elements, the function is equivalent to LoadUint32x8Slice.func ( []uint32) Uint32x8 { := len()if >= 8 {returnLoadUint32x8Slice() }if == 0 {varUint32x8return } := vecMask32[len(vecMask32)/2-:]returnLoadMaskedUint32x8(paUint32x8(), LoadInt32x8Slice().asMask())}// StoreSlicePart stores the 8 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 8 or more elements, the method is equivalent to x.StoreSlice.func ( Uint32x8) ( []uint32) { := len()if >= 8 { .StoreSlice()return }if == 0 {return } := vecMask32[len(vecMask32)/2-:] .StoreMasked(paUint32x8(), LoadInt32x8Slice().asMask())}// LoadUint64x4SlicePart loads a Uint64x4 from the slice s.// If s has fewer than 4 elements, the remaining elements of the vector are filled with zeroes.// If s has 4 or more elements, the function is equivalent to LoadUint64x4Slice.func ( []uint64) Uint64x4 { := len()if >= 4 {returnLoadUint64x4Slice() }if == 0 {varUint64x4return } := vecMask64[len(vecMask64)/2-:]returnLoadMaskedUint64x4(paUint64x4(), LoadInt64x4Slice().asMask())}// StoreSlicePart stores the 4 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 4 or more elements, the method is equivalent to x.StoreSlice.func ( Uint64x4) ( []uint64) { := len()if >= 4 { .StoreSlice()return }if == 0 {return } := vecMask64[len(vecMask64)/2-:] .StoreMasked(paUint64x4(), LoadInt64x4Slice().asMask())}// LoadFloat32x8SlicePart loads a Float32x8 from the slice s.// If s has fewer than 8 elements, the remaining elements of the vector are filled with zeroes.// If s has 8 or more elements, the function is equivalent to LoadFloat32x8Slice.func ( []float32) Float32x8 { := len()if >= 8 {returnLoadFloat32x8Slice() }if == 0 {varFloat32x8return } := vecMask32[len(vecMask32)/2-:]returnLoadMaskedFloat32x8(paFloat32x8(), LoadInt32x8Slice().asMask())}// StoreSlicePart stores the 8 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 8 or more elements, the method is equivalent to x.StoreSlice.func ( Float32x8) ( []float32) { := len()if >= 8 { .StoreSlice()return }if == 0 {return } := vecMask32[len(vecMask32)/2-:] .StoreMasked(paFloat32x8(), LoadInt32x8Slice().asMask())}// LoadFloat64x4SlicePart loads a Float64x4 from the slice s.// If s has fewer than 4 elements, the remaining elements of the vector are filled with zeroes.// If s has 4 or more elements, the function is equivalent to LoadFloat64x4Slice.func ( []float64) Float64x4 { := len()if >= 4 {returnLoadFloat64x4Slice() }if == 0 {varFloat64x4return } := vecMask64[len(vecMask64)/2-:]returnLoadMaskedFloat64x4(paFloat64x4(), LoadInt64x4Slice().asMask())}// StoreSlicePart stores the 4 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 4 or more elements, the method is equivalent to x.StoreSlice.func ( Float64x4) ( []float64) { := len()if >= 4 { .StoreSlice()return }if == 0 {return } := vecMask64[len(vecMask64)/2-:] .StoreMasked(paFloat64x4(), LoadInt64x4Slice().asMask())}// LoadUint8x16SlicePart loads a Uint8x16 from the slice s.// If s has fewer than 16 elements, the remaining elements of the vector are filled with zeroes.// If s has 16 or more elements, the function is equivalent to LoadUint8x16Slice.func ( []uint8) Uint8x16 {iflen() == 0 {varUint8x16return } := unsafe.Slice((*int8)(unsafe.Pointer(&[0])), len())returnLoadInt8x16SlicePart().AsUint8x16()}// StoreSlicePart stores the 16 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 16 or more elements, the method is equivalent to x.StoreSlice.func ( Uint8x16) ( []uint8) {iflen() == 0 {return } := unsafe.Slice((*int8)(unsafe.Pointer(&[0])), len()) .AsInt8x16().StoreSlicePart()}// LoadUint16x8SlicePart loads a Uint16x8 from the slice s.// If s has fewer than 8 elements, the remaining elements of the vector are filled with zeroes.// If s has 8 or more elements, the function is equivalent to LoadUint16x8Slice.func ( []uint16) Uint16x8 {iflen() == 0 {varUint16x8return } := unsafe.Slice((*int16)(unsafe.Pointer(&[0])), len())returnLoadInt16x8SlicePart().AsUint16x8()}// StoreSlicePart stores the 8 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 8 or more elements, the method is equivalent to x.StoreSlice.func ( Uint16x8) ( []uint16) {iflen() == 0 {return } := unsafe.Slice((*int16)(unsafe.Pointer(&[0])), len()) .AsInt16x8().StoreSlicePart()}// LoadUint8x32SlicePart loads a Uint8x32 from the slice s.// If s has fewer than 32 elements, the remaining elements of the vector are filled with zeroes.// If s has 32 or more elements, the function is equivalent to LoadUint8x32Slice.func ( []uint8) Uint8x32 {iflen() == 0 {varUint8x32return } := unsafe.Slice((*int8)(unsafe.Pointer(&[0])), len())returnLoadInt8x32SlicePart().AsUint8x32()}// StoreSlicePart stores the 32 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 32 or more elements, the method is equivalent to x.StoreSlice.func ( Uint8x32) ( []uint8) {iflen() == 0 {return } := unsafe.Slice((*int8)(unsafe.Pointer(&[0])), len()) .AsInt8x32().StoreSlicePart()}// LoadUint16x16SlicePart loads a Uint16x16 from the slice s.// If s has fewer than 16 elements, the remaining elements of the vector are filled with zeroes.// If s has 16 or more elements, the function is equivalent to LoadUint16x16Slice.func ( []uint16) Uint16x16 {iflen() == 0 {varUint16x16return } := unsafe.Slice((*int16)(unsafe.Pointer(&[0])), len())returnLoadInt16x16SlicePart().AsUint16x16()}// StoreSlicePart stores the 16 elements of x into the slice s.// It stores as many elements as will fit in s.// If s has 16 or more elements, the method is equivalent to x.StoreSlice.func ( Uint16x16) ( []uint16) {iflen() == 0 {return } := unsafe.Slice((*int16)(unsafe.Pointer(&[0])), len()) .AsInt16x16().StoreSlicePart()}
The pages are generated with Goldsv0.8.3-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.