Revert "Revert "Merge pull request #385 from workingjubilee/make-an-ass-out-of-u-and-me""
This reverts commit 644bdfb2ac
.
This commit is contained in:
parent
061d5acd93
commit
44b4d26273
1 changed files with 4 additions and 1 deletions
|
@ -174,7 +174,10 @@ where
|
|||
#[must_use = "method returns a new mask and does not mutate the original value"]
|
||||
pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
|
||||
// Safety: the caller must confirm this invariant
|
||||
unsafe { Self(mask_impl::Mask::from_int_unchecked(value)) }
|
||||
unsafe {
|
||||
core::intrinsics::assume(<T as Sealed>::valid(value));
|
||||
Self(mask_impl::Mask::from_int_unchecked(value))
|
||||
}
|
||||
}
|
||||
|
||||
/// Converts a vector of integers to a mask, where 0 represents `false` and -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue