summaryrefslogtreecommitdiff
path: root/src/generic
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/generic
parentf9928b75c8c4a2e6c3f02aafb68c8a569a47ab04 (diff)
eina: rename EINA_{FLT,DBL}_CMP to EINA_{FLT,DBL}_EQ.
Diffstat (limited to 'src/generic')
-rw-r--r--src/generic/evas/xcf/pixelfuncs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/generic/evas/xcf/pixelfuncs.c b/src/generic/evas/xcf/pixelfuncs.c
index a243c79..67b6e72 100644
--- a/src/generic/evas/xcf/pixelfuncs.c
+++ b/src/generic/evas/xcf/pixelfuncs.c
@@ -22,7 +22,7 @@
22 22
23#include <float.h> 23#include <float.h>
24 24
25#define EINA_FLT_CMP(a, b) (fabsf((float)a - (float)b) <= FLT_EPSILON) 25#define EINA_FLT_EQ(a, b) (fabsf((float)a - (float)b) <= FLT_EPSILON)
26 26
27#define RS R_VAL(src + s_idx) 27#define RS R_VAL(src + s_idx)
28#define GS G_VAL(src + s_idx) 28#define GS G_VAL(src + s_idx)
@@ -132,7 +132,7 @@ hls_to_rgb (DATA8 *hue, DATA8 *lightness, DATA8 *saturation)
132 l = *lightness; 132 l = *lightness;
133 s = *saturation; 133 s = *saturation;
134 134
135 if (EINA_FLT_CMP(s, 0)) 135 if (EINA_FLT_EQ(s, 0))
136 { 136 {
137 /* achromatic case */ 137 /* achromatic case */
138 *hue = l; 138 *hue = l;
@@ -188,7 +188,7 @@ rgb_to_hsv (DATA8 *red, DATA8 *green, DATA8 *blue)
188 else 188 else
189 s = 0; 189 s = 0;
190 190
191 if (EINA_FLT_CMP(s, 0)) 191 if (EINA_FLT_EQ(s, 0))
192 h = 0; 192 h = 0;
193 else 193 else
194 { 194 {