| 502 | const uint8_t*, int, const int64_t, uint8_t*); |
| 503 | |
| 504 | inline void ByteStreamSplitEncode(const uint8_t* raw_values, int width, |
| 505 | const int64_t num_values, uint8_t* out) { |
| 506 | switch (width) { |
| 507 | case 1: |
| 508 | std::memcpy(out, raw_values, num_values); |
| 509 | return; |
| 510 | case 2: |
| 511 | return ByteStreamSplitEncodeSimdDispatch<2>(raw_values, width, num_values, out); |
| 512 | case 4: |
| 513 | return ByteStreamSplitEncodeSimdDispatch<4>(raw_values, width, num_values, out); |
| 514 | case 8: |
| 515 | return ByteStreamSplitEncodeSimdDispatch<8>(raw_values, width, num_values, out); |
| 516 | case 16: |
| 517 | return ByteStreamSplitEncodeScalar<16>(raw_values, width, num_values, out); |
| 518 | } |
| 519 | return ByteStreamSplitEncodeScalarDynamic(raw_values, width, num_values, out); |
| 520 | } |
| 521 | |
| 522 | inline void ByteStreamSplitDecode(const uint8_t* data, int width, int64_t num_values, |
| 523 | int64_t stride, uint8_t* out) { |
no test coverage detected