File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,13 @@ pub trait SimdConstPtr: Copy + Sealed {
64
64
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
65
65
66
66
/// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
67
- /// in [`Self::from_exposed_addr `].
67
+ /// in [`Self::with_exposed_provenance `].
68
68
fn expose_addr ( self ) -> Self :: Usize ;
69
69
70
70
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
71
71
///
72
- /// Equivalent to calling [`core::ptr::from_exposed_addr `] on each element.
73
- fn from_exposed_addr ( addr : Self :: Usize ) -> Self ;
72
+ /// Equivalent to calling [`core::ptr::with_exposed_provenance `] on each element.
73
+ fn with_exposed_provenance ( addr : Self :: Usize ) -> Self ;
74
74
75
75
/// Calculates the offset from a pointer using wrapping arithmetic.
76
76
///
@@ -158,7 +158,7 @@ where
158
158
}
159
159
160
160
#[ inline]
161
- fn from_exposed_addr ( addr : Self :: Usize ) -> Self {
161
+ fn with_exposed_provenance ( addr : Self :: Usize ) -> Self {
162
162
// Safety: `self` is a pointer vector
163
163
unsafe { core:: intrinsics:: simd:: simd_from_exposed_addr ( addr) }
164
164
}
Original file line number Diff line number Diff line change @@ -61,13 +61,13 @@ pub trait SimdMutPtr: Copy + Sealed {
61
61
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
62
62
63
63
/// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
64
- /// in [`Self::from_exposed_addr `].
64
+ /// in [`Self::with_exposed_provenance `].
65
65
fn expose_addr ( self ) -> Self :: Usize ;
66
66
67
67
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
68
68
///
69
- /// Equivalent to calling [`core::ptr::from_exposed_addr_mut `] on each element.
70
- fn from_exposed_addr ( addr : Self :: Usize ) -> Self ;
69
+ /// Equivalent to calling [`core::ptr::with_exposed_provenance_mut `] on each element.
70
+ fn with_exposed_provenance ( addr : Self :: Usize ) -> Self ;
71
71
72
72
/// Calculates the offset from a pointer using wrapping arithmetic.
73
73
///
@@ -155,7 +155,7 @@ where
155
155
}
156
156
157
157
#[ inline]
158
- fn from_exposed_addr ( addr : Self :: Usize ) -> Self {
158
+ fn with_exposed_provenance ( addr : Self :: Usize ) -> Self {
159
159
// Safety: `self` is a pointer vector
160
160
unsafe { core:: intrinsics:: simd:: simd_from_exposed_addr ( addr) }
161
161
}
Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ mod const_ptr {
80
80
) ;
81
81
}
82
82
83
- fn from_exposed_addr <const LANES : usize >( ) {
83
+ fn with_exposed_provenance <const LANES : usize >( ) {
84
84
test_helpers:: test_unary_elementwise(
85
- & Simd :: <* const u32 , LANES >:: from_exposed_addr ,
86
- & core:: ptr:: from_exposed_addr :: <u32 >,
85
+ & Simd :: <* const u32 , LANES >:: with_exposed_provenance ,
86
+ & core:: ptr:: with_exposed_provenance :: <u32 >,
87
87
& |_| true ,
88
88
) ;
89
89
}
@@ -103,10 +103,10 @@ mod mut_ptr {
103
103
) ;
104
104
}
105
105
106
- fn from_exposed_addr <const LANES : usize >( ) {
106
+ fn with_exposed_provenance <const LANES : usize >( ) {
107
107
test_helpers:: test_unary_elementwise(
108
- & Simd :: <* mut u32 , LANES >:: from_exposed_addr ,
109
- & core:: ptr:: from_exposed_addr_mut :: <u32 >,
108
+ & Simd :: <* mut u32 , LANES >:: with_exposed_provenance ,
109
+ & core:: ptr:: with_exposed_provenance_mut :: <u32 >,
110
110
& |_| true ,
111
111
) ;
112
112
}
You can’t perform that action at this time.
0 commit comments