Source file src/simd/archsimd/shuffles_gen_amd64.go

     1  // Code generated by 'tmplgen'; DO NOT EDIT.
     2  
     3  //go:build goexperiment.simdstable
     4  
     5  package archsimd
     6  
     7  // InterleaveLo interleaves the elements of the low halves of x and y.
     8  //
     9  //	z = {x[0], y[0], x[1], y[1]}
    10  //
    11  // Emulated, CPU Feature: AVX
    12  func (x Float32x4) InterleaveLo(y Float32x4) (z Float32x4) {
    13  	return x.ToBits().InterleaveLo(y.ToBits()).BitsToFloat32()
    14  }
    15  
    16  // InterleaveLo interleaves the elements of the low halves of x and y.
    17  //
    18  //	z = {x[0], y[0]}
    19  //
    20  // Emulated, CPU Feature: AVX
    21  func (x Float64x2) InterleaveLo(y Float64x2) (z Float64x2) {
    22  	return x.concatPermuteScalars(0, 2, y)
    23  }
    24  
    25  // InterleaveLo interleaves the elements of the low halves of x and y.
    26  //
    27  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 32
    28  //
    29  // Emulated, CPU Feature: AVX2
    30  func (x Int8x32) InterleaveLo(y Int8x32) (z Int8x32) {
    31  	lo := x.interleaveLoGrouped(y)
    32  	hi := x.interleaveHiGrouped(y)
    33  	return lo.concatPermute128Scalars(0, 2, hi)
    34  }
    35  
    36  // InterleaveLo interleaves the elements of the low halves of x and y.
    37  //
    38  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 32
    39  //
    40  // Emulated, CPU Feature: AVX2
    41  func (x Uint8x32) InterleaveLo(y Uint8x32) (z Uint8x32) {
    42  	lo := x.interleaveLoGrouped(y)
    43  	hi := x.interleaveHiGrouped(y)
    44  	return lo.concatPermute128Scalars(0, 2, hi)
    45  }
    46  
    47  // InterleaveLo interleaves the elements of the low halves of x and y.
    48  //
    49  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 16
    50  //
    51  // Emulated, CPU Feature: AVX2
    52  func (x Int16x16) InterleaveLo(y Int16x16) (z Int16x16) {
    53  	lo := x.interleaveLoGrouped(y)
    54  	hi := x.interleaveHiGrouped(y)
    55  	return lo.concatPermute128Scalars(0, 2, hi)
    56  }
    57  
    58  // InterleaveLo interleaves the elements of the low halves of x and y.
    59  //
    60  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 16
    61  //
    62  // Emulated, CPU Feature: AVX2
    63  func (x Uint16x16) InterleaveLo(y Uint16x16) (z Uint16x16) {
    64  	lo := x.interleaveLoGrouped(y)
    65  	hi := x.interleaveHiGrouped(y)
    66  	return lo.concatPermute128Scalars(0, 2, hi)
    67  }
    68  
    69  // InterleaveLo interleaves the elements of the low halves of x and y.
    70  //
    71  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 8
    72  //
    73  // Emulated, CPU Feature: AVX2
    74  func (x Int32x8) InterleaveLo(y Int32x8) (z Int32x8) {
    75  	lo := x.interleaveLoGrouped(y)
    76  	hi := x.interleaveHiGrouped(y)
    77  	return lo.concatPermute128Scalars(0, 2, hi)
    78  }
    79  
    80  // InterleaveLo interleaves the elements of the low halves of x and y.
    81  //
    82  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 8
    83  //
    84  // Emulated, CPU Feature: AVX2
    85  func (x Uint32x8) InterleaveLo(y Uint32x8) (z Uint32x8) {
    86  	lo := x.interleaveLoGrouped(y)
    87  	hi := x.interleaveHiGrouped(y)
    88  	return lo.concatPermute128Scalars(0, 2, hi)
    89  }
    90  
    91  // InterleaveLo interleaves the elements of the low halves of x and y.
    92  //
    93  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 8
    94  //
    95  // Emulated, CPU Feature: AVX2
    96  func (x Float32x8) InterleaveLo(y Float32x8) (z Float32x8) {
    97  	return x.ToBits().InterleaveLo(y.ToBits()).BitsToFloat32()
    98  }
    99  
   100  // InterleaveLo interleaves the elements of the low halves of x and y.
   101  //
   102  //	z = {x[0], y[0], x[1], y[1]}
   103  //
   104  // Emulated, CPU Feature: AVX2
   105  func (x Int64x4) InterleaveLo(y Int64x4) (z Int64x4) {
   106  	lo := x.interleaveLoGrouped(y)
   107  	hi := x.interleaveHiGrouped(y)
   108  	return lo.concatPermute128Scalars(0, 2, hi)
   109  }
   110  
   111  // InterleaveLo interleaves the elements of the low halves of x and y.
   112  //
   113  //	z = {x[0], y[0], x[1], y[1]}
   114  //
   115  // Emulated, CPU Feature: AVX2
   116  func (x Uint64x4) InterleaveLo(y Uint64x4) (z Uint64x4) {
   117  	lo := x.interleaveLoGrouped(y)
   118  	hi := x.interleaveHiGrouped(y)
   119  	return lo.concatPermute128Scalars(0, 2, hi)
   120  }
   121  
   122  // InterleaveLo interleaves the elements of the low halves of x and y.
   123  //
   124  //	z = {x[0], y[0], x[1], y[1]}
   125  //
   126  // Emulated, CPU Feature: AVX
   127  func (x Float64x4) InterleaveLo(y Float64x4) (z Float64x4) {
   128  	lo := x.concatPermuteScalarsGrouped(0, 2, y)
   129  	hi := x.concatPermuteScalarsGrouped(1, 3, y)
   130  	return lo.concatPermute128Scalars(0, 2, hi)
   131  }
   132  
   133  // InterleaveLo interleaves the elements of the low halves of x and y.
   134  //
   135  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 64
   136  //
   137  // Emulated, CPU Feature: AVX512
   138  func (x Int8x64) InterleaveLo(y Int8x64) (z Int8x64) {
   139  	return x.ToBits().InterleaveLo(y.ToBits()).BitsToInt8()
   140  }
   141  
   142  // InterleaveLo interleaves the elements of the low halves of x and y.
   143  //
   144  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 64
   145  //
   146  // Emulated, CPU Feature: AVX512
   147  func (x Uint8x64) InterleaveLo(y Uint8x64) (z Uint8x64) {
   148  	if X86.AVX512VBMI() {
   149  		return x.ConcatLookupMod(y, LoadUint8x64Array(&interleaveLo8x64Idx))
   150  	}
   151  	lo := x.interleaveLoGrouped(y).ReshapeToUint64s()
   152  	hi := x.interleaveHiGrouped(y).ReshapeToUint64s()
   153  	return lo.ConcatLookupMod(hi, LoadUint64x8Array(&interleaveLo128x4Idx)).ReshapeToUint8s()
   154  }
   155  
   156  // InterleaveLo interleaves the elements of the low halves of x and y.
   157  //
   158  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 32
   159  //
   160  // Emulated, CPU Feature: AVX512
   161  func (x Int16x32) InterleaveLo(y Int16x32) (z Int16x32) {
   162  	return x.ConcatLookupMod(y, LoadUint16x32Array(&interleaveLo16x32Idx))
   163  }
   164  
   165  // InterleaveLo interleaves the elements of the low halves of x and y.
   166  //
   167  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 32
   168  //
   169  // Emulated, CPU Feature: AVX512
   170  func (x Uint16x32) InterleaveLo(y Uint16x32) (z Uint16x32) {
   171  	return x.ConcatLookupMod(y, LoadUint16x32Array(&interleaveLo16x32Idx))
   172  }
   173  
   174  // InterleaveLo interleaves the elements of the low halves of x and y.
   175  //
   176  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 16
   177  //
   178  // Emulated, CPU Feature: AVX512
   179  func (x Int32x16) InterleaveLo(y Int32x16) (z Int32x16) {
   180  	return x.ConcatLookupMod(y, LoadUint32x16Array(&interleaveLo32x16Idx))
   181  }
   182  
   183  // InterleaveLo interleaves the elements of the low halves of x and y.
   184  //
   185  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 16
   186  //
   187  // Emulated, CPU Feature: AVX512
   188  func (x Uint32x16) InterleaveLo(y Uint32x16) (z Uint32x16) {
   189  	return x.ConcatLookupMod(y, LoadUint32x16Array(&interleaveLo32x16Idx))
   190  }
   191  
   192  // InterleaveLo interleaves the elements of the low halves of x and y.
   193  //
   194  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 16
   195  //
   196  // Emulated, CPU Feature: AVX512
   197  func (x Float32x16) InterleaveLo(y Float32x16) (z Float32x16) {
   198  	return x.ConcatLookupMod(y, LoadUint32x16Array(&interleaveLo32x16Idx))
   199  }
   200  
   201  // InterleaveLo interleaves the elements of the low halves of x and y.
   202  //
   203  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 8
   204  //
   205  // Emulated, CPU Feature: AVX512
   206  func (x Int64x8) InterleaveLo(y Int64x8) (z Int64x8) {
   207  	return x.ConcatLookupMod(y, LoadUint64x8Array(&interleaveLo64x8Idx))
   208  }
   209  
   210  // InterleaveLo interleaves the elements of the low halves of x and y.
   211  //
   212  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 8
   213  //
   214  // Emulated, CPU Feature: AVX512
   215  func (x Uint64x8) InterleaveLo(y Uint64x8) (z Uint64x8) {
   216  	return x.ConcatLookupMod(y, LoadUint64x8Array(&interleaveLo64x8Idx))
   217  }
   218  
   219  // InterleaveLo interleaves the elements of the low halves of x and y.
   220  //
   221  //	z = {x[0], y[0], x[1], y[1], ..., x[n/2-1], y[n/2-1]}, where n = 8
   222  //
   223  // Emulated, CPU Feature: AVX512
   224  func (x Float64x8) InterleaveLo(y Float64x8) (z Float64x8) {
   225  	return x.ConcatLookupMod(y, LoadUint64x8Array(&interleaveLo64x8Idx))
   226  }
   227  
   228  // InterleaveHi interleaves the elements of the high halves of x and y.
   229  //
   230  //	z = {x[2], y[2], x[3], y[3]}
   231  //
   232  // Emulated, CPU Feature: AVX
   233  func (x Float32x4) InterleaveHi(y Float32x4) (z Float32x4) {
   234  	return x.ToBits().InterleaveHi(y.ToBits()).BitsToFloat32()
   235  }
   236  
   237  // InterleaveHi interleaves the elements of the high halves of x and y.
   238  //
   239  //	z = {x[1], y[1]}
   240  //
   241  // Emulated, CPU Feature: AVX
   242  func (x Float64x2) InterleaveHi(y Float64x2) (z Float64x2) {
   243  	return x.concatPermuteScalars(1, 3, y)
   244  }
   245  
   246  // InterleaveHi interleaves the elements of the high halves of x and y.
   247  //
   248  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 32
   249  //
   250  // Emulated, CPU Feature: AVX2
   251  func (x Int8x32) InterleaveHi(y Int8x32) (z Int8x32) {
   252  	lo := x.interleaveLoGrouped(y)
   253  	hi := x.interleaveHiGrouped(y)
   254  	return lo.concatPermute128Scalars(1, 3, hi)
   255  }
   256  
   257  // InterleaveHi interleaves the elements of the high halves of x and y.
   258  //
   259  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 32
   260  //
   261  // Emulated, CPU Feature: AVX2
   262  func (x Uint8x32) InterleaveHi(y Uint8x32) (z Uint8x32) {
   263  	lo := x.interleaveLoGrouped(y)
   264  	hi := x.interleaveHiGrouped(y)
   265  	return lo.concatPermute128Scalars(1, 3, hi)
   266  }
   267  
   268  // InterleaveHi interleaves the elements of the high halves of x and y.
   269  //
   270  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 16
   271  //
   272  // Emulated, CPU Feature: AVX2
   273  func (x Int16x16) InterleaveHi(y Int16x16) (z Int16x16) {
   274  	lo := x.interleaveLoGrouped(y)
   275  	hi := x.interleaveHiGrouped(y)
   276  	return lo.concatPermute128Scalars(1, 3, hi)
   277  }
   278  
   279  // InterleaveHi interleaves the elements of the high halves of x and y.
   280  //
   281  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 16
   282  //
   283  // Emulated, CPU Feature: AVX2
   284  func (x Uint16x16) InterleaveHi(y Uint16x16) (z Uint16x16) {
   285  	lo := x.interleaveLoGrouped(y)
   286  	hi := x.interleaveHiGrouped(y)
   287  	return lo.concatPermute128Scalars(1, 3, hi)
   288  }
   289  
   290  // InterleaveHi interleaves the elements of the high halves of x and y.
   291  //
   292  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 8
   293  //
   294  // Emulated, CPU Feature: AVX2
   295  func (x Int32x8) InterleaveHi(y Int32x8) (z Int32x8) {
   296  	lo := x.interleaveLoGrouped(y)
   297  	hi := x.interleaveHiGrouped(y)
   298  	return lo.concatPermute128Scalars(1, 3, hi)
   299  }
   300  
   301  // InterleaveHi interleaves the elements of the high halves of x and y.
   302  //
   303  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 8
   304  //
   305  // Emulated, CPU Feature: AVX2
   306  func (x Uint32x8) InterleaveHi(y Uint32x8) (z Uint32x8) {
   307  	lo := x.interleaveLoGrouped(y)
   308  	hi := x.interleaveHiGrouped(y)
   309  	return lo.concatPermute128Scalars(1, 3, hi)
   310  }
   311  
   312  // InterleaveHi interleaves the elements of the high halves of x and y.
   313  //
   314  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 8
   315  //
   316  // Emulated, CPU Feature: AVX2
   317  func (x Float32x8) InterleaveHi(y Float32x8) (z Float32x8) {
   318  	return x.ToBits().InterleaveHi(y.ToBits()).BitsToFloat32()
   319  }
   320  
   321  // InterleaveHi interleaves the elements of the high halves of x and y.
   322  //
   323  //	z = {x[2], y[2], x[3], y[3]}
   324  //
   325  // Emulated, CPU Feature: AVX2
   326  func (x Int64x4) InterleaveHi(y Int64x4) (z Int64x4) {
   327  	lo := x.interleaveLoGrouped(y)
   328  	hi := x.interleaveHiGrouped(y)
   329  	return lo.concatPermute128Scalars(1, 3, hi)
   330  }
   331  
   332  // InterleaveHi interleaves the elements of the high halves of x and y.
   333  //
   334  //	z = {x[2], y[2], x[3], y[3]}
   335  //
   336  // Emulated, CPU Feature: AVX2
   337  func (x Uint64x4) InterleaveHi(y Uint64x4) (z Uint64x4) {
   338  	lo := x.interleaveLoGrouped(y)
   339  	hi := x.interleaveHiGrouped(y)
   340  	return lo.concatPermute128Scalars(1, 3, hi)
   341  }
   342  
   343  // InterleaveHi interleaves the elements of the high halves of x and y.
   344  //
   345  //	z = {x[2], y[2], x[3], y[3]}
   346  //
   347  // Emulated, CPU Feature: AVX
   348  func (x Float64x4) InterleaveHi(y Float64x4) (z Float64x4) {
   349  	lo := x.concatPermuteScalarsGrouped(0, 2, y)
   350  	hi := x.concatPermuteScalarsGrouped(1, 3, y)
   351  	return lo.concatPermute128Scalars(1, 3, hi)
   352  }
   353  
   354  // InterleaveHi interleaves the elements of the high halves of x and y.
   355  //
   356  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 64
   357  //
   358  // Emulated, CPU Feature: AVX512
   359  func (x Int8x64) InterleaveHi(y Int8x64) (z Int8x64) {
   360  	return x.ToBits().InterleaveHi(y.ToBits()).BitsToInt8()
   361  }
   362  
   363  // InterleaveHi interleaves the elements of the high halves of x and y.
   364  //
   365  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 64
   366  //
   367  // Emulated, CPU Feature: AVX512
   368  func (x Uint8x64) InterleaveHi(y Uint8x64) (z Uint8x64) {
   369  	if X86.AVX512VBMI() {
   370  		return x.ConcatLookupMod(y, LoadUint8x64Array(&interleaveHi8x64Idx))
   371  	}
   372  	lo := x.interleaveLoGrouped(y).ReshapeToUint64s()
   373  	hi := x.interleaveHiGrouped(y).ReshapeToUint64s()
   374  	return lo.ConcatLookupMod(hi, LoadUint64x8Array(&interleaveHi128x4Idx)).ReshapeToUint8s()
   375  }
   376  
   377  // InterleaveHi interleaves the elements of the high halves of x and y.
   378  //
   379  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 32
   380  //
   381  // Emulated, CPU Feature: AVX512
   382  func (x Int16x32) InterleaveHi(y Int16x32) (z Int16x32) {
   383  	return x.ConcatLookupMod(y, LoadUint16x32Array(&interleaveHi16x32Idx))
   384  }
   385  
   386  // InterleaveHi interleaves the elements of the high halves of x and y.
   387  //
   388  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 32
   389  //
   390  // Emulated, CPU Feature: AVX512
   391  func (x Uint16x32) InterleaveHi(y Uint16x32) (z Uint16x32) {
   392  	return x.ConcatLookupMod(y, LoadUint16x32Array(&interleaveHi16x32Idx))
   393  }
   394  
   395  // InterleaveHi interleaves the elements of the high halves of x and y.
   396  //
   397  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 16
   398  //
   399  // Emulated, CPU Feature: AVX512
   400  func (x Int32x16) InterleaveHi(y Int32x16) (z Int32x16) {
   401  	return x.ConcatLookupMod(y, LoadUint32x16Array(&interleaveHi32x16Idx))
   402  }
   403  
   404  // InterleaveHi interleaves the elements of the high halves of x and y.
   405  //
   406  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 16
   407  //
   408  // Emulated, CPU Feature: AVX512
   409  func (x Uint32x16) InterleaveHi(y Uint32x16) (z Uint32x16) {
   410  	return x.ConcatLookupMod(y, LoadUint32x16Array(&interleaveHi32x16Idx))
   411  }
   412  
   413  // InterleaveHi interleaves the elements of the high halves of x and y.
   414  //
   415  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 16
   416  //
   417  // Emulated, CPU Feature: AVX512
   418  func (x Float32x16) InterleaveHi(y Float32x16) (z Float32x16) {
   419  	return x.ConcatLookupMod(y, LoadUint32x16Array(&interleaveHi32x16Idx))
   420  }
   421  
   422  // InterleaveHi interleaves the elements of the high halves of x and y.
   423  //
   424  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 8
   425  //
   426  // Emulated, CPU Feature: AVX512
   427  func (x Int64x8) InterleaveHi(y Int64x8) (z Int64x8) {
   428  	return x.ConcatLookupMod(y, LoadUint64x8Array(&interleaveHi64x8Idx))
   429  }
   430  
   431  // InterleaveHi interleaves the elements of the high halves of x and y.
   432  //
   433  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 8
   434  //
   435  // Emulated, CPU Feature: AVX512
   436  func (x Uint64x8) InterleaveHi(y Uint64x8) (z Uint64x8) {
   437  	return x.ConcatLookupMod(y, LoadUint64x8Array(&interleaveHi64x8Idx))
   438  }
   439  
   440  // InterleaveHi interleaves the elements of the high halves of x and y.
   441  //
   442  //	z = {x[n/2], y[n/2], x[n/2+1], y[n/2+1], ..., x[n-1], y[n-1]}, where n = 8
   443  //
   444  // Emulated, CPU Feature: AVX512
   445  func (x Float64x8) InterleaveHi(y Float64x8) (z Float64x8) {
   446  	return x.ConcatLookupMod(y, LoadUint64x8Array(&interleaveHi64x8Idx))
   447  }
   448  
   449  // ConcatEven concatenates the even-indexed elements of x and y.
   450  //
   451  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 16
   452  //
   453  // Emulated, CPU Feature: AVX
   454  func (x Int8x16) ConcatEven(y Int8x16) (z Int8x16) {
   455  	return x.ToBits().ConcatEven(y.ToBits()).BitsToInt8()
   456  }
   457  
   458  // ConcatEven concatenates the even-indexed elements of x and y.
   459  //
   460  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 16
   461  //
   462  // Emulated, CPU Feature: AVX
   463  func (x Uint8x16) ConcatEven(y Uint8x16) (z Uint8x16) {
   464  	idx := LoadInt8x16Array(&trunc16To8Idx)
   465  	a := x.LookupModOrZero(idx).ReshapeToUint64s()
   466  	b := y.LookupModOrZero(idx).ReshapeToUint64s()
   467  	return a.InterleaveLo(b).ReshapeToUint8s()
   468  }
   469  
   470  // ConcatEven concatenates the even-indexed elements of x and y.
   471  //
   472  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 8
   473  //
   474  // Emulated, CPU Feature: AVX
   475  func (x Int16x8) ConcatEven(y Int16x8) (z Int16x8) {
   476  	return x.ToBits().ConcatEven(y.ToBits()).BitsToInt16()
   477  }
   478  
   479  // ConcatEven concatenates the even-indexed elements of x and y.
   480  //
   481  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 8
   482  //
   483  // Emulated, CPU Feature: AVX
   484  func (x Uint16x8) ConcatEven(y Uint16x8) (z Uint16x8) {
   485  	idx := LoadInt8x16Array(&trunc32To16Idx)
   486  	a := x.ReshapeToUint8s().LookupModOrZero(idx).ReshapeToUint64s()
   487  	b := y.ReshapeToUint8s().LookupModOrZero(idx).ReshapeToUint64s()
   488  	return a.InterleaveLo(b).ReshapeToUint16s()
   489  }
   490  
   491  // ConcatEven concatenates the even-indexed elements of x and y.
   492  //
   493  //	z = {x[0], x[2], y[0], y[2]}
   494  //
   495  // Emulated, CPU Feature: AVX
   496  func (x Int32x4) ConcatEven(y Int32x4) (z Int32x4) {
   497  	return x.concatPermuteScalars(0, 2, 4, 6, y)
   498  }
   499  
   500  // ConcatEven concatenates the even-indexed elements of x and y.
   501  //
   502  //	z = {x[0], x[2], y[0], y[2]}
   503  //
   504  // Emulated, CPU Feature: AVX
   505  func (x Uint32x4) ConcatEven(y Uint32x4) (z Uint32x4) {
   506  	return x.concatPermuteScalars(0, 2, 4, 6, y)
   507  }
   508  
   509  // ConcatEven concatenates the even-indexed elements of x and y.
   510  //
   511  //	z = {x[0], x[2], y[0], y[2]}
   512  //
   513  // Emulated, CPU Feature: AVX
   514  func (x Float32x4) ConcatEven(y Float32x4) (z Float32x4) {
   515  	return x.concatPermuteScalars(0, 2, 4, 6, y)
   516  }
   517  
   518  // ConcatEven concatenates the even-indexed elements of x and y.
   519  //
   520  //	z = {x[0], y[0]}
   521  //
   522  // Emulated, CPU Feature: AVX
   523  func (x Int64x2) ConcatEven(y Int64x2) (z Int64x2) {
   524  	return x.InterleaveLo(y)
   525  }
   526  
   527  // ConcatEven concatenates the even-indexed elements of x and y.
   528  //
   529  //	z = {x[0], y[0]}
   530  //
   531  // Emulated, CPU Feature: AVX
   532  func (x Uint64x2) ConcatEven(y Uint64x2) (z Uint64x2) {
   533  	return x.InterleaveLo(y)
   534  }
   535  
   536  // ConcatEven concatenates the even-indexed elements of x and y.
   537  //
   538  //	z = {x[0], y[0]}
   539  //
   540  // Emulated, CPU Feature: AVX
   541  func (x Float64x2) ConcatEven(y Float64x2) (z Float64x2) {
   542  	return x.concatPermuteScalars(0, 2, y)
   543  }
   544  
   545  // ConcatEven concatenates the even-indexed elements of x and y.
   546  //
   547  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 32
   548  //
   549  // Emulated, CPU Feature: AVX2
   550  func (x Int8x32) ConcatEven(y Int8x32) (z Int8x32) {
   551  	return x.ToBits().ConcatEven(y.ToBits()).BitsToInt8()
   552  }
   553  
   554  // ConcatEven concatenates the even-indexed elements of x and y.
   555  //
   556  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 32
   557  //
   558  // Emulated, CPU Feature: AVX2
   559  func (x Uint8x32) ConcatEven(y Uint8x32) (z Uint8x32) {
   560  	if X86.AVX512VBMI() {
   561  		return x.ConcatLookupMod(y, LoadUint8x32Array(&concatEven8x32Idx))
   562  	}
   563  	idx := LoadInt8x32Array(&trunc16To8GroupedIdx)
   564  	a := x.LookupModOrZeroGrouped(idx).ReshapeToUint64s()
   565  	b := y.LookupModOrZeroGrouped(idx).ReshapeToUint64s()
   566  	return gatherLo64(a.interleaveLoGrouped(b)).ReshapeToUint8s()
   567  }
   568  
   569  // ConcatEven concatenates the even-indexed elements of x and y.
   570  //
   571  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 16
   572  //
   573  // Emulated, CPU Feature: AVX2
   574  func (x Int16x16) ConcatEven(y Int16x16) (z Int16x16) {
   575  	return x.ToBits().ConcatEven(y.ToBits()).BitsToInt16()
   576  }
   577  
   578  // ConcatEven concatenates the even-indexed elements of x and y.
   579  //
   580  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 16
   581  //
   582  // Emulated, CPU Feature: AVX2
   583  func (x Uint16x16) ConcatEven(y Uint16x16) (z Uint16x16) {
   584  	if X86.AVX512() {
   585  		return x.ConcatLookupMod(y, LoadUint16x16Array(&concatEven16x16Idx))
   586  	}
   587  	idx := LoadInt8x32Array(&trunc32To16GroupedIdx)
   588  	a := x.ReshapeToUint8s().LookupModOrZeroGrouped(idx).ReshapeToUint64s()
   589  	b := y.ReshapeToUint8s().LookupModOrZeroGrouped(idx).ReshapeToUint64s()
   590  	return gatherLo64(a.interleaveLoGrouped(b)).ReshapeToUint16s()
   591  }
   592  
   593  // ConcatEven concatenates the even-indexed elements of x and y.
   594  //
   595  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 8
   596  //
   597  // Emulated, CPU Feature: AVX2
   598  func (x Int32x8) ConcatEven(y Int32x8) (z Int32x8) {
   599  	return x.ToBits().ConcatEven(y.ToBits()).BitsToInt32()
   600  }
   601  
   602  // ConcatEven concatenates the even-indexed elements of x and y.
   603  //
   604  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 8
   605  //
   606  // Emulated, CPU Feature: AVX2
   607  func (x Uint32x8) ConcatEven(y Uint32x8) (z Uint32x8) {
   608  	return x.concatPermuteScalarsGrouped(0, 2, 4, 6, y).LookupMod(LoadUint32x8Array(&gatherLo64Idx))
   609  }
   610  
   611  // ConcatEven concatenates the even-indexed elements of x and y.
   612  //
   613  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 8
   614  //
   615  // Emulated, CPU Feature: AVX
   616  func (x Float32x8) ConcatEven(y Float32x8) (z Float32x8) {
   617  	lo := x.concatPermute128Scalars(0, 2, y)
   618  	hi := x.concatPermute128Scalars(1, 3, y)
   619  	return lo.concatPermuteScalarsGrouped(0, 2, 4, 6, hi)
   620  }
   621  
   622  // ConcatEven concatenates the even-indexed elements of x and y.
   623  //
   624  //	z = {x[0], x[2], y[0], y[2]}
   625  //
   626  // Emulated, CPU Feature: AVX2
   627  func (x Int64x4) ConcatEven(y Int64x4) (z Int64x4) {
   628  	return x.ToBits().ConcatEven(y.ToBits()).BitsToInt64()
   629  }
   630  
   631  // ConcatEven concatenates the even-indexed elements of x and y.
   632  //
   633  //	z = {x[0], x[2], y[0], y[2]}
   634  //
   635  // Emulated, CPU Feature: AVX2
   636  func (x Uint64x4) ConcatEven(y Uint64x4) (z Uint64x4) {
   637  	return gatherLo64(x.interleaveLoGrouped(y))
   638  }
   639  
   640  // ConcatEven concatenates the even-indexed elements of x and y.
   641  //
   642  //	z = {x[0], x[2], y[0], y[2]}
   643  //
   644  // Emulated, CPU Feature: AVX
   645  func (x Float64x4) ConcatEven(y Float64x4) (z Float64x4) {
   646  	lo := x.concatPermute128Scalars(0, 2, y)
   647  	hi := x.concatPermute128Scalars(1, 3, y)
   648  	return lo.concatPermuteScalarsGrouped(0, 2, hi)
   649  }
   650  
   651  // ConcatEven concatenates the even-indexed elements of x and y.
   652  //
   653  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 64
   654  //
   655  // Emulated, CPU Feature: AVX512
   656  func (x Int8x64) ConcatEven(y Int8x64) (z Int8x64) {
   657  	return x.ToBits().ConcatEven(y.ToBits()).BitsToInt8()
   658  }
   659  
   660  // ConcatEven concatenates the even-indexed elements of x and y.
   661  //
   662  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 64
   663  //
   664  // Emulated, CPU Feature: AVX512
   665  func (x Uint8x64) ConcatEven(y Uint8x64) (z Uint8x64) {
   666  	if X86.AVX512VBMI() {
   667  		return x.ConcatLookupMod(y, LoadUint8x64Array(&concatEven8x64Idx))
   668  	}
   669  	idx := LoadInt8x64Array(&concatEven8x64GroupedIdx)
   670  	a := x.LookupModOrZeroGrouped(idx).ReshapeToUint64s()
   671  	b := y.LookupModOrZeroGrouped(idx).ReshapeToUint64s()
   672  	return a.ConcatLookupMod(b, LoadUint64x8Array(&concatEven64x8Idx)).ReshapeToUint8s()
   673  }
   674  
   675  // ConcatEven concatenates the even-indexed elements of x and y.
   676  //
   677  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 32
   678  //
   679  // Emulated, CPU Feature: AVX512
   680  func (x Int16x32) ConcatEven(y Int16x32) (z Int16x32) {
   681  	return x.ConcatLookupMod(y, LoadUint16x32Array(&concatEven16x32Idx))
   682  }
   683  
   684  // ConcatEven concatenates the even-indexed elements of x and y.
   685  //
   686  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 32
   687  //
   688  // Emulated, CPU Feature: AVX512
   689  func (x Uint16x32) ConcatEven(y Uint16x32) (z Uint16x32) {
   690  	return x.ConcatLookupMod(y, LoadUint16x32Array(&concatEven16x32Idx))
   691  }
   692  
   693  // ConcatEven concatenates the even-indexed elements of x and y.
   694  //
   695  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 16
   696  //
   697  // Emulated, CPU Feature: AVX512
   698  func (x Int32x16) ConcatEven(y Int32x16) (z Int32x16) {
   699  	return x.ConcatLookupMod(y, LoadUint32x16Array(&concatEven32x16Idx))
   700  }
   701  
   702  // ConcatEven concatenates the even-indexed elements of x and y.
   703  //
   704  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 16
   705  //
   706  // Emulated, CPU Feature: AVX512
   707  func (x Uint32x16) ConcatEven(y Uint32x16) (z Uint32x16) {
   708  	return x.ConcatLookupMod(y, LoadUint32x16Array(&concatEven32x16Idx))
   709  }
   710  
   711  // ConcatEven concatenates the even-indexed elements of x and y.
   712  //
   713  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 16
   714  //
   715  // Emulated, CPU Feature: AVX512
   716  func (x Float32x16) ConcatEven(y Float32x16) (z Float32x16) {
   717  	return x.ConcatLookupMod(y, LoadUint32x16Array(&concatEven32x16Idx))
   718  }
   719  
   720  // ConcatEven concatenates the even-indexed elements of x and y.
   721  //
   722  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 8
   723  //
   724  // Emulated, CPU Feature: AVX512
   725  func (x Int64x8) ConcatEven(y Int64x8) (z Int64x8) {
   726  	return x.ConcatLookupMod(y, LoadUint64x8Array(&concatEven64x8Idx))
   727  }
   728  
   729  // ConcatEven concatenates the even-indexed elements of x and y.
   730  //
   731  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 8
   732  //
   733  // Emulated, CPU Feature: AVX512
   734  func (x Uint64x8) ConcatEven(y Uint64x8) (z Uint64x8) {
   735  	return x.ConcatLookupMod(y, LoadUint64x8Array(&concatEven64x8Idx))
   736  }
   737  
   738  // ConcatEven concatenates the even-indexed elements of x and y.
   739  //
   740  //	z = {x[0], x[2], ..., x[n-2], y[0], y[2], ..., y[n-2]}, where n = 8
   741  //
   742  // Emulated, CPU Feature: AVX512
   743  func (x Float64x8) ConcatEven(y Float64x8) (z Float64x8) {
   744  	return x.ConcatLookupMod(y, LoadUint64x8Array(&concatEven64x8Idx))
   745  }
   746  
   747  // ConcatOdd concatenates the odd-indexed elements of x and y.
   748  //
   749  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 16
   750  //
   751  // Emulated, CPU Feature: AVX
   752  func (x Int8x16) ConcatOdd(y Int8x16) (z Int8x16) {
   753  	return x.ToBits().ConcatOdd(y.ToBits()).BitsToInt8()
   754  }
   755  
   756  // ConcatOdd concatenates the odd-indexed elements of x and y.
   757  //
   758  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 16
   759  //
   760  // Emulated, CPU Feature: AVX
   761  func (x Uint8x16) ConcatOdd(y Uint8x16) (z Uint8x16) {
   762  	xo := x.ReshapeToUint16s().BitsToInt16().ShiftAllRight(8)
   763  	yo := y.ReshapeToUint16s().BitsToInt16().ShiftAllRight(8)
   764  	return xo.concatSaturateToInt8(yo).ToBits()
   765  }
   766  
   767  // ConcatOdd concatenates the odd-indexed elements of x and y.
   768  //
   769  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 8
   770  //
   771  // Emulated, CPU Feature: AVX
   772  func (x Int16x8) ConcatOdd(y Int16x8) (z Int16x8) {
   773  	return x.ToBits().ConcatOdd(y.ToBits()).BitsToInt16()
   774  }
   775  
   776  // ConcatOdd concatenates the odd-indexed elements of x and y.
   777  //
   778  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 8
   779  //
   780  // Emulated, CPU Feature: AVX
   781  func (x Uint16x8) ConcatOdd(y Uint16x8) (z Uint16x8) {
   782  	xo := x.ReshapeToUint32s().BitsToInt32().ShiftAllRight(16)
   783  	yo := y.ReshapeToUint32s().BitsToInt32().ShiftAllRight(16)
   784  	return xo.ConcatSaturateToInt16(yo).ToBits()
   785  }
   786  
   787  // ConcatOdd concatenates the odd-indexed elements of x and y.
   788  //
   789  //	z = {x[1], x[3], y[1], y[3]}
   790  //
   791  // Emulated, CPU Feature: AVX
   792  func (x Int32x4) ConcatOdd(y Int32x4) (z Int32x4) {
   793  	return x.concatPermuteScalars(1, 3, 5, 7, y)
   794  }
   795  
   796  // ConcatOdd concatenates the odd-indexed elements of x and y.
   797  //
   798  //	z = {x[1], x[3], y[1], y[3]}
   799  //
   800  // Emulated, CPU Feature: AVX
   801  func (x Uint32x4) ConcatOdd(y Uint32x4) (z Uint32x4) {
   802  	return x.concatPermuteScalars(1, 3, 5, 7, y)
   803  }
   804  
   805  // ConcatOdd concatenates the odd-indexed elements of x and y.
   806  //
   807  //	z = {x[1], x[3], y[1], y[3]}
   808  //
   809  // Emulated, CPU Feature: AVX
   810  func (x Float32x4) ConcatOdd(y Float32x4) (z Float32x4) {
   811  	return x.concatPermuteScalars(1, 3, 5, 7, y)
   812  }
   813  
   814  // ConcatOdd concatenates the odd-indexed elements of x and y.
   815  //
   816  //	z = {x[1], y[1]}
   817  //
   818  // Emulated, CPU Feature: AVX
   819  func (x Int64x2) ConcatOdd(y Int64x2) (z Int64x2) {
   820  	return x.InterleaveHi(y)
   821  }
   822  
   823  // ConcatOdd concatenates the odd-indexed elements of x and y.
   824  //
   825  //	z = {x[1], y[1]}
   826  //
   827  // Emulated, CPU Feature: AVX
   828  func (x Uint64x2) ConcatOdd(y Uint64x2) (z Uint64x2) {
   829  	return x.InterleaveHi(y)
   830  }
   831  
   832  // ConcatOdd concatenates the odd-indexed elements of x and y.
   833  //
   834  //	z = {x[1], y[1]}
   835  //
   836  // Emulated, CPU Feature: AVX
   837  func (x Float64x2) ConcatOdd(y Float64x2) (z Float64x2) {
   838  	return x.concatPermuteScalars(1, 3, y)
   839  }
   840  
   841  // ConcatOdd concatenates the odd-indexed elements of x and y.
   842  //
   843  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 32
   844  //
   845  // Emulated, CPU Feature: AVX2
   846  func (x Int8x32) ConcatOdd(y Int8x32) (z Int8x32) {
   847  	return x.ToBits().ConcatOdd(y.ToBits()).BitsToInt8()
   848  }
   849  
   850  // ConcatOdd concatenates the odd-indexed elements of x and y.
   851  //
   852  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 32
   853  //
   854  // Emulated, CPU Feature: AVX2
   855  func (x Uint8x32) ConcatOdd(y Uint8x32) (z Uint8x32) {
   856  	if X86.AVX512VBMI() {
   857  		return x.ConcatLookupMod(y, LoadUint8x32Array(&concatOdd8x32Idx))
   858  	}
   859  	xo := x.ReshapeToUint16s().BitsToInt16().ShiftAllRight(8)
   860  	yo := y.ReshapeToUint16s().BitsToInt16().ShiftAllRight(8)
   861  	return gatherLo64(xo.concatSaturateToInt8Grouped(yo).ToBits().ReshapeToUint64s()).ReshapeToUint8s()
   862  }
   863  
   864  // ConcatOdd concatenates the odd-indexed elements of x and y.
   865  //
   866  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 16
   867  //
   868  // Emulated, CPU Feature: AVX2
   869  func (x Int16x16) ConcatOdd(y Int16x16) (z Int16x16) {
   870  	return x.ToBits().ConcatOdd(y.ToBits()).BitsToInt16()
   871  }
   872  
   873  // ConcatOdd concatenates the odd-indexed elements of x and y.
   874  //
   875  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 16
   876  //
   877  // Emulated, CPU Feature: AVX2
   878  func (x Uint16x16) ConcatOdd(y Uint16x16) (z Uint16x16) {
   879  	if X86.AVX512() {
   880  		return x.ConcatLookupMod(y, LoadUint16x16Array(&concatOdd16x16Idx))
   881  	}
   882  	xo := x.ReshapeToUint32s().BitsToInt32().ShiftAllRight(16)
   883  	yo := y.ReshapeToUint32s().BitsToInt32().ShiftAllRight(16)
   884  	return gatherLo64(xo.ConcatSaturateToInt16Grouped(yo).ToBits().ReshapeToUint64s()).ReshapeToUint16s()
   885  }
   886  
   887  // ConcatOdd concatenates the odd-indexed elements of x and y.
   888  //
   889  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 8
   890  //
   891  // Emulated, CPU Feature: AVX2
   892  func (x Int32x8) ConcatOdd(y Int32x8) (z Int32x8) {
   893  	return x.ToBits().ConcatOdd(y.ToBits()).BitsToInt32()
   894  }
   895  
   896  // ConcatOdd concatenates the odd-indexed elements of x and y.
   897  //
   898  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 8
   899  //
   900  // Emulated, CPU Feature: AVX2
   901  func (x Uint32x8) ConcatOdd(y Uint32x8) (z Uint32x8) {
   902  	return x.concatPermuteScalarsGrouped(1, 3, 5, 7, y).LookupMod(LoadUint32x8Array(&gatherLo64Idx))
   903  }
   904  
   905  // ConcatOdd concatenates the odd-indexed elements of x and y.
   906  //
   907  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 8
   908  //
   909  // Emulated, CPU Feature: AVX
   910  func (x Float32x8) ConcatOdd(y Float32x8) (z Float32x8) {
   911  	lo := x.concatPermute128Scalars(0, 2, y)
   912  	hi := x.concatPermute128Scalars(1, 3, y)
   913  	return lo.concatPermuteScalarsGrouped(1, 3, 5, 7, hi)
   914  }
   915  
   916  // ConcatOdd concatenates the odd-indexed elements of x and y.
   917  //
   918  //	z = {x[1], x[3], y[1], y[3]}
   919  //
   920  // Emulated, CPU Feature: AVX2
   921  func (x Int64x4) ConcatOdd(y Int64x4) (z Int64x4) {
   922  	return x.ToBits().ConcatOdd(y.ToBits()).BitsToInt64()
   923  }
   924  
   925  // ConcatOdd concatenates the odd-indexed elements of x and y.
   926  //
   927  //	z = {x[1], x[3], y[1], y[3]}
   928  //
   929  // Emulated, CPU Feature: AVX2
   930  func (x Uint64x4) ConcatOdd(y Uint64x4) (z Uint64x4) {
   931  	return gatherLo64(x.interleaveHiGrouped(y))
   932  }
   933  
   934  // ConcatOdd concatenates the odd-indexed elements of x and y.
   935  //
   936  //	z = {x[1], x[3], y[1], y[3]}
   937  //
   938  // Emulated, CPU Feature: AVX
   939  func (x Float64x4) ConcatOdd(y Float64x4) (z Float64x4) {
   940  	lo := x.concatPermute128Scalars(0, 2, y)
   941  	hi := x.concatPermute128Scalars(1, 3, y)
   942  	return lo.concatPermuteScalarsGrouped(1, 3, hi)
   943  }
   944  
   945  // ConcatOdd concatenates the odd-indexed elements of x and y.
   946  //
   947  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 64
   948  //
   949  // Emulated, CPU Feature: AVX512
   950  func (x Int8x64) ConcatOdd(y Int8x64) (z Int8x64) {
   951  	return x.ToBits().ConcatOdd(y.ToBits()).BitsToInt8()
   952  }
   953  
   954  // ConcatOdd concatenates the odd-indexed elements of x and y.
   955  //
   956  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 64
   957  //
   958  // Emulated, CPU Feature: AVX512
   959  func (x Uint8x64) ConcatOdd(y Uint8x64) (z Uint8x64) {
   960  	if X86.AVX512VBMI() {
   961  		return x.ConcatLookupMod(y, LoadUint8x64Array(&concatOdd8x64Idx))
   962  	}
   963  	idx := LoadInt8x64Array(&concatOdd8x64GroupedIdx)
   964  	a := x.LookupModOrZeroGrouped(idx).ReshapeToUint64s()
   965  	b := y.LookupModOrZeroGrouped(idx).ReshapeToUint64s()
   966  	return a.ConcatLookupMod(b, LoadUint64x8Array(&concatEven64x8Idx)).ReshapeToUint8s()
   967  }
   968  
   969  // ConcatOdd concatenates the odd-indexed elements of x and y.
   970  //
   971  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 32
   972  //
   973  // Emulated, CPU Feature: AVX512
   974  func (x Int16x32) ConcatOdd(y Int16x32) (z Int16x32) {
   975  	return x.ConcatLookupMod(y, LoadUint16x32Array(&concatOdd16x32Idx))
   976  }
   977  
   978  // ConcatOdd concatenates the odd-indexed elements of x and y.
   979  //
   980  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 32
   981  //
   982  // Emulated, CPU Feature: AVX512
   983  func (x Uint16x32) ConcatOdd(y Uint16x32) (z Uint16x32) {
   984  	return x.ConcatLookupMod(y, LoadUint16x32Array(&concatOdd16x32Idx))
   985  }
   986  
   987  // ConcatOdd concatenates the odd-indexed elements of x and y.
   988  //
   989  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 16
   990  //
   991  // Emulated, CPU Feature: AVX512
   992  func (x Int32x16) ConcatOdd(y Int32x16) (z Int32x16) {
   993  	return x.ConcatLookupMod(y, LoadUint32x16Array(&concatOdd32x16Idx))
   994  }
   995  
   996  // ConcatOdd concatenates the odd-indexed elements of x and y.
   997  //
   998  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 16
   999  //
  1000  // Emulated, CPU Feature: AVX512
  1001  func (x Uint32x16) ConcatOdd(y Uint32x16) (z Uint32x16) {
  1002  	return x.ConcatLookupMod(y, LoadUint32x16Array(&concatOdd32x16Idx))
  1003  }
  1004  
  1005  // ConcatOdd concatenates the odd-indexed elements of x and y.
  1006  //
  1007  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 16
  1008  //
  1009  // Emulated, CPU Feature: AVX512
  1010  func (x Float32x16) ConcatOdd(y Float32x16) (z Float32x16) {
  1011  	return x.ConcatLookupMod(y, LoadUint32x16Array(&concatOdd32x16Idx))
  1012  }
  1013  
  1014  // ConcatOdd concatenates the odd-indexed elements of x and y.
  1015  //
  1016  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 8
  1017  //
  1018  // Emulated, CPU Feature: AVX512
  1019  func (x Int64x8) ConcatOdd(y Int64x8) (z Int64x8) {
  1020  	return x.ConcatLookupMod(y, LoadUint64x8Array(&concatOdd64x8Idx))
  1021  }
  1022  
  1023  // ConcatOdd concatenates the odd-indexed elements of x and y.
  1024  //
  1025  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 8
  1026  //
  1027  // Emulated, CPU Feature: AVX512
  1028  func (x Uint64x8) ConcatOdd(y Uint64x8) (z Uint64x8) {
  1029  	return x.ConcatLookupMod(y, LoadUint64x8Array(&concatOdd64x8Idx))
  1030  }
  1031  
  1032  // ConcatOdd concatenates the odd-indexed elements of x and y.
  1033  //
  1034  //	z = {x[1], x[3], ..., x[n-1], y[1], y[3], ..., y[n-1]}, where n = 8
  1035  //
  1036  // Emulated, CPU Feature: AVX512
  1037  func (x Float64x8) ConcatOdd(y Float64x8) (z Float64x8) {
  1038  	return x.ConcatLookupMod(y, LoadUint64x8Array(&concatOdd64x8Idx))
  1039  }
  1040  

View as plain text