Skip to content

Commit

Permalink
vsimd: hex: sse2: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Nov 15, 2022
1 parent ea9eabf commit e69a7e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/vsimd/src/hex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ pub mod sse2 {
let l1 = s.u8x16_add(lo, c1);

let c2 = s.u8x16_splat(0x39);
let h2 = s.v128_and(s.u8x16_lt(c2, h1), offset);
let l2 = s.v128_and(s.u8x16_lt(c2, l1), offset);
let h2 = s.v128_and(s.i8x16_lt(c2, h1), offset);
let l2 = s.v128_and(s.i8x16_lt(c2, l1), offset);

let h3 = s.u8x16_add(h1, h2);
let l3 = s.u8x16_add(l1, l2);
Expand Down

0 comments on commit e69a7e1

Please sign in to comment.