Skip to content

Commit

Permalink
testing an alignment fix in rej_sample
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikbhargavan committed May 23, 2024
1 parent 94121bc commit d1b4174
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion polynomials-aarch64/src/rejsample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ pub(crate) fn rej_sample(a: &[u8], out: &mut [i16]) -> usize {

let idx0 = pick0 as usize;
_vst1q_s16(&mut out[0..8], shifted0);
_vst1q_s16(&mut out[idx0..idx0 + 8], shifted1);
let mut u3 = [0i16;8];
_vst1q_s16(&mut u3, shifted1);
out[idx0..idx0+8].copy_from_slice(&u3);
(pick0 + pick1) as usize
}

0 comments on commit d1b4174

Please sign in to comment.