Skip to content

Commit

Permalink
Fix: sz_move_neon order
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Oct 12, 2024
1 parent 165986f commit be6c93b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/stringzilla/stringzilla.h
Original file line number Diff line number Diff line change
Expand Up @@ -5823,11 +5823,9 @@ SZ_PUBLIC void sz_move_neon(sz_ptr_t target, sz_cptr_t source, sz_size_t length)
src_vec.u8x16 = vld1q_u8((sz_u8_t const *)source);
vst1q_u8((sz_u8_t *)target, src_vec.u8x16);
}

if (length) {
target -= length;
source -= length;
sz_copy_serial(target, source, length);
while (length) {
target -= 1, source -= 1, length -= 1;
*target = *source;
}
}
}
Expand Down

0 comments on commit be6c93b

Please sign in to comment.