4
4
use core:: intrinsics;
5
5
6
6
// iOS symbols have a leading underscore.
7
- #[ cfg( target_os = "ios" ) ]
7
+ #[ cfg( any ( target_os = "ios" , target_os = "visionos" ) ) ]
8
8
macro_rules! bl {
9
9
( $func: literal) => {
10
10
concat!( "bl _" , $func)
11
11
} ;
12
12
}
13
- #[ cfg( not( target_os = "ios" ) ) ]
13
+ #[ cfg( not( any ( target_os = "ios" , target_os = "visionos" ) ) ) ]
14
14
macro_rules! bl {
15
15
( $func: literal) => {
16
16
concat!( "bl " , $func)
@@ -89,13 +89,13 @@ intrinsics! {
89
89
// FIXME: The `*4` and `*8` variants should be defined as aliases.
90
90
91
91
#[ weak]
92
- #[ cfg( not( target_os = "ios" ) ) ]
92
+ #[ cfg( not( any ( target_os = "ios" , target_os = "visionos" ) ) ) ]
93
93
pub unsafe extern "aapcs" fn __aeabi_memcpy( dest: * mut u8 , src: * const u8 , n: usize ) {
94
94
crate :: mem:: memcpy( dest, src, n) ;
95
95
}
96
96
97
97
#[ weak]
98
- #[ cfg( not( target_os = "ios" ) ) ]
98
+ #[ cfg( not( any ( target_os = "ios" , target_os = "visionos" ) ) ) ]
99
99
pub unsafe extern "aapcs" fn __aeabi_memcpy4( dest: * mut u8 , src: * const u8 , n: usize ) {
100
100
// We are guaranteed 4-alignment, so accessing at u32 is okay.
101
101
let mut dest = dest as * mut u32 ;
@@ -113,38 +113,38 @@ intrinsics! {
113
113
}
114
114
115
115
#[ weak]
116
- #[ cfg( not( target_os = "ios" ) ) ]
116
+ #[ cfg( not( any ( target_os = "ios" , target_os = "visionos" ) ) ) ]
117
117
pub unsafe extern "aapcs" fn __aeabi_memcpy8( dest: * mut u8 , src: * const u8 , n: usize ) {
118
118
__aeabi_memcpy4( dest, src, n) ;
119
119
}
120
120
121
121
#[ weak]
122
- #[ cfg( not( target_os = "ios" ) ) ]
122
+ #[ cfg( not( any ( target_os = "ios" , target_os = "visionos" ) ) ) ]
123
123
pub unsafe extern "aapcs" fn __aeabi_memmove( dest: * mut u8 , src: * const u8 , n: usize ) {
124
124
crate :: mem:: memmove( dest, src, n) ;
125
125
}
126
126
127
127
#[ weak]
128
- #[ cfg( not( any( target_os = "ios" , target_env = "msvc" ) ) ) ]
128
+ #[ cfg( not( any( target_os = "ios" , target_os = "visionos" , target_env = "msvc" ) ) ) ]
129
129
pub unsafe extern "aapcs" fn __aeabi_memmove4( dest: * mut u8 , src: * const u8 , n: usize ) {
130
130
__aeabi_memmove( dest, src, n) ;
131
131
}
132
132
133
133
#[ weak]
134
- #[ cfg( not( any( target_os = "ios" , target_env = "msvc" ) ) ) ]
134
+ #[ cfg( not( any( target_os = "ios" , target_os = "visionos" , target_env = "msvc" ) ) ) ]
135
135
pub unsafe extern "aapcs" fn __aeabi_memmove8( dest: * mut u8 , src: * const u8 , n: usize ) {
136
136
__aeabi_memmove( dest, src, n) ;
137
137
}
138
138
139
139
#[ weak]
140
- #[ cfg( not( target_os = "ios" ) ) ]
140
+ #[ cfg( not( any ( target_os = "ios" , target_os = "visionos" ) ) ) ]
141
141
pub unsafe extern "aapcs" fn __aeabi_memset( dest: * mut u8 , n: usize , c: i32 ) {
142
142
// Note the different argument order
143
143
crate :: mem:: memset( dest, c, n) ;
144
144
}
145
145
146
146
#[ weak]
147
- #[ cfg( not( target_os = "ios" ) ) ]
147
+ #[ cfg( not( any ( target_os = "ios" , target_os = "visionos" ) ) ) ]
148
148
pub unsafe extern "aapcs" fn __aeabi_memset4( dest: * mut u8 , n: usize , c: i32 ) {
149
149
let mut dest = dest as * mut u32 ;
150
150
let mut n = n;
@@ -162,25 +162,25 @@ intrinsics! {
162
162
}
163
163
164
164
#[ weak]
165
- #[ cfg( not( target_os = "ios" ) ) ]
165
+ #[ cfg( not( any ( target_os = "ios" , target_os = "visionos" ) ) ) ]
166
166
pub unsafe extern "aapcs" fn __aeabi_memset8( dest: * mut u8 , n: usize , c: i32 ) {
167
167
__aeabi_memset4( dest, n, c) ;
168
168
}
169
169
170
170
#[ weak]
171
- #[ cfg( not( target_os = "ios" ) ) ]
171
+ #[ cfg( not( any ( target_os = "ios" , target_os = "visionos" ) ) ) ]
172
172
pub unsafe extern "aapcs" fn __aeabi_memclr( dest: * mut u8 , n: usize ) {
173
173
__aeabi_memset( dest, n, 0 ) ;
174
174
}
175
175
176
176
#[ weak]
177
- #[ cfg( not( any( target_os = "ios" , target_env = "msvc" ) ) ) ]
177
+ #[ cfg( not( any( target_os = "ios" , target_os = "visionos" , target_env = "msvc" ) ) ) ]
178
178
pub unsafe extern "aapcs" fn __aeabi_memclr4( dest: * mut u8 , n: usize ) {
179
179
__aeabi_memset4( dest, n, 0 ) ;
180
180
}
181
181
182
182
#[ weak]
183
- #[ cfg( not( any( target_os = "ios" , target_env = "msvc" ) ) ) ]
183
+ #[ cfg( not( any( target_os = "ios" , target_os = "visionos" , target_env = "msvc" ) ) ) ]
184
184
pub unsafe extern "aapcs" fn __aeabi_memclr8( dest: * mut u8 , n: usize ) {
185
185
__aeabi_memset4( dest, n, 0 ) ;
186
186
}
0 commit comments