Skip to content

Commit 58db094

Browse files
satiscugcatAmanieu
authored andcommitted
Removal of redundant mod operation in _mm256_alignr_epi8
1 parent 8fb78f3 commit 58db094

File tree

1 file changed

+1
-1
lines changed
  • library/stdarch/crates/core_arch/src/x86

1 file changed

+1
-1
lines changed

library/stdarch/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)