Skip to content

Commit e122c8d

Browse files
satiscugcatAmanieu
authored andcommitted
Removal of redundant mod operation in _mm256_alignr_epi8
1 parent 6fe3e50 commit e122c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_arch/src/x86/avx2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ pub fn _mm256_alignr_epi8<const IMM8: i32>(a: __m256i, b: __m256i) -> __m256i {
191191
return transmute(a);
192192
}
193193

194-
let r: i8x32 = match IMM8 % 16 {
194+
let r: i8x32 = match IMM8 {
195195
0 => simd_shuffle!(
196196
b,
197197
a,

0 commit comments

Comments
 (0)