Skip to content

Commit

Permalink
Fix comments for _mm_cvtepu8_epi{32, 64} (rust-lang#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
goodmanjonathan authored and alexcrichton committed Nov 20, 2017
1 parent eb6b92f commit 03ba741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/x86/i586/sse41.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,15 +333,15 @@ pub unsafe fn _mm_cvtepu8_epi16(a: u8x16) -> i16x8 {
simd_shuffle8::<_, ::v64::u8x8>(a, a, [0, 1, 2, 3, 4, 5, 6, 7]).as_i16x8()
}

/// Zero extend packed unsigned 8-bit integers in `a` to packed 16-bit integers
/// Zero extend packed unsigned 8-bit integers in `a` to packed 32-bit integers
#[inline(always)]
#[target_feature = "+sse4.1"]
#[cfg_attr(test, assert_instr(pmovzxbd))]
pub unsafe fn _mm_cvtepu8_epi32(a: u8x16) -> i32x4 {
simd_shuffle4::<_, ::v32::u8x4>(a, a, [0, 1, 2, 3]).as_i32x4()
}

/// Zero extend packed unsigned 8-bit integers in `a` to packed 16-bit integers
/// Zero extend packed unsigned 8-bit integers in `a` to packed 64-bit integers
#[inline(always)]
#[target_feature = "+sse4.1"]
#[cfg_attr(test, assert_instr(pmovzxbq))]
Expand Down

0 comments on commit 03ba741

Please sign in to comment.