Revert "Use compiler builtins for fabs."

Use of "extern inline" breaks clang build.

This reverts commit d76f16973a.

Change-Id: I995d0d38c3776f5c50b060f16770741c92a2acac
This commit is contained in:
Elliott Hughes
2015-08-24 21:08:13 +00:00
parent d76f16973a
commit c5deb0f883
7 changed files with 68 additions and 81 deletions

View File

@@ -20,8 +20,6 @@
#include <sys/cdefs.h>
#include <limits.h>
#define __BIONIC_MATH_INLINE extern __inline__ __always_inline __attribute__((gnu_inline)) __attribute__((__artificial__))
__BEGIN_DECLS
#pragma GCC visibility push(default)
@@ -163,7 +161,6 @@ double sqrt(double);
double ceil(double);
double fabs(double) __pure2;
__BIONIC_MATH_INLINE double fabs(double x) { return __builtin_fabs(x); }
double floor(double);
double fmod(double, double);
@@ -282,7 +279,6 @@ float sqrtf(float);
float ceilf(float);
float fabsf(float) __pure2;
__BIONIC_MATH_INLINE float fabsf(float x) { return __builtin_fabsf(x); }
float floorf(float);
float fmodf(float, float);
float roundf(float);
@@ -370,7 +366,6 @@ long double exp2l(long double);
long double expl(long double);
long double expm1l(long double);
long double fabsl(long double) __pure2;
__BIONIC_MATH_INLINE long double fabsl(long double x) { return __builtin_fabsl(x); }
long double fdiml(long double, long double);
long double floorl(long double);
long double fmal(long double, long double, long double);