forked from OSchip/llvm-project
Rename fabs to local_fabs to not conflict with the builtin.
llvm-svn: 200245
This commit is contained in:
parent
35bd952a10
commit
92ce6e83fc
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue