| 522 | const uint8_t*, int, const int64_t, uint8_t*); |
| 523 | |
| 524 | inline void ByteStreamSplitEncode(const uint8_t* raw_values, int width, |
| 525 | const int64_t num_values, uint8_t* out) { |
| 526 | switch (width) { |
| 527 | case 1: |
| 528 | std::memcpy(out, raw_values, num_values); |
| 529 | return; |
| 530 | case 2: |
| 531 | return ByteStreamSplitEncodeSimdDispatch<2>(raw_values, width, num_values, out); |
| 532 | case 4: |
| 533 | return ByteStreamSplitEncodeSimdDispatch<4>(raw_values, width, num_values, out); |
| 534 | case 8: |
| 535 | return ByteStreamSplitEncodeSimdDispatch<8>(raw_values, width, num_values, out); |
| 536 | case 16: |
| 537 | return ByteStreamSplitEncodeScalar<16>(raw_values, width, num_values, out); |
| 538 | } |
| 539 | return ByteStreamSplitEncodeScalarDynamic(raw_values, width, num_values, out); |
| 540 | } |
| 541 | |
| 542 | inline void ByteStreamSplitDecode(const uint8_t* data, int width, int64_t num_values, |
| 543 | int64_t stride, uint8_t* out) { |
no test coverage detected