Skip to content

Commit c163206

Browse files
committed
mark PCLMULQDQ intrinsics as safe
Mark all PCLMULQDQ intrinsics as safe.
1 parent add1460 commit c163206

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: crates/core_arch/src/x86/pclmulqdq.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ unsafe extern "C" {
2828
#[cfg_attr(test, assert_instr(pclmul, IMM8 = 0))]
2929
#[rustc_legacy_const_generics(2)]
3030
#[stable(feature = "simd_x86", since = "1.27.0")]
31-
pub unsafe fn _mm_clmulepi64_si128<const IMM8: i32>(a: __m128i, b: __m128i) -> __m128i {
31+
pub fn _mm_clmulepi64_si128<const IMM8: i32>(a: __m128i, b: __m128i) -> __m128i {
3232
static_assert_uimm_bits!(IMM8, 8);
33-
pclmulqdq(a, b, IMM8 as u8)
33+
unsafe { pclmulqdq(a, b, IMM8 as u8) }
3434
}
3535

3636
#[cfg(test)]

0 commit comments

Comments
 (0)