summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-01-06 09:57:46 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-01-06 15:58:46 -0800
commit8f1c071d6adbf6f8e2002eeeabdc7f3d7be9ef22 (patch)
tree17bddaa85bcdead8807053b009d1adf1c9eda71c /src/lib/ethumb
parentf9928b75c8c4a2e6c3f02aafb68c8a569a47ab04 (diff)
eina: rename EINA_{FLT,DBL}_CMP to EINA_{FLT,DBL}_EQ.
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/ethumb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index f7b4b467f5..ef18564ff4 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -1151,7 +1151,7 @@ ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h)
1151 *w = e->tw; 1151 *w = e->tw;
1152 *h = e->th; 1152 *h = e->th;
1153 1153
1154 if (EINA_FLT_CMP(ia, 0)) 1154 if (EINA_FLT_EQ(ia, 0))
1155 return; 1155 return;
1156 1156
1157 a = e->tw / (float)e->th; 1157 a = e->tw / (float)e->th;
@@ -1190,7 +1190,7 @@ ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw,
1190 *fx = 0; 1190 *fx = 0;
1191 *fy = 0; 1191 *fy = 0;
1192 1192
1193 if (EINA_FLT_CMP(ia, 0)) 1193 if (EINA_FLT_EQ(ia, 0))
1194 return; 1194 return;
1195 1195
1196 a = e->tw / (float)e->th; 1196 a = e->tw / (float)e->th;
@@ -1739,7 +1739,7 @@ ethumb_dup(const Ethumb *e)
1739 if (e1->Param != e2->Param) \ 1739 if (e1->Param != e2->Param) \
1740 return EINA_TRUE; 1740 return EINA_TRUE;
1741#define CHECK_FLT_DELTA(Param) \ 1741#define CHECK_FLT_DELTA(Param) \
1742 if (!EINA_FLT_CMP(e1->Param, e2->Param)) \ 1742 if (!EINA_FLT_EQ(e1->Param, e2->Param)) \
1743 return EINA_TRUE; 1743 return EINA_TRUE;
1744 1744
1745EAPI Eina_Bool 1745EAPI Eina_Bool
@@ -1780,7 +1780,7 @@ ethumb_length(EINA_UNUSED const void *key)
1780 return e1->Param - e2->Param; 1780 return e1->Param - e2->Param;
1781 1781
1782#define CMP_FLT_PARAM(Param) \ 1782#define CMP_FLT_PARAM(Param) \
1783 if (!EINA_FLT_CMP(e1->Param, e2->Param)) \ 1783 if (!EINA_FLT_EQ(e1->Param, e2->Param)) \
1784 return e1->Param - e2->Param; 1784 return e1->Param - e2->Param;
1785 1785
1786EAPI int 1786EAPI int