File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ mod macros;
47
47
pub mod int;
48
48
pub mod float;
49
49
50
- pub mod mem;
51
- // only for the wasm32-unknown-unknown target
52
- #[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
50
+ #[ cfg( any( all( target_arch = "wasm32" , target_os = "unknown" ) ,
51
+ all( target_arch = "arm" , target_os = "none" ) ) ) ]
53
52
pub mod math;
53
+ pub mod mem;
54
54
55
55
#[ cfg( target_arch = "arm" ) ]
56
56
pub mod arm;
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ macro_rules! no_mangle {
14
14
}
15
15
}
16
16
17
+ // only for the wasm32-unknown-unknown target
18
+ #[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
17
19
no_mangle ! {
18
20
fn acos( x: f64 ) -> f64 ;
19
21
fn asin( x: f64 ) -> f64 ;
@@ -50,3 +52,12 @@ no_mangle! {
50
52
fn fma( x: f64 , y: f64 , z: f64 ) -> f64 ;
51
53
fn fmaf( x: f32 , y: f32 , z: f32 ) -> f32 ;
52
54
}
55
+
56
+ // only for the thumb*-none-eabi* targets
57
+ #[ cfg( all( target_arch = "arm" , target_os = "none" ) ) ]
58
+ no_mangle ! {
59
+ // `f64 % f64`
60
+ fn fmod( x: f64 , y: f64 ) -> f64 ;
61
+ // `f32 % f32`
62
+ fn fmodf( x: f32 , y: f32 ) -> f32 ;
63
+ }
You can’t perform that action at this time.
0 commit comments