Explorar o código

__[mul/div]sf3vfp and __[mul/div]df3vfp only on ARM

Paolo Teti %!s(int64=7) %!d(string=hai) anos
pai
achega
f42b9e0bad
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 2 0
      src/float/div.rs
  2. 2 0
      src/float/mul.rs

+ 2 - 0
src/float/div.rs

@@ -454,10 +454,12 @@ intrinsics! {
         div64(a, b)
     }
 
+    #[cfg(target_arch = "arm")]
     pub extern "C" fn __divsf3vfp(a: f32, b: f32) -> f32 {
         a / b
     }
 
+    #[cfg(target_arch = "arm")]
     pub extern "C" fn __divdf3vfp(a: f64, b: f64) -> f64 {
         a / b
     }

+ 2 - 0
src/float/mul.rs

@@ -189,10 +189,12 @@ intrinsics! {
         mul(a, b)
     }
 
+    #[cfg(target_arch = "arm")]
     pub extern "C" fn __mulsf3vfp(a: f32, b: f32) -> f32 {
         a * b
     }
 
+    #[cfg(target_arch = "arm")]
     pub extern "C" fn __muldf3vfp(a: f64, b: f64) -> f64 {
         a * b
     }