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

This commit is contained in:
Jinliang Li 2020-11-20 18:45:03 +08:00 committed by Rich Felker
parent c8c3e341fb
commit 6e98924890
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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)
{