Skip to content

Commit 2e31ab0

Browse files
committed
Use new kernel in avx2
1 parent e792eaf commit 2e31ab0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cpp/src/arrow/util/bpacking_simd_avx2.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@
1616
// under the License.
1717

1818
#include "arrow/util/bpacking_dispatch_internal.h"
19-
#include "arrow/util/bpacking_simd256_generated_internal.h"
20-
#include "arrow/util/bpacking_simd_internal.h"
19+
#include "arrow/util/bpacking_simd_impl_internal.h"
2120

2221
namespace arrow::internal {
2322

23+
template <typename UnpackedUint, int kPackedBitSize>
24+
using Simd256Kernel = Kernel<UnpackedUint, kPackedBitSize, 256>;
25+
2426
template <typename Uint>
2527
void unpack_avx2(const uint8_t* in, Uint* out, int batch_size, int num_bits,
2628
int bit_offset) {
27-
return unpack_jump<Simd256UnpackerForWidth>(in, out, batch_size, num_bits, bit_offset);
29+
return unpack_jump<Simd256Kernel>(in, out, batch_size, num_bits, bit_offset);
2830
}
2931

3032
template void unpack_avx2<bool>(const uint8_t*, bool*, int, int, int);

0 commit comments

Comments
 (0)