Omit Simd::cast during bootstrap
This commit is contained in:
parent
7072c2278e
commit
03f6fbb21e
@ -41,6 +41,7 @@ extern "platform-intrinsic" {
|
||||
pub(crate) fn simd_cast<T, U>(x: T) -> U;
|
||||
/// follows Rust's `T as U` semantics, including saturating float casts
|
||||
/// which amounts to the same as `simd_cast` for many cases
|
||||
#[cfg(not(bootstrap))]
|
||||
pub(crate) fn simd_as<T, U>(x: T) -> U;
|
||||
|
||||
/// neg/fneg
|
||||
|
@ -100,6 +100,7 @@ where
|
||||
/// ```
|
||||
#[must_use]
|
||||
#[inline]
|
||||
#[cfg(not(bootstrap))]
|
||||
pub fn cast<U: SimdElement>(self) -> Simd<U, LANES> {
|
||||
unsafe { intrinsics::simd_as(self) }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user