MCPcopy Create free account
hub / github.com/apache/arrow / TransposeInts

Function TransposeInts

cpp/src/arrow/util/int_util.cc:423–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421
422template <typename InputInt, typename OutputInt>
423void TransposeInts(const InputInt* src, OutputInt* dest, int64_t length,
424 const int32_t* transpose_map) {
425 while (length >= 4) {
426 dest[0] = static_cast<OutputInt>(transpose_map[src[0]]);
427 dest[1] = static_cast<OutputInt>(transpose_map[src[1]]);
428 dest[2] = static_cast<OutputInt>(transpose_map[src[2]]);
429 dest[3] = static_cast<OutputInt>(transpose_map[src[3]]);
430 length -= 4;
431 src += 4;
432 dest += 4;
433 }
434 while (length > 0) {
435 *dest++ = static_cast<OutputInt>(transpose_map[*src++]);
436 --length;
437 }
438}
439
440#define INSTANTIATE(SRC, DEST) \
441 template ARROW_TEMPLATE_EXPORT void TransposeInts( \

Callers 4

TransposeDictIndicesFunction · 0.85
VisitMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68