From 6e989248904bc6576ff13a998986153b97a58172 Mon Sep 17 00:00:00 2001 From: Jinliang Li Date: Fri, 20 Nov 2020 18:45:03 +0800 Subject: arm fabs and sqrt: support single-precision-only fpu variants --- src/math/arm/fabs.c | 2 +- src/math/arm/sqrt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math/arm/fabs.c b/src/math/arm/fabs.c index f890520a..6e1d367d 100644 --- a/src/math/arm/fabs.c +++ b/src/math/arm/fabs.c @@ -1,6 +1,6 @@ #include -#if __ARM_PCS_VFP +#if __ARM_PCS_VFP && __ARM_FP&8 double fabs(double x) { diff --git a/src/math/arm/sqrt.c b/src/math/arm/sqrt.c index 874af960..567e2e91 100644 --- a/src/math/arm/sqrt.c +++ b/src/math/arm/sqrt.c @@ -1,6 +1,6 @@ #include -#if __ARM_PCS_VFP || (__VFP_FP__ && !__SOFTFP__) +#if (__ARM_PCS_VFP || (__VFP_FP__ && !__SOFTFP__)) && (__ARM_FP&8) double sqrt(double x) { -- cgit v1.2.1