Skip to content

Commit 3eda213

Browse files
committed
also rename the SIMD intrinsic
1 parent 16022f9 commit 3eda213

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

core/src/intrinsics/simd.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ extern "rust-intrinsic" {
549549
///
550550
/// `U` must be a vector of pointers, with the same length as `T`.
551551
#[rustc_nounwind]
552+
#[cfg(not(bootstrap))]
553+
pub fn simd_with_exposed_provenance<T, U>(addr: T) -> U;
554+
#[rustc_nounwind]
555+
#[cfg(bootstrap)]
552556
pub fn simd_from_exposed_addr<T, U>(addr: T) -> U;
553557

554558
/// Swap bytes of each element.
@@ -655,3 +659,6 @@ extern "rust-intrinsic" {
655659
#[rustc_nounwind]
656660
pub fn simd_flog<T>(a: T) -> T;
657661
}
662+
663+
#[cfg(bootstrap)]
664+
pub use simd_from_exposed_addr as simd_with_exposed_provenance;

portable-simd/crates/core_simd/src/simd/ptr/const_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ where
139139
#[inline]
140140
fn with_exposed_provenance(addr: Self::Usize) -> Self {
141141
// Safety: `self` is a pointer vector
142-
unsafe { core::intrinsics::simd::simd_from_exposed_addr(addr) }
142+
unsafe { core::intrinsics::simd::simd_with_exposed_provenance(addr) }
143143
}
144144

145145
#[inline]

portable-simd/crates/core_simd/src/simd/ptr/mut_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ where
136136
#[inline]
137137
fn with_exposed_provenance(addr: Self::Usize) -> Self {
138138
// Safety: `self` is a pointer vector
139-
unsafe { core::intrinsics::simd::simd_from_exposed_addr(addr) }
139+
unsafe { core::intrinsics::simd::simd_with_exposed_provenance(addr) }
140140
}
141141

142142
#[inline]

0 commit comments

Comments
 (0)