@@ -20,24 +20,17 @@ macro_rules! no_mangle {
20
20
target_os = "unknown" ,
21
21
not( target_env = "wasi" )
22
22
) ,
23
+ all( target_arch = "x86_64" , target_os = "uefi" ) ,
23
24
all( target_vendor = "fortanix" , target_env = "sgx" )
24
25
) ) ]
25
26
no_mangle ! {
26
27
fn acos( x: f64 ) -> f64 ;
27
28
fn asin( x: f64 ) -> f64 ;
28
- fn atan( x: f64 ) -> f64 ;
29
- fn atan2( x: f64 , y: f64 ) -> f64 ;
30
29
fn cbrt( x: f64 ) -> f64 ;
31
- fn cosh( x: f64 ) -> f64 ;
32
30
fn expm1( x: f64 ) -> f64 ;
33
31
fn hypot( x: f64 , y: f64 ) -> f64 ;
34
- fn log1p( x: f64 ) -> f64 ;
35
- fn sinh( x: f64 ) -> f64 ;
36
32
fn tan( x: f64 ) -> f64 ;
37
- fn tanh( x: f64 ) -> f64 ;
38
33
fn cos( x: f64 ) -> f64 ;
39
- fn cosf( x: f32 ) -> f32 ;
40
- fn exp( x: f64 ) -> f64 ;
41
34
fn expf( x: f32 ) -> f32 ;
42
35
fn log2( x: f64 ) -> f64 ;
43
36
fn log2f( x: f32 ) -> f32 ;
@@ -52,33 +45,52 @@ no_mangle! {
52
45
fn round( x: f64 ) -> f64 ;
53
46
fn roundf( x: f32 ) -> f32 ;
54
47
fn sin( x: f64 ) -> f64 ;
55
- fn sinf( x: f32 ) -> f32 ;
56
48
fn pow( x: f64 , y: f64 ) -> f64 ;
57
49
fn powf( x: f32 , y: f32 ) -> f32 ;
58
- fn exp2( x: f64 ) -> f64 ;
59
- fn exp2f( x: f32 ) -> f32 ;
60
50
fn fmod( x: f64 , y: f64 ) -> f64 ;
61
51
fn fmodf( x: f32 , y: f32 ) -> f32 ;
62
- fn fma( x: f64 , y: f64 , z: f64 ) -> f64 ;
63
- fn fmaf( x: f32 , y: f32 , z: f32 ) -> f32 ;
64
52
fn acosf( n: f32 ) -> f32 ;
65
- fn asinf( n: f32 ) -> f32 ;
66
53
fn atan2f( a: f32 , b: f32 ) -> f32 ;
67
54
fn atanf( n: f32 ) -> f32 ;
68
- fn cbrtf( n: f32 ) -> f32 ;
69
55
fn coshf( n: f32 ) -> f32 ;
70
56
fn expm1f( n: f32 ) -> f32 ;
71
57
fn fdim( a: f64 , b: f64 ) -> f64 ;
72
58
fn fdimf( a: f32 , b: f32 ) -> f32 ;
73
- fn hypotf( x: f32 , y: f32 ) -> f32 ;
74
59
fn log1pf( n: f32 ) -> f32 ;
75
60
fn sinhf( n: f32 ) -> f32 ;
76
- fn tanf( n: f32 ) -> f32 ;
77
61
fn tanhf( n: f32 ) -> f32 ;
78
62
fn ldexp( f: f64 , n: i32 ) -> f64 ;
79
63
fn ldexpf( f: f32 , n: i32 ) -> f32 ;
80
64
}
81
65
66
+ #[ cfg( any(
67
+ all(
68
+ target_arch = "wasm32" ,
69
+ target_os = "unknown" ,
70
+ not( target_env = "wasi" )
71
+ ) ,
72
+ all( target_vendor = "fortanix" , target_env = "sgx" )
73
+ ) ) ]
74
+ no_mangle ! {
75
+ fn atan( x: f64 ) -> f64 ;
76
+ fn atan2( x: f64 , y: f64 ) -> f64 ;
77
+ fn cosh( x: f64 ) -> f64 ;
78
+ fn log1p( x: f64 ) -> f64 ;
79
+ fn sinh( x: f64 ) -> f64 ;
80
+ fn tanh( x: f64 ) -> f64 ;
81
+ fn cosf( x: f32 ) -> f32 ;
82
+ fn exp( x: f64 ) -> f64 ;
83
+ fn sinf( x: f32 ) -> f32 ;
84
+ fn exp2( x: f64 ) -> f64 ;
85
+ fn exp2f( x: f32 ) -> f32 ;
86
+ fn fma( x: f64 , y: f64 , z: f64 ) -> f64 ;
87
+ fn fmaf( x: f32 , y: f32 , z: f32 ) -> f32 ;
88
+ fn asinf( n: f32 ) -> f32 ;
89
+ fn cbrtf( n: f32 ) -> f32 ;
90
+ fn hypotf( x: f32 , y: f32 ) -> f32 ;
91
+ fn tanf( n: f32 ) -> f32 ;
92
+ }
93
+
82
94
#[ cfg( all( target_vendor = "fortanix" , target_env = "sgx" ) ) ]
83
95
no_mangle ! {
84
96
fn ceil( x: f64 ) -> f64 ;
0 commit comments