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 @@ -50,9 +50,9 @@ pub trait SimdConstPtr: Copy + Sealed {
50
50
/// Equivalent to calling [`pointer::with_addr`] on each element.
51
51
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
52
52
53
- /// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
54
- /// in [`Self::with_exposed_provenance`].
55
- fn expose_addr ( self ) -> Self :: Usize ;
53
+ /// Exposes the "provenance" part of the pointer for future use in
54
+ /// [`Self::with_exposed_provenance`] and returns the "address" portion .
55
+ fn expose_provenance ( self ) -> Self :: Usize ;
56
56
57
57
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
58
58
///
@@ -131,9 +131,9 @@ where
131
131
}
132
132
133
133
#[ inline]
134
- fn expose_addr ( self ) -> Self :: Usize {
134
+ fn expose_provenance ( self ) -> Self :: Usize {
135
135
// Safety: `self` is a pointer vector
136
- unsafe { core:: intrinsics:: simd:: simd_expose_addr ( self ) }
136
+ unsafe { core:: intrinsics:: simd:: simd_expose_provenance ( self ) }
137
137
}
138
138
139
139
#[ inline]
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ pub trait SimdMutPtr: Copy + Sealed {
47
47
/// Equivalent to calling [`pointer::with_addr`] on each element.
48
48
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
49
49
50
- /// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
51
- /// in [`Self::with_exposed_provenance`].
52
- fn expose_addr ( self ) -> Self :: Usize ;
50
+ /// Exposes the "provenance" part of the pointer for future use in
51
+ /// [`Self::with_exposed_provenance`] and returns the "address" portion .
52
+ fn expose_provenance ( self ) -> Self :: Usize ;
53
53
54
54
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
55
55
///
@@ -128,9 +128,9 @@ where
128
128
}
129
129
130
130
#[ inline]
131
- fn expose_addr ( self ) -> Self :: Usize {
131
+ fn expose_provenance ( self ) -> Self :: Usize {
132
132
// Safety: `self` is a pointer vector
133
- unsafe { core:: intrinsics:: simd:: simd_expose_addr ( self ) }
133
+ unsafe { core:: intrinsics:: simd:: simd_expose_provenance ( self ) }
134
134
}
135
135
136
136
#[ 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