diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2017-01-06 09:57:46 -0800 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2017-01-06 15:58:46 -0800 |
commit | 8f1c071d6adbf6f8e2002eeeabdc7f3d7be9ef22 (patch) | |
tree | 17bddaa85bcdead8807053b009d1adf1c9eda71c /src/generic | |
parent | f9928b75c8c4a2e6c3f02aafb68c8a569a47ab04 (diff) | |
download | efl-8f1c071d6adbf6f8e2002eeeabdc7f3d7be9ef22.tar.gz |
eina: rename EINA_{FLT,DBL}_CMP to EINA_{FLT,DBL}_EQ.
Diffstat (limited to 'src/generic')
-rw-r--r-- | src/generic/evas/xcf/pixelfuncs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/generic/evas/xcf/pixelfuncs.c b/src/generic/evas/xcf/pixelfuncs.c index a243c79b55..67b6e72f75 100644 --- a/src/generic/evas/xcf/pixelfuncs.c +++ b/src/generic/evas/xcf/pixelfuncs.c @@ -22,7 +22,7 @@ #include <float.h> -#define EINA_FLT_CMP(a, b) (fabsf((float)a - (float)b) <= FLT_EPSILON) +#define EINA_FLT_EQ(a, b) (fabsf((float)a - (float)b) <= FLT_EPSILON) #define RS R_VAL(src + s_idx) #define GS G_VAL(src + s_idx) @@ -132,7 +132,7 @@ hls_to_rgb (DATA8 *hue, DATA8 *lightness, DATA8 *saturation) l = *lightness; s = *saturation; - if (EINA_FLT_CMP(s, 0)) + if (EINA_FLT_EQ(s, 0)) { /* achromatic case */ *hue = l; @@ -188,7 +188,7 @@ rgb_to_hsv (DATA8 *red, DATA8 *green, DATA8 *blue) else s = 0; - if (EINA_FLT_CMP(s, 0)) + if (EINA_FLT_EQ(s, 0)) h = 0; else { |