github.com/apache/arrow/go/v14@v14.0.2/internal/utils/transpose_ints.go (about)

     1  // Code generated by transpose_ints.go.tmpl. DO NOT EDIT.
     2  
     3  // Licensed to the Apache Software Foundation (ASF) under one
     4  // or more contributor license agreements.  See the NOTICE file
     5  // distributed with this work for additional information
     6  // regarding copyright ownership.  The ASF licenses this file
     7  // to you under the Apache License, Version 2.0 (the
     8  // "License"); you may not use this file except in compliance
     9  // with the License.  You may obtain a copy of the License at
    10  //
    11  // http://www.apache.org/licenses/LICENSE-2.0
    12  //
    13  // Unless required by applicable law or agreed to in writing, software
    14  // distributed under the License is distributed on an "AS IS" BASIS,
    15  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  // See the License for the specific language governing permissions and
    17  // limitations under the License.
    18  
    19  package utils
    20  
    21  // when we upgrade to support go1.18, this can be massively simplified by using
    22  // Go Generics, but since we aren't supporting go1.18 yet, I didn't want to use
    23  // them here so we can maintain the backwards compatibility.
    24  
    25  func transposeInt8Int8(src []int8, dest []int8, transposeMap []int32) {
    26  	for i, s := range src {
    27  		dest[i] = int8(transposeMap[s])
    28  	}
    29  }
    30  
    31  func transposeInt8Uint8(src []int8, dest []uint8, transposeMap []int32) {
    32  	for i, s := range src {
    33  		dest[i] = uint8(transposeMap[s])
    34  	}
    35  }
    36  
    37  func transposeInt8Int16(src []int8, dest []int16, transposeMap []int32) {
    38  	for i, s := range src {
    39  		dest[i] = int16(transposeMap[s])
    40  	}
    41  }
    42  
    43  func transposeInt8Uint16(src []int8, dest []uint16, transposeMap []int32) {
    44  	for i, s := range src {
    45  		dest[i] = uint16(transposeMap[s])
    46  	}
    47  }
    48  
    49  func transposeInt8Int32(src []int8, dest []int32, transposeMap []int32) {
    50  	for i, s := range src {
    51  		dest[i] = int32(transposeMap[s])
    52  	}
    53  }
    54  
    55  func transposeInt8Uint32(src []int8, dest []uint32, transposeMap []int32) {
    56  	for i, s := range src {
    57  		dest[i] = uint32(transposeMap[s])
    58  	}
    59  }
    60  
    61  func transposeInt8Int64(src []int8, dest []int64, transposeMap []int32) {
    62  	for i, s := range src {
    63  		dest[i] = int64(transposeMap[s])
    64  	}
    65  }
    66  
    67  func transposeInt8Uint64(src []int8, dest []uint64, transposeMap []int32) {
    68  	for i, s := range src {
    69  		dest[i] = uint64(transposeMap[s])
    70  	}
    71  }
    72  
    73  func transposeUint8Int8(src []uint8, dest []int8, transposeMap []int32) {
    74  	for i, s := range src {
    75  		dest[i] = int8(transposeMap[s])
    76  	}
    77  }
    78  
    79  func transposeUint8Uint8(src []uint8, dest []uint8, transposeMap []int32) {
    80  	for i, s := range src {
    81  		dest[i] = uint8(transposeMap[s])
    82  	}
    83  }
    84  
    85  func transposeUint8Int16(src []uint8, dest []int16, transposeMap []int32) {
    86  	for i, s := range src {
    87  		dest[i] = int16(transposeMap[s])
    88  	}
    89  }
    90  
    91  func transposeUint8Uint16(src []uint8, dest []uint16, transposeMap []int32) {
    92  	for i, s := range src {
    93  		dest[i] = uint16(transposeMap[s])
    94  	}
    95  }
    96  
    97  func transposeUint8Int32(src []uint8, dest []int32, transposeMap []int32) {
    98  	for i, s := range src {
    99  		dest[i] = int32(transposeMap[s])
   100  	}
   101  }
   102  
   103  func transposeUint8Uint32(src []uint8, dest []uint32, transposeMap []int32) {
   104  	for i, s := range src {
   105  		dest[i] = uint32(transposeMap[s])
   106  	}
   107  }
   108  
   109  func transposeUint8Int64(src []uint8, dest []int64, transposeMap []int32) {
   110  	for i, s := range src {
   111  		dest[i] = int64(transposeMap[s])
   112  	}
   113  }
   114  
   115  func transposeUint8Uint64(src []uint8, dest []uint64, transposeMap []int32) {
   116  	for i, s := range src {
   117  		dest[i] = uint64(transposeMap[s])
   118  	}
   119  }
   120  
   121  func transposeInt16Int8(src []int16, dest []int8, transposeMap []int32) {
   122  	for i, s := range src {
   123  		dest[i] = int8(transposeMap[s])
   124  	}
   125  }
   126  
   127  func transposeInt16Uint8(src []int16, dest []uint8, transposeMap []int32) {
   128  	for i, s := range src {
   129  		dest[i] = uint8(transposeMap[s])
   130  	}
   131  }
   132  
   133  func transposeInt16Int16(src []int16, dest []int16, transposeMap []int32) {
   134  	for i, s := range src {
   135  		dest[i] = int16(transposeMap[s])
   136  	}
   137  }
   138  
   139  func transposeInt16Uint16(src []int16, dest []uint16, transposeMap []int32) {
   140  	for i, s := range src {
   141  		dest[i] = uint16(transposeMap[s])
   142  	}
   143  }
   144  
   145  func transposeInt16Int32(src []int16, dest []int32, transposeMap []int32) {
   146  	for i, s := range src {
   147  		dest[i] = int32(transposeMap[s])
   148  	}
   149  }
   150  
   151  func transposeInt16Uint32(src []int16, dest []uint32, transposeMap []int32) {
   152  	for i, s := range src {
   153  		dest[i] = uint32(transposeMap[s])
   154  	}
   155  }
   156  
   157  func transposeInt16Int64(src []int16, dest []int64, transposeMap []int32) {
   158  	for i, s := range src {
   159  		dest[i] = int64(transposeMap[s])
   160  	}
   161  }
   162  
   163  func transposeInt16Uint64(src []int16, dest []uint64, transposeMap []int32) {
   164  	for i, s := range src {
   165  		dest[i] = uint64(transposeMap[s])
   166  	}
   167  }
   168  
   169  func transposeUint16Int8(src []uint16, dest []int8, transposeMap []int32) {
   170  	for i, s := range src {
   171  		dest[i] = int8(transposeMap[s])
   172  	}
   173  }
   174  
   175  func transposeUint16Uint8(src []uint16, dest []uint8, transposeMap []int32) {
   176  	for i, s := range src {
   177  		dest[i] = uint8(transposeMap[s])
   178  	}
   179  }
   180  
   181  func transposeUint16Int16(src []uint16, dest []int16, transposeMap []int32) {
   182  	for i, s := range src {
   183  		dest[i] = int16(transposeMap[s])
   184  	}
   185  }
   186  
   187  func transposeUint16Uint16(src []uint16, dest []uint16, transposeMap []int32) {
   188  	for i, s := range src {
   189  		dest[i] = uint16(transposeMap[s])
   190  	}
   191  }
   192  
   193  func transposeUint16Int32(src []uint16, dest []int32, transposeMap []int32) {
   194  	for i, s := range src {
   195  		dest[i] = int32(transposeMap[s])
   196  	}
   197  }
   198  
   199  func transposeUint16Uint32(src []uint16, dest []uint32, transposeMap []int32) {
   200  	for i, s := range src {
   201  		dest[i] = uint32(transposeMap[s])
   202  	}
   203  }
   204  
   205  func transposeUint16Int64(src []uint16, dest []int64, transposeMap []int32) {
   206  	for i, s := range src {
   207  		dest[i] = int64(transposeMap[s])
   208  	}
   209  }
   210  
   211  func transposeUint16Uint64(src []uint16, dest []uint64, transposeMap []int32) {
   212  	for i, s := range src {
   213  		dest[i] = uint64(transposeMap[s])
   214  	}
   215  }
   216  
   217  func transposeInt32Int8(src []int32, dest []int8, transposeMap []int32) {
   218  	for i, s := range src {
   219  		dest[i] = int8(transposeMap[s])
   220  	}
   221  }
   222  
   223  func transposeInt32Uint8(src []int32, dest []uint8, transposeMap []int32) {
   224  	for i, s := range src {
   225  		dest[i] = uint8(transposeMap[s])
   226  	}
   227  }
   228  
   229  func transposeInt32Int16(src []int32, dest []int16, transposeMap []int32) {
   230  	for i, s := range src {
   231  		dest[i] = int16(transposeMap[s])
   232  	}
   233  }
   234  
   235  func transposeInt32Uint16(src []int32, dest []uint16, transposeMap []int32) {
   236  	for i, s := range src {
   237  		dest[i] = uint16(transposeMap[s])
   238  	}
   239  }
   240  
   241  func transposeInt32Int32(src []int32, dest []int32, transposeMap []int32) {
   242  	for i, s := range src {
   243  		dest[i] = int32(transposeMap[s])
   244  	}
   245  }
   246  
   247  func transposeInt32Uint32(src []int32, dest []uint32, transposeMap []int32) {
   248  	for i, s := range src {
   249  		dest[i] = uint32(transposeMap[s])
   250  	}
   251  }
   252  
   253  func transposeInt32Int64(src []int32, dest []int64, transposeMap []int32) {
   254  	for i, s := range src {
   255  		dest[i] = int64(transposeMap[s])
   256  	}
   257  }
   258  
   259  func transposeInt32Uint64(src []int32, dest []uint64, transposeMap []int32) {
   260  	for i, s := range src {
   261  		dest[i] = uint64(transposeMap[s])
   262  	}
   263  }
   264  
   265  func transposeUint32Int8(src []uint32, dest []int8, transposeMap []int32) {
   266  	for i, s := range src {
   267  		dest[i] = int8(transposeMap[s])
   268  	}
   269  }
   270  
   271  func transposeUint32Uint8(src []uint32, dest []uint8, transposeMap []int32) {
   272  	for i, s := range src {
   273  		dest[i] = uint8(transposeMap[s])
   274  	}
   275  }
   276  
   277  func transposeUint32Int16(src []uint32, dest []int16, transposeMap []int32) {
   278  	for i, s := range src {
   279  		dest[i] = int16(transposeMap[s])
   280  	}
   281  }
   282  
   283  func transposeUint32Uint16(src []uint32, dest []uint16, transposeMap []int32) {
   284  	for i, s := range src {
   285  		dest[i] = uint16(transposeMap[s])
   286  	}
   287  }
   288  
   289  func transposeUint32Int32(src []uint32, dest []int32, transposeMap []int32) {
   290  	for i, s := range src {
   291  		dest[i] = int32(transposeMap[s])
   292  	}
   293  }
   294  
   295  func transposeUint32Uint32(src []uint32, dest []uint32, transposeMap []int32) {
   296  	for i, s := range src {
   297  		dest[i] = uint32(transposeMap[s])
   298  	}
   299  }
   300  
   301  func transposeUint32Int64(src []uint32, dest []int64, transposeMap []int32) {
   302  	for i, s := range src {
   303  		dest[i] = int64(transposeMap[s])
   304  	}
   305  }
   306  
   307  func transposeUint32Uint64(src []uint32, dest []uint64, transposeMap []int32) {
   308  	for i, s := range src {
   309  		dest[i] = uint64(transposeMap[s])
   310  	}
   311  }
   312  
   313  func transposeInt64Int8(src []int64, dest []int8, transposeMap []int32) {
   314  	for i, s := range src {
   315  		dest[i] = int8(transposeMap[s])
   316  	}
   317  }
   318  
   319  func transposeInt64Uint8(src []int64, dest []uint8, transposeMap []int32) {
   320  	for i, s := range src {
   321  		dest[i] = uint8(transposeMap[s])
   322  	}
   323  }
   324  
   325  func transposeInt64Int16(src []int64, dest []int16, transposeMap []int32) {
   326  	for i, s := range src {
   327  		dest[i] = int16(transposeMap[s])
   328  	}
   329  }
   330  
   331  func transposeInt64Uint16(src []int64, dest []uint16, transposeMap []int32) {
   332  	for i, s := range src {
   333  		dest[i] = uint16(transposeMap[s])
   334  	}
   335  }
   336  
   337  func transposeInt64Int32(src []int64, dest []int32, transposeMap []int32) {
   338  	for i, s := range src {
   339  		dest[i] = int32(transposeMap[s])
   340  	}
   341  }
   342  
   343  func transposeInt64Uint32(src []int64, dest []uint32, transposeMap []int32) {
   344  	for i, s := range src {
   345  		dest[i] = uint32(transposeMap[s])
   346  	}
   347  }
   348  
   349  func transposeInt64Int64(src []int64, dest []int64, transposeMap []int32) {
   350  	for i, s := range src {
   351  		dest[i] = int64(transposeMap[s])
   352  	}
   353  }
   354  
   355  func transposeInt64Uint64(src []int64, dest []uint64, transposeMap []int32) {
   356  	for i, s := range src {
   357  		dest[i] = uint64(transposeMap[s])
   358  	}
   359  }
   360  
   361  func transposeUint64Int8(src []uint64, dest []int8, transposeMap []int32) {
   362  	for i, s := range src {
   363  		dest[i] = int8(transposeMap[s])
   364  	}
   365  }
   366  
   367  func transposeUint64Uint8(src []uint64, dest []uint8, transposeMap []int32) {
   368  	for i, s := range src {
   369  		dest[i] = uint8(transposeMap[s])
   370  	}
   371  }
   372  
   373  func transposeUint64Int16(src []uint64, dest []int16, transposeMap []int32) {
   374  	for i, s := range src {
   375  		dest[i] = int16(transposeMap[s])
   376  	}
   377  }
   378  
   379  func transposeUint64Uint16(src []uint64, dest []uint16, transposeMap []int32) {
   380  	for i, s := range src {
   381  		dest[i] = uint16(transposeMap[s])
   382  	}
   383  }
   384  
   385  func transposeUint64Int32(src []uint64, dest []int32, transposeMap []int32) {
   386  	for i, s := range src {
   387  		dest[i] = int32(transposeMap[s])
   388  	}
   389  }
   390  
   391  func transposeUint64Uint32(src []uint64, dest []uint32, transposeMap []int32) {
   392  	for i, s := range src {
   393  		dest[i] = uint32(transposeMap[s])
   394  	}
   395  }
   396  
   397  func transposeUint64Int64(src []uint64, dest []int64, transposeMap []int32) {
   398  	for i, s := range src {
   399  		dest[i] = int64(transposeMap[s])
   400  	}
   401  }
   402  
   403  func transposeUint64Uint64(src []uint64, dest []uint64, transposeMap []int32) {
   404  	for i, s := range src {
   405  		dest[i] = uint64(transposeMap[s])
   406  	}
   407  }