Skip to content

Commit e40145b

Browse files
committed
fix: endian in flatten_bits
1 parent af04ec7 commit e40145b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/neon/stage1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ unsafe fn flatten_bits(base: &mut Vec<u32>, idx: u32, mut bits: u64) {
332332
let v3: i32 = static_cast_i32!(trailingzeroes(bits));
333333
bits &= bits.wrapping_sub(1);
334334

335-
let v: int32x4_t = int32x4_t::new(v3, v2, v1, v0);
335+
let v: int32x4_t = int32x4_t::new(v0, v1, v2, v3);
336336
let v: int32x4_t = vaddq_s32(idx_64_v, v);
337337

338338
std::ptr::write(base.as_mut_ptr().add(l) as *mut int32x4_t, v);

0 commit comments

Comments
 (0)