diff options
author | Jinliang Li <jinliang.li@linux.alibaba.com> | 2020-11-20 18:45:03 +0800 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-11-29 00:49:24 -0500 |
commit | 6e989248904bc6576ff13a998986153b97a58172 (patch) | |
tree | 4eb3e7d4f3825e58e3dd2efdcf1ef218c8cdf3d6 /src | |
parent | c8c3e341fbcbac865d42aea6a711a0544792d655 (diff) | |
download | musl-6e989248904bc6576ff13a998986153b97a58172.tar.gz musl-6e989248904bc6576ff13a998986153b97a58172.tar.bz2 musl-6e989248904bc6576ff13a998986153b97a58172.tar.xz musl-6e989248904bc6576ff13a998986153b97a58172.zip |
arm fabs and sqrt: support single-precision-only fpu variants
Diffstat (limited to 'src')
-rw-r--r-- | src/math/arm/fabs.c | 2 | ||||
-rw-r--r-- | 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 <math.h> -#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 <math.h> -#if __ARM_PCS_VFP || (__VFP_FP__ && !__SOFTFP__) +#if (__ARM_PCS_VFP || (__VFP_FP__ && !__SOFTFP__)) && (__ARM_FP&8) double sqrt(double x) { |