Rename fabs to local_fabs to not conflict with the builtin.

llvm-svn: 200245
This commit is contained in:
Joerg Sonnenberger 2014-01-27 20:09:03 +00:00
parent 35bd952a10
commit 92ce6e83fc
3 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ typedef union {
(((((xHi)*(yHi) - (xy)) + (xHi)*(yLo)) + (xLo)*(yHi)) + (xLo)*(yLo))
static inline double __attribute__((always_inline))
fabs(double x)
local_fabs(double x)
{
doublebits result = { .d = x };
result.x &= UINT64_C(0x7fffffffffffffff);

View File

@ -55,7 +55,7 @@ long double __gcc_qadd(long double x, long double y)
h = A + (B - (A + B));
t = a + (b - (a + b));
if (fabs(A) <= fabs(B))
if (local_fabs(A) <= local_fabs(B))
w = (a + b) + h;
else
w = (a + b) + H;
@ -64,7 +64,7 @@ long double __gcc_qadd(long double x, long double y)
Y = (A + B) - W;
Y += w;
if (fabs(a) <= fabs(b))
if (local_fabs(a) <= local_fabs(b))
w = t + Y;
else
w = T + Y;

View File

@ -55,7 +55,7 @@ long double __gcc_qsub(long double x, long double y)
h = A + (B - (A + B));
t = a + (b - (a + b));
if (fabs(A) <= fabs(B))
if (local_fabs(A) <= local_fabs(B))
w = (a + b) + h;
else
w = (a + b) + H;
@ -64,7 +64,7 @@ long double __gcc_qsub(long double x, long double y)
Y = (A + B) - W;
Y += w;
if (fabs(a) <= fabs(b))
if (local_fabs(a) <= local_fabs(b))
w = t + Y;
else
w = T + Y;