File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,9 @@ pub trait SimdConstPtr: Copy + Sealed {
6363 /// Equivalent to calling [`pointer::with_addr`] on each element.
6464 fn with_addr ( self , addr : Self :: Usize ) -> Self ;
6565
66- /// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
67- /// in [`Self::with_exposed_provenance`].
68- fn expose_addr ( self ) -> Self :: Usize ;
66+ /// Exposes the "provenance" part of the pointer for future use in
67+ /// [`Self::with_exposed_provenance`] and returns the "address" portion .
68+ fn expose_provenance ( self ) -> Self :: Usize ;
6969
7070 /// Convert an address back to a pointer, picking up a previously "exposed" provenance.
7171 ///
@@ -152,9 +152,9 @@ where
152152 }
153153
154154 #[ inline]
155- fn expose_addr ( self ) -> Self :: Usize {
155+ fn expose_provenance ( self ) -> Self :: Usize {
156156 // Safety: `self` is a pointer vector
157- unsafe { core:: intrinsics:: simd:: simd_expose_addr ( self ) }
157+ unsafe { core:: intrinsics:: simd:: simd_expose_provenance ( self ) }
158158 }
159159
160160 #[ inline]
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ pub trait SimdMutPtr: Copy + Sealed {
6060 /// Equivalent to calling [`pointer::with_addr`] on each element.
6161 fn with_addr ( self , addr : Self :: Usize ) -> Self ;
6262
63- /// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
64- /// in [`Self::with_exposed_provenance`].
65- fn expose_addr ( self ) -> Self :: Usize ;
63+ /// Exposes the "provenance" part of the pointer for future use in
64+ /// [`Self::with_exposed_provenance`] and returns the "address" portion .
65+ fn expose_provenance ( self ) -> Self :: Usize ;
6666
6767 /// Convert an address back to a pointer, picking up a previously "exposed" provenance.
6868 ///
@@ -149,9 +149,9 @@ where
149149 }
150150
151151 #[ inline]
152- fn expose_addr ( self ) -> Self :: Usize {
152+ fn expose_provenance ( self ) -> Self :: Usize {
153153 // Safety: `self` is a pointer vector
154- unsafe { core:: intrinsics:: simd:: simd_expose_addr ( self ) }
154+ unsafe { core:: intrinsics:: simd:: simd_expose_provenance ( self ) }
155155 }
156156
157157 #[ inline]
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ macro_rules! common_tests {
3232 ) ;
3333 }
3434
35- fn expose_addr <const LANES : usize >( ) {
35+ fn expose_provenance <const LANES : usize >( ) {
3636 test_helpers:: test_unary_elementwise(
37- & Simd :: <* $constness u32 , LANES >:: expose_addr ,
38- & <* $constness u32 >:: expose_addr ,
37+ & Simd :: <* $constness u32 , LANES >:: expose_provenance ,
38+ & <* $constness u32 >:: expose_provenance ,
3939 & |_| true ,
4040 ) ;
4141 }
You can’t perform that action at this time.
0 commit comments