Skip to content

Commit bab5cd3

Browse files
committed
sse4.1: Use the v128 types for consistency
1 parent 91b079a commit bab5cd3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/x86/sse41.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@ use std::mem;
55
use stdsimd_test::assert_instr;
66

77
use v128::*;
8-
use x86::__m128i;
98

109
#[inline(always)]
1110
#[target_feature = "+sse4.1"]
1211
#[cfg_attr(test, assert_instr(pblendvb))]
13-
pub unsafe fn _mm_blendv_epi8(
14-
a: __m128i,
15-
b: __m128i,
16-
mask: __m128i,
17-
) -> __m128i {
12+
pub unsafe fn _mm_blendv_epi8(a: i8x16, b: i8x16, mask: i8x16) -> i8x16 {
1813
pblendvb(a, b, mask)
1914
}
2015

@@ -225,7 +220,7 @@ pub unsafe fn _mm_dp_ps(a: f32x4, b: f32x4, imm8: u8) -> f32x4 {
225220
#[allow(improper_ctypes)]
226221
extern {
227222
#[link_name = "llvm.x86.sse41.pblendvb"]
228-
fn pblendvb(a: __m128i, b: __m128i, mask: __m128i) -> __m128i;
223+
fn pblendvb(a: i8x16, b: i8x16, mask: i8x16) -> i8x16;
229224
#[link_name = "llvm.x86.sse41.blendvpd"]
230225
fn blendvpd(a: f64x2, b: f64x2, mask: f64x2) -> f64x2;
231226
#[link_name = "llvm.x86.sse41.blendvps"]

0 commit comments

Comments
 (0)