File tree 3 files changed +16
-16
lines changed
3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ pub trait SimdConstPtr: Copy + Sealed {
51
51
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
52
52
53
53
/// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
54
- /// in [`Self::from_exposed_addr `].
54
+ /// in [`Self::with_exposed_provenance `].
55
55
fn expose_addr ( self ) -> Self :: Usize ;
56
56
57
57
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
58
58
///
59
- /// Equivalent to calling [`core::ptr::from_exposed_addr `] on each element.
60
- fn from_exposed_addr ( addr : Self :: Usize ) -> Self ;
59
+ /// Equivalent to calling [`core::ptr::with_exposed_provenance `] on each element.
60
+ fn with_exposed_provenance ( addr : Self :: Usize ) -> Self ;
61
61
62
62
/// Calculates the offset from a pointer using wrapping arithmetic.
63
63
///
@@ -137,9 +137,9 @@ where
137
137
}
138
138
139
139
#[ inline]
140
- fn from_exposed_addr ( addr : Self :: Usize ) -> Self {
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 @@ -48,13 +48,13 @@ pub trait SimdMutPtr: Copy + Sealed {
48
48
fn with_addr ( self , addr : Self :: Usize ) -> Self ;
49
49
50
50
/// Gets the "address" portion of the pointer, and "exposes" the provenance part for future use
51
- /// in [`Self::from_exposed_addr `].
51
+ /// in [`Self::with_exposed_provenance `].
52
52
fn expose_addr ( self ) -> Self :: Usize ;
53
53
54
54
/// Convert an address back to a pointer, picking up a previously "exposed" provenance.
55
55
///
56
- /// Equivalent to calling [`core::ptr::from_exposed_addr_mut `] on each element.
57
- fn from_exposed_addr ( addr : Self :: Usize ) -> Self ;
56
+ /// Equivalent to calling [`core::ptr::with_exposed_provenance_mut `] on each element.
57
+ fn with_exposed_provenance ( addr : Self :: Usize ) -> Self ;
58
58
59
59
/// Calculates the offset from a pointer using wrapping arithmetic.
60
60
///
@@ -134,9 +134,9 @@ where
134
134
}
135
135
136
136
#[ inline]
137
- fn from_exposed_addr ( addr : Self :: Usize ) -> Self {
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]
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