We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7072c22 commit 03f6fbbCopy full SHA for 03f6fbb
crates/core_simd/src/intrinsics.rs
@@ -41,6 +41,7 @@ extern "platform-intrinsic" {
41
pub(crate) fn simd_cast<T, U>(x: T) -> U;
42
/// follows Rust's `T as U` semantics, including saturating float casts
43
/// which amounts to the same as `simd_cast` for many cases
44
+ #[cfg(not(bootstrap))]
45
pub(crate) fn simd_as<T, U>(x: T) -> U;
46
47
/// neg/fneg
crates/core_simd/src/vector.rs
@@ -100,6 +100,7 @@ where
100
/// ```
101
#[must_use]
102
#[inline]
103
104
pub fn cast<U: SimdElement>(self) -> Simd<U, LANES> {
105
unsafe { intrinsics::simd_as(self) }
106
}
0 commit comments