Skip to content

Commit

Permalink
Fix portable-simd impl
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Aug 28, 2023
1 parent 8e3c15b commit f217a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/portable_simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub(super) unsafe fn encode<const UPPER: bool>(input: &[u8], output: *mut u8) {
let (prefix, chunks, suffix) = input.as_simd::<CHUNK_SIZE>();

default::encode::<UPPER>(prefix, output);
i += prefix.len();
i += prefix.len() * 2;

let hex_table = u8x16::from_array(*crate::get_chars_table::<UPPER>());
for &chunk in chunks {
Expand Down

0 comments on commit f217a92

Please sign in to comment.