|
1 | 1 | // SPDX-License-Identifier: Apache-2.0 |
2 | 2 | // SPDX-FileCopyrightText: Copyright the Vortex contributors |
3 | 3 |
|
| 4 | +use std::mem::{transmute, transmute_copy}; |
| 5 | + |
4 | 6 | use fastlanes::{BitPacking, FastLanes}; |
5 | 7 | use static_assertions::const_assert_eq; |
6 | | -use std::mem::{transmute, transmute_copy}; |
7 | 8 | use vortex_array::pipeline::bit_view::BitView; |
8 | | -use vortex_array::pipeline::{BindContext, Kernel, KernelCtx, PipelineInputs, PipelinedNode, N}; |
| 9 | +use vortex_array::pipeline::{BindContext, Kernel, KernelCtx, N, PipelineInputs, PipelinedNode}; |
9 | 10 | use vortex_buffer::Buffer; |
10 | | -use vortex_dtype::{match_each_integer_ptype, PTypeDowncastExt, PhysicalPType}; |
| 11 | +use vortex_dtype::{PTypeDowncastExt, PhysicalPType, match_each_integer_ptype}; |
11 | 12 | use vortex_error::VortexResult; |
12 | 13 | use vortex_mask::MaskMut; |
13 | 14 | use vortex_vector::primitive::PVectorMut; |
14 | | -use vortex_vector::VectorMut; |
15 | | -use vortex_vector::VectorMutOps; |
| 15 | +use vortex_vector::{VectorMut, VectorMutOps}; |
16 | 16 |
|
17 | 17 | use crate::BitPackedArray; |
18 | 18 |
|
@@ -200,12 +200,13 @@ impl<BP: PhysicalPType<Physical: BitPacking>> Kernel for AlignedBitPackedKernel< |
200 | 200 |
|
201 | 201 | #[cfg(test)] |
202 | 202 | mod tests { |
203 | | - use crate::BitPackedArray; |
204 | 203 | use vortex_array::arrays::PrimitiveArray; |
205 | 204 | use vortex_dtype::PTypeDowncast; |
206 | 205 | use vortex_mask::Mask; |
207 | 206 | use vortex_vector::VectorOps; |
208 | 207 |
|
| 208 | + use crate::BitPackedArray; |
| 209 | + |
209 | 210 | #[test] |
210 | 211 | fn test_bitpack_pipeline_basic() { |
211 | 212 | // Create exactly 1024 elements (0 to 1023). |
|
0 commit comments