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 {
63
63
/// Equivalent to calling [`pointer::with_addr`] on each element.
64
64
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
65
65
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 ;
69
69
70
70
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
71
71
///
@@ -152,9 +152,9 @@ where
152
152
}
153
153
154
154
#[ inline]
155
- fn expose_addr ( self ) -> Self :: Usize {
155
+ fn expose_provenance ( self ) -> Self :: Usize {
156
156
// Safety: `self` is a pointer vector
157
- unsafe { core:: intrinsics:: simd:: simd_expose_addr ( self ) }
157
+ unsafe { core:: intrinsics:: simd:: simd_expose_provenance ( self ) }
158
158
}
159
159
160
160
#[ inline]
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ pub trait SimdMutPtr: Copy + Sealed {
60
60
/// Equivalent to calling [`pointer::with_addr`] on each element.
61
61
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
62
62
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 ;
66
66
67
67
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
68
68
///
@@ -149,9 +149,9 @@ where
149
149
}
150
150
151
151
#[ inline]
152
- fn expose_addr ( self ) -> Self :: Usize {
152
+ fn expose_provenance ( self ) -> Self :: Usize {
153
153
// Safety: `self` is a pointer vector
154
- unsafe { core:: intrinsics:: simd:: simd_expose_addr ( self ) }
154
+ unsafe { core:: intrinsics:: simd:: simd_expose_provenance ( self ) }
155
155
}
156
156
157
157
#[ inline]
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ macro_rules! common_tests {
32
32
) ;
33
33
}
34
34
35
- fn expose_addr <const LANES : usize >( ) {
35
+ fn expose_provenance <const LANES : usize >( ) {
36
36
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 ,
39
39
& |_| true ,
40
40
) ;
41
41
}
You can’t perform that action at this time.
0 commit comments