Skip to content

Commit 8fb78f3

Browse files
satiscugcatAmanieu
authored andcommitted
Fix in erroneous implementation of _mm256_bsrli_epi128
Fixing the issue mentioned in issue rust-lang#1822 of rust-lang/stdarch.
1 parent 35f270c commit 8fb78f3

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
@@ -2964,7 +2964,7 @@ pub fn _mm256_bsrli_epi128<const IMM8: i32>(a: __m256i) -> __m256i {
29642964
unsafe {
29652965
let a = a.as_i8x32();
29662966
let zero = i8x32::ZERO;
2967-
let r: i8x32 = match IMM8 % 16 {
2967+
let r: i8x32 = match IMM8 {
29682968
0 => simd_shuffle!(
29692969
a,
29702970
zero,

0 commit comments

Comments
 (0)