Skip to content

Commit

Permalink
Fix arm asm
Browse files Browse the repository at this point in the history
  • Loading branch information
ogxd committed Nov 9, 2024
1 parent 23c0bf7 commit c69fd44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gxhash/platform/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ pub unsafe fn get_partial_unsafe_no_ub(data: *const State, len: usize) -> State
use std::arch::asm;
let mut result: State;
asm!(
"ld1 {0}, [{1}]",
out(vreg) result, in(reg) data,
options(pure, nomem, nostack)
"ld1 {{v2.16b}}, [{src}]",
src = in(reg) data, out("v2") result,
options(nomem, nostack)
);
let partial_vector = vandq_s8(result, vreinterpretq_s8_u8(mask));
vaddq_s8(partial_vector, vdupq_n_s8(len as i8))
Expand Down

0 comments on commit c69fd44

Please sign in to comment.