@@ -8,6 +8,7 @@ use std::mem::MaybeUninit;
88
99use vortex_buffer:: BitBuffer ;
1010
11+ use crate :: lane_kernels:: CHUNK_LEN ;
1112use crate :: lane_kernels:: source:: IndexedSource ;
1213
1314/// Extension trait providing out-of-place lane-kernel methods on any [`IndexedSource`].
@@ -144,14 +145,14 @@ pub trait IndexedSourceExt: IndexedSource + Sized {
144145 let len = values. len ( ) ;
145146 assert_eq ! ( out. len( ) , len, "out must have the same length as values" ) ;
146147
147- let chunks_count = len / 64 ;
148- let remainder = len % 64 ;
148+ let chunks_count = len / CHUNK_LEN ;
149+ let remainder = len % CHUNK_LEN ;
149150
150151 for chunk_idx in 0 ..chunks_count {
151- chunk ( & values, out, & mut f, chunk_idx * 64 , 64 ) ;
152+ chunk ( & values, out, & mut f, chunk_idx * CHUNK_LEN , CHUNK_LEN ) ;
152153 }
153154 if remainder != 0 {
154- chunk ( & values, out, & mut f, chunks_count * 64 , remainder) ;
155+ chunk ( & values, out, & mut f, chunks_count * CHUNK_LEN , remainder) ;
155156 }
156157 }
157158
@@ -216,17 +217,17 @@ pub trait IndexedSourceExt: IndexedSource + Sized {
216217 let len = values. len ( ) ;
217218 assert_eq ! ( out. len( ) , len, "out must have the same length as values" ) ;
218219
219- let chunks_count = len / 64 ;
220- let remainder = len % 64 ;
220+ let chunks_count = len / CHUNK_LEN ;
221+ let remainder = len % CHUNK_LEN ;
221222
222223 for chunk_idx in 0 ..chunks_count {
223- let base = chunk_idx * 64 ;
224- if chunk ( & values, out, & mut f, base, 64 ) {
225- return Err ( attribute_failure_no_mask ( & values, base, 64 , & mut f) ) ;
224+ let base = chunk_idx * CHUNK_LEN ;
225+ if chunk ( & values, out, & mut f, base, CHUNK_LEN ) {
226+ return Err ( attribute_failure_no_mask ( & values, base, CHUNK_LEN , & mut f) ) ;
226227 }
227228 }
228229 if remainder != 0 {
229- let base = chunks_count * 64 ;
230+ let base = chunks_count * CHUNK_LEN ;
230231 if chunk ( & values, out, & mut f, base, remainder) {
231232 return Err ( attribute_failure_no_mask ( & values, base, remainder, & mut f) ) ;
232233 }
0 commit comments