File tree 3 files changed +9
-2
lines changed
portable-simd/crates/core_simd/src/simd/ptr 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -549,6 +549,10 @@ extern "rust-intrinsic" {
549
549
///
550
550
/// `U` must be a vector of pointers, with the same length as `T`.
551
551
#[ rustc_nounwind]
552
+ #[ cfg( not( bootstrap) ) ]
553
+ pub fn simd_with_exposed_provenance < T , U > ( addr : T ) -> U ;
554
+ #[ rustc_nounwind]
555
+ #[ cfg( bootstrap) ]
552
556
pub fn simd_from_exposed_addr < T , U > ( addr : T ) -> U ;
553
557
554
558
/// Swap bytes of each element.
@@ -655,3 +659,6 @@ extern "rust-intrinsic" {
655
659
#[ rustc_nounwind]
656
660
pub fn simd_flog < T > ( a : T ) -> T ;
657
661
}
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
139
139
#[ inline]
140
140
fn with_exposed_provenance ( addr : Self :: Usize ) -> Self {
141
141
// 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) }
143
143
}
144
144
145
145
#[ inline]
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ where
136
136
#[ inline]
137
137
fn with_exposed_provenance ( addr : Self :: Usize ) -> Self {
138
138
// 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) }
140
140
}
141
141
142
142
#[ inline]
You can’t perform that action at this time.
0 commit comments