]> git.lizzy.rs Git - rust.git/blobdiff - crates/core_simd/src/masks/full_masks.rs
Manually implement for supported lanes
[rust.git] / crates / core_simd / src / masks / full_masks.rs
index b20b0a4b7084990c9d6766299fc9e8bbb4469198..90af486a887b1658ff2b23c1d24845865b4a02fe 100644 (file)
@@ -110,13 +110,15 @@ pub fn convert<U>(self) -> Mask<U, LANES>
     }
 
     #[inline]
-    pub unsafe fn to_bitmask_intrinsic<U>(self) -> U {
+    pub unsafe fn to_bitmask_integer<U>(self) -> U {
         // Safety: caller must only return bitmask types
         unsafe { intrinsics::simd_bitmask(self.0) }
     }
 
+    // Safety: U must be the integer with the exact number of bits required to hold the bitmask for
+    // this mask
     #[inline]
-    pub unsafe fn from_bitmask_intrinsic<U>(bitmask: U) -> Self {
+    pub unsafe fn from_bitmask_integer<U>(bitmask: U) -> Self {
         // Safety: caller must only pass bitmask types
         unsafe {
             Self::from_int_unchecked(intrinsics::simd_select_bitmask(