summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-21 18:38:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-04-21 20:11:01 +0900
commit12b562482e5709ea1f82762b5be775b9bd8a24ed (patch)
tree375666e702e99aafd630d5ef9aaa54900b28248a /src/lib/eina
parenta3897562c565d1b40e2fcb8d0c412da344dbe7db (diff)
Eina: Fix clang warnings
Use fabs for double values
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eina/eina_matrix.c b/src/lib/eina/eina_matrix.c
index 61ee824b7a..468acf58fd 100644
--- a/src/lib/eina/eina_matrix.c
+++ b/src/lib/eina/eina_matrix.c
@@ -65,13 +65,13 @@ static inline double
65 const double B = 4/M_PI; 65 const double B = 4/M_PI;
66 const double C = -4/(M_PI*M_PI); 66 const double C = -4/(M_PI*M_PI);
67 67
68 double y = (B * x) + (C * x * fabsf(x)); 68 double y = (B * x) + (C * x * fabs(x));
69 69
70#ifdef EXTRA_PRECISION 70#ifdef EXTRA_PRECISION
71 // const float Q = 0.775; 71 // const float Q = 0.775;
72 const double P = 0.225; 72 const double P = 0.225;
73 73
74 y = P * (y * fabsf(y) - y) + y; // Q * y + P * y * abs(y) 74 y = P * (y * fabs(y) - y) + y; // Q * y + P * y * abs(y)
75#endif 75#endif
76 return y; 76 return y;
77} 77}