Eina: Fix clang warnings

Use fabs for double values
This commit is contained in:
Jean-Philippe Andre 2015-04-21 18:38:50 +09:00
parent a3897562c5
commit 12b562482e
1 changed files with 2 additions and 2 deletions

View File

@ -65,13 +65,13 @@ static inline double
const double B = 4/M_PI;
const double C = -4/(M_PI*M_PI);
double y = (B * x) + (C * x * fabsf(x));
double y = (B * x) + (C * x * fabs(x));
#ifdef EXTRA_PRECISION
// const float Q = 0.775;
const double P = 0.225;
y = P * (y * fabsf(y) - y) + y; // Q * y + P * y * abs(y)
y = P * (y * fabs(y) - y) + y; // Q * y + P * y * abs(y)
#endif
return y;
}