File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,8 @@ mod macros;
4747pub mod int;
4848pub mod float;
4949
50- pub mod mem;
51- // only for the wasm32-unknown-unknown target
52- #[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
5350pub mod math;
51+ pub mod mem;
5452
5553#[ cfg( target_arch = "arm" ) ]
5654pub mod arm;
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ macro_rules! no_mangle {
1414 }
1515}
1616
17+ // only for the wasm32-unknown-unknown target
18+ #[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
1719no_mangle ! {
1820 fn acos( x: f64 ) -> f64 ;
1921 fn asin( x: f64 ) -> f64 ;
@@ -50,3 +52,12 @@ no_mangle! {
5052 fn fma( x: f64 , y: f64 , z: f64 ) -> f64 ;
5153 fn fmaf( x: f32 , y: f32 , z: f32 ) -> f32 ;
5254}
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