Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement RleBpDecoder::next() using fast bitunpacking #3000

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions velox/dwio/common/BitPackDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace facebook::velox::dwio::common {
using int128_t = __int128_t;

#if XSIMD_WITH_AVX2
// Bit unpacking using BMI2 and AVX2.

typedef int32_t __m256si __attribute__((__vector_size__(32), __may_alias__));

typedef int32_t __m256si_u
Expand Down Expand Up @@ -165,14 +165,15 @@ int32_t decode1To24(
return i;
}

} // namespace
#endif

#define WIDTH_CASE(width) \
case width: \
i = decode1To24<width>(bits, bitOffset, rows.data(), numSafeRows, result); \
break;

} // namespace

#endif

template <typename T>
void unpack(
const uint64_t* bits,
Expand Down
Loading