Browse Source

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

Jinliang Li 4 years ago
parent
commit
6e98924890
2 changed files with 2 additions and 2 deletions
  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)
 {