ARM: Fix IEEE-754 sqrt implementation

Older GCC (e.g. 4.9.3) seem to define __ARM_FP even in case soft-float
is used.
This commit is contained in:
Sebastian Huber 2017-03-21 15:47:34 +01:00 committed by Corinna Vinschen
parent baf32fb85f
commit ffbfb332d6
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
* SUCH DAMAGE.
*/
#if __ARM_FP & 0x8
#if (__ARM_FP & 0x8) && !defined(__SOFTFP__)
#include <math.h>
double

View File

@ -24,7 +24,7 @@
* SUCH DAMAGE.
*/
#if __ARM_FP & 0x4
#if (__ARM_FP & 0x4) && !defined(__SOFTFP__)
#include <math.h>
float