File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
portable-simd/crates/core_simd/src/simd/ptr Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments