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:
parent
baf32fb85f
commit
ffbfb332d6
|
@ -24,7 +24,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if __ARM_FP & 0x8
|
||||
#if (__ARM_FP & 0x8) && !defined(__SOFTFP__)
|
||||
#include <math.h>
|
||||
|
||||
double
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if __ARM_FP & 0x4
|
||||
#if (__ARM_FP & 0x4) && !defined(__SOFTFP__)
|
||||
#include <math.h>
|
||||
|
||||
float
|
||||
|
|
Loading…
Reference in New Issue