@@ -15,11 +15,8 @@ macro_rules! no_mangle {
15
15
}
16
16
17
17
#[ cfg( any(
18
- all(
19
- target_family = "wasm" ,
20
- target_os = "unknown" ,
21
- not( target_env = "wasi" )
22
- ) ,
18
+ all( target_family = "wasm" , target_os = "unknown" , not( target_env = "wasi" ) ) ,
19
+ target_os = "xous" ,
23
20
all( target_arch = "x86_64" , target_os = "uefi" ) ,
24
21
all( target_arch = "xtensa" , target_os = "none" ) ,
25
22
all( target_vendor = "fortanix" , target_env = "sgx" )
@@ -65,11 +62,8 @@ no_mangle! {
65
62
}
66
63
67
64
#[ cfg( any(
68
- all(
69
- target_family = "wasm" ,
70
- target_os = "unknown" ,
71
- not( target_env = "wasi" )
72
- ) ,
65
+ all( target_family = "wasm" , target_os = "unknown" , not( target_env = "wasi" ) ) ,
66
+ target_os = "xous" ,
73
67
all( target_arch = "xtensa" , target_os = "none" ) ,
74
68
all( target_vendor = "fortanix" , target_env = "sgx" )
75
69
) ) ]
@@ -93,7 +87,13 @@ no_mangle! {
93
87
fn tanf( n: f32 ) -> f32 ;
94
88
}
95
89
96
- #[ cfg( all( target_vendor = "fortanix" , target_env = "sgx" ) ) ]
90
+ #[ cfg( target_os = "xous" ) ]
91
+ no_mangle ! {
92
+ fn sqrtf( x: f32 ) -> f32 ;
93
+ fn sqrt( x: f64 ) -> f64 ;
94
+ }
95
+
96
+ #[ cfg( any( all( target_vendor = "fortanix" , target_env = "sgx" ) , target_os = "xous" ) ) ]
97
97
no_mangle ! {
98
98
fn ceil( x: f64 ) -> f64 ;
99
99
fn ceilf( x: f32 ) -> f32 ;
0 commit comments