Ver código fonte

arm fabs and sqrt: support single-precision-only fpu variants

Jinliang Li 4 anos atrás
pai
commit
6e98924890
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      src/math/arm/fabs.c
  2. 1 1
      src/math/arm/sqrt.c

+ 1 - 1
src/math/arm/fabs.c

@@ -1,6 +1,6 @@
 #include <math.h>
 
-#if __ARM_PCS_VFP
+#if __ARM_PCS_VFP && __ARM_FP&8
 
 double fabs(double x)
 {

+ 1 - 1
src/math/arm/sqrt.c

@@ -1,6 +1,6 @@
 #include <math.h>
 
-#if __ARM_PCS_VFP || (__VFP_FP__ && !__SOFTFP__)
+#if (__ARM_PCS_VFP || (__VFP_FP__ && !__SOFTFP__)) && (__ARM_FP&8)
 
 double sqrt(double x)
 {