]> git.proxmox.com Git - rustc.git/blobdiff - library/stdarch/crates/core_arch/src/x86/pclmulqdq.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / library / stdarch / crates / core_arch / src / x86 / pclmulqdq.rs
index a2ebdf9c855f8dcfda7380bfbde1d1c5be98e8d1..6a5cd73f93926592e3e4d6ee7f1244c90cc3759e 100644 (file)
@@ -22,7 +22,7 @@ extern "C" {
 /// The immediate byte is used for determining which halves of `a` and `b`
 /// should be used. Immediate bits other than 0 and 4 are ignored.
 ///
-/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_clmulepi64_si128)
+/// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_clmulepi64_si128)
 #[inline]
 #[target_feature(enable = "pclmulqdq")]
 #[cfg_attr(all(test, not(target_os = "linux")), assert_instr(pclmulqdq, IMM8 = 0))]
@@ -33,7 +33,7 @@ extern "C" {
 #[rustc_legacy_const_generics(2)]
 #[stable(feature = "simd_x86", since = "1.27.0")]
 pub unsafe fn _mm_clmulepi64_si128<const IMM8: i32>(a: __m128i, b: __m128i) -> __m128i {
-    static_assert_imm8!(IMM8);
+    static_assert_uimm_bits!(IMM8, 8);
     pclmulqdq(a, b, IMM8 as u8)
 }