Source file src/simd/archsimd/slice_gen_arm64.go

     1  // Code generated by 'tmplgen'; DO NOT EDIT.
     2  
     3  //go:build goexperiment.simd
     4  
     5  package archsimd
     6  
     7  // LoadInt8x16 loads an Int8x16 from a slice of elements.
     8  // If s does not have at least 16 elements, it panics.
     9  func LoadInt8x16(s []int8) Int8x16 {
    10  	return LoadInt8x16Array((*[16]int8)(s))
    11  }
    12  
    13  // Store stores the elements of x into a slice.
    14  // If s does not have at least 16 elements, it panics.
    15  func (x Int8x16) Store(s []int8) {
    16  	x.StoreArray((*[16]int8)(s))
    17  }
    18  
    19  // LoadInt16x8 loads an Int16x8 from a slice of elements.
    20  // If s does not have at least 8 elements, it panics.
    21  func LoadInt16x8(s []int16) Int16x8 {
    22  	return LoadInt16x8Array((*[8]int16)(s))
    23  }
    24  
    25  // Store stores the elements of x into a slice.
    26  // If s does not have at least 8 elements, it panics.
    27  func (x Int16x8) Store(s []int16) {
    28  	x.StoreArray((*[8]int16)(s))
    29  }
    30  
    31  // LoadInt32x4 loads an Int32x4 from a slice of elements.
    32  // If s does not have at least 4 elements, it panics.
    33  func LoadInt32x4(s []int32) Int32x4 {
    34  	return LoadInt32x4Array((*[4]int32)(s))
    35  }
    36  
    37  // Store stores the elements of x into a slice.
    38  // If s does not have at least 4 elements, it panics.
    39  func (x Int32x4) Store(s []int32) {
    40  	x.StoreArray((*[4]int32)(s))
    41  }
    42  
    43  // LoadInt64x2 loads an Int64x2 from a slice of elements.
    44  // If s does not have at least 2 elements, it panics.
    45  func LoadInt64x2(s []int64) Int64x2 {
    46  	return LoadInt64x2Array((*[2]int64)(s))
    47  }
    48  
    49  // Store stores the elements of x into a slice.
    50  // If s does not have at least 2 elements, it panics.
    51  func (x Int64x2) Store(s []int64) {
    52  	x.StoreArray((*[2]int64)(s))
    53  }
    54  
    55  // LoadUint8x16 loads an Uint8x16 from a slice of elements.
    56  // If s does not have at least 16 elements, it panics.
    57  func LoadUint8x16(s []uint8) Uint8x16 {
    58  	return LoadUint8x16Array((*[16]uint8)(s))
    59  }
    60  
    61  // Store stores the elements of x into a slice.
    62  // If s does not have at least 16 elements, it panics.
    63  func (x Uint8x16) Store(s []uint8) {
    64  	x.StoreArray((*[16]uint8)(s))
    65  }
    66  
    67  // LoadUint16x8 loads an Uint16x8 from a slice of elements.
    68  // If s does not have at least 8 elements, it panics.
    69  func LoadUint16x8(s []uint16) Uint16x8 {
    70  	return LoadUint16x8Array((*[8]uint16)(s))
    71  }
    72  
    73  // Store stores the elements of x into a slice.
    74  // If s does not have at least 8 elements, it panics.
    75  func (x Uint16x8) Store(s []uint16) {
    76  	x.StoreArray((*[8]uint16)(s))
    77  }
    78  
    79  // LoadUint32x4 loads an Uint32x4 from a slice of elements.
    80  // If s does not have at least 4 elements, it panics.
    81  func LoadUint32x4(s []uint32) Uint32x4 {
    82  	return LoadUint32x4Array((*[4]uint32)(s))
    83  }
    84  
    85  // Store stores the elements of x into a slice.
    86  // If s does not have at least 4 elements, it panics.
    87  func (x Uint32x4) Store(s []uint32) {
    88  	x.StoreArray((*[4]uint32)(s))
    89  }
    90  
    91  // LoadUint64x2 loads an Uint64x2 from a slice of elements.
    92  // If s does not have at least 2 elements, it panics.
    93  func LoadUint64x2(s []uint64) Uint64x2 {
    94  	return LoadUint64x2Array((*[2]uint64)(s))
    95  }
    96  
    97  // Store stores the elements of x into a slice.
    98  // If s does not have at least 2 elements, it panics.
    99  func (x Uint64x2) Store(s []uint64) {
   100  	x.StoreArray((*[2]uint64)(s))
   101  }
   102  
   103  // LoadFloat32x4 loads a Float32x4 from a slice of elements.
   104  // If s does not have at least 4 elements, it panics.
   105  func LoadFloat32x4(s []float32) Float32x4 {
   106  	return LoadFloat32x4Array((*[4]float32)(s))
   107  }
   108  
   109  // Store stores the elements of x into a slice.
   110  // If s does not have at least 4 elements, it panics.
   111  func (x Float32x4) Store(s []float32) {
   112  	x.StoreArray((*[4]float32)(s))
   113  }
   114  
   115  // LoadFloat64x2 loads a Float64x2 from a slice of elements.
   116  // If s does not have at least 2 elements, it panics.
   117  func LoadFloat64x2(s []float64) Float64x2 {
   118  	return LoadFloat64x2Array((*[2]float64)(s))
   119  }
   120  
   121  // Store stores the elements of x into a slice.
   122  // If s does not have at least 2 elements, it panics.
   123  func (x Float64x2) Store(s []float64) {
   124  	x.StoreArray((*[2]float64)(s))
   125  }
   126  

View as plain text