summaryrefslogtreecommitdiff
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
parentf9928b75c8c4a2e6c3f02aafb68c8a569a47ab04 (diff)
eina: rename EINA_{FLT,DBL}_CMP to EINA_{FLT,DBL}_EQ.
Diffstat (limited to '')
-rw-r--r--src/bin/edje/edje_external_inspector.c8
-rw-r--r--src/bin/edje/edje_svg_loader.c4
-rw-r--r--src/bin/elementary/test_bg.c8
-rw-r--r--src/bin/elementary/test_flip_page.c2
-rw-r--r--src/bin/evas/evas_cserve2_shm_debug.c4
-rw-r--r--src/generic/evas/xcf/pixelfuncs.c6
-rw-r--r--src/lib/ecore/ecore_anim.c10
-rw-r--r--src/lib/ecore/ecore_main.c2
-rw-r--r--src/lib/ecore/ecore_pipe.c2
-rw-r--r--src/lib/ecore/ecore_poller.c2
-rw-r--r--src/lib/ecore/ecore_thread.c2
-rw-r--r--src/lib/ecore_evas/ecore_evas.c6
-rw-r--r--src/lib/ecore_fb/ecore_fb_li.c4
-rw-r--r--src/lib/ecore_input_evas/ecore_input_evas.c2
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_linear.c2
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_radial.c4
-rw-r--r--src/lib/ector/software/ector_software_gradient.c2
-rw-r--r--src/lib/edje/edje_load.c4
-rw-r--r--src/lib/edje/edje_private.h4
-rw-r--r--src/lib/edje/edje_program.c4
-rw-r--r--src/lib/edje/edje_textblock_styles.c2
-rw-r--r--src/lib/edje/edje_util.c2
-rw-r--r--src/lib/efl/interfaces/efl_gfx_path.c16
-rw-r--r--src/lib/efreet/efreet_icon.c2
-rw-r--r--src/lib/eina/eina_bezier.c8
-rw-r--r--src/lib/eina/eina_matrix.c90
-rw-r--r--src/lib/eina/eina_quaternion.c22
-rw-r--r--src/lib/eina/eina_util.h6
-rw-r--r--src/lib/elementary/efl_ui_box_layout.c2
-rw-r--r--src/lib/elementary/efl_ui_image.c2
-rw-r--r--src/lib/elementary/elc_multibuttonentry.c6
-rw-r--r--src/lib/elementary/elc_player.c6
-rw-r--r--src/lib/elementary/elc_popup.c22
-rw-r--r--src/lib/elementary/elm_actionslider.c40
-rw-r--r--src/lib/elementary/elm_button.c4
-rw-r--r--src/lib/elementary/elm_cnp.c2
-rw-r--r--src/lib/elementary/elm_map.c2
-rw-r--r--src/lib/elementary/elm_panes.c4
-rw-r--r--src/lib/elementary/elm_photocam.c8
-rw-r--r--src/lib/elementary/elm_progressbar.c2
-rw-r--r--src/lib/elementary/elm_scroller.c2
-rw-r--r--src/lib/elementary/elm_thumb.c2
-rw-r--r--src/lib/embryo/embryo_float.c12
-rw-r--r--src/lib/emotion/emotion_smart.c14
-rw-r--r--src/lib/ethumb/ethumb.c8
-rw-r--r--src/lib/evas/cache/evas_cache_image.c2
-rw-r--r--src/lib/evas/cache2/evas_cache2.c2
-rw-r--r--src/lib/evas/canvas/efl_canvas_image.c2
-rw-r--r--src/lib/evas/canvas/efl_input_pointer.c2
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_mesh.c4
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_node.c6
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_primitive.c4
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_scene.c2
-rw-r--r--src/lib/evas/canvas/evas_events.c8
-rw-r--r--src/lib/evas/canvas/evas_filter_mixin.c6
-rw-r--r--src/lib/evas/canvas/evas_map.c10
-rw-r--r--src/lib/evas/canvas/evas_object_box.c8
-rw-r--r--src/lib/evas/canvas/evas_object_image.c56
-rw-r--r--src/lib/evas/canvas/evas_object_main.c14
-rw-r--r--src/lib/evas/canvas/evas_object_table.c4
-rw-r--r--src/lib/evas/canvas/evas_object_text.c14
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c10
-rw-r--r--src/lib/evas/canvas/evas_object_textgrid.c2
-rw-r--r--src/lib/evas/common/evas_convert_color.c2
-rw-r--r--src/lib/evas/cserve2/evas_cs2_client.c4
-rw-r--r--src/lib/evas/include/evas_3d_utils.h108
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c2
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c10
-rw-r--r--src/modules/ecore_evas/engines/x/ecore_evas_x.c2
-rw-r--r--src/modules/emotion/gstreamer1/emotion_sink.c2
-rw-r--r--src/modules/emotion/xine/emotion_xine.c4
-rw-r--r--src/static_libs/triangulator/triangulator_stroker.c30
-rw-r--r--src/tests/eina/eina_test_matrix.c320
-rw-r--r--src/tests/eina/eina_test_quad.c48
-rw-r--r--src/tests/eina/eina_test_quaternion.c34
-rw-r--r--src/tests/eina/eina_test_str.c2
-rw-r--r--src/tests/eina/eina_test_xattr.c2
-rw-r--r--src/tests/eio/eio_test_xattr.c2
78 files changed, 549 insertions, 547 deletions
diff --git a/src/bin/edje/edje_external_inspector.c b/src/bin/edje/edje_external_inspector.c
index c770bbe4d2..5fd8e5e5ee 100644
--- a/src/bin/edje/edje_external_inspector.c
+++ b/src/bin/edje/edje_external_inspector.c
@@ -114,7 +114,7 @@ _param_value_str_get(const Edje_External_Type *type, const Edje_External_Param_I
114 return buf; 114 return buf;
115 115
116 case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE: 116 case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
117 if (EINA_DBL_CMP(param->info.d.def, EDJE_EXTERNAL_DOUBLE_UNSET)) return NULL; 117 if (EINA_DBL_EQ(param->info.d.def, EDJE_EXTERNAL_DOUBLE_UNSET)) return NULL;
118 snprintf(buf, buflen, "%g", param->info.d.def); 118 snprintf(buf, buflen, "%g", param->info.d.def);
119 return buf; 119 return buf;
120 120
@@ -219,17 +219,17 @@ _param_extra_details(const Edje_External_Type *type, const Edje_External_Param_I
219 break; 219 break;
220 220
221 case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE: 221 case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
222 if (EINA_DBL_CMP(param->info.d.min, EDJE_EXTERNAL_DOUBLE_UNSET)) 222 if (EINA_DBL_EQ(param->info.d.min, EDJE_EXTERNAL_DOUBLE_UNSET))
223 { 223 {
224 if (machine) printf("MIN: %g\n", param->info.d.min); 224 if (machine) printf("MIN: %g\n", param->info.d.min);
225 else printf(", min: %g", param->info.d.min); 225 else printf(", min: %g", param->info.d.min);
226 } 226 }
227 if (EINA_DBL_CMP(param->info.d.max, EDJE_EXTERNAL_DOUBLE_UNSET)) 227 if (EINA_DBL_EQ(param->info.d.max, EDJE_EXTERNAL_DOUBLE_UNSET))
228 { 228 {
229 if (machine) printf("MAX: %g\n", param->info.d.max); 229 if (machine) printf("MAX: %g\n", param->info.d.max);
230 else printf(", max: %g", param->info.d.max); 230 else printf(", max: %g", param->info.d.max);
231 } 231 }
232 if (EINA_DBL_CMP(param->info.d.step, EDJE_EXTERNAL_DOUBLE_UNSET)) 232 if (EINA_DBL_EQ(param->info.d.step, EDJE_EXTERNAL_DOUBLE_UNSET))
233 { 233 {
234 if (machine) printf("STEP: %g\n", param->info.d.step); 234 if (machine) printf("STEP: %g\n", param->info.d.step);
235 else printf(", step: %g", param->info.d.step); 235 else printf(", step: %g", param->info.d.step);
diff --git a/src/bin/edje/edje_svg_loader.c b/src/bin/edje/edje_svg_loader.c
index 0d8c5e5f68..beafb48a59 100644
--- a/src/bin/edje/edje_svg_loader.c
+++ b/src/bin/edje/edje_svg_loader.c
@@ -1233,8 +1233,8 @@ _attr_parse_rect_node(void *data, const char *key, const char *value)
1233 _parse_style_attr(node, key, value); 1233 _parse_style_attr(node, key, value);
1234 } 1234 }
1235 1235
1236 if (!EINA_DBL_CMP(rect->rx, 0) && EINA_DBL_CMP(rect->ry, 0)) rect->ry = rect->rx; 1236 if (!EINA_DBL_EQ(rect->rx, 0) && EINA_DBL_EQ(rect->ry, 0)) rect->ry = rect->rx;
1237 if (!EINA_DBL_CMP(rect->ry, 0) && EINA_DBL_CMP(rect->rx, 0)) rect->rx = rect->ry; 1237 if (!EINA_DBL_EQ(rect->ry, 0) && EINA_DBL_EQ(rect->rx, 0)) rect->rx = rect->ry;
1238 1238
1239 return EINA_TRUE; 1239 return EINA_TRUE;
1240} 1240}
diff --git a/src/bin/elementary/test_bg.c b/src/bin/elementary/test_bg.c
index bb6b1197a0..300dfd9dc0 100644
--- a/src/bin/elementary/test_bg.c
+++ b/src/bin/elementary/test_bg.c
@@ -47,13 +47,13 @@ _cb_color_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED)
47 double val = 0.0; 47 double val = 0.0;
48 48
49 val = elm_spinner_value_get(obj); 49 val = elm_spinner_value_get(obj);
50 if (EINA_DBL_CMP(val, 1.0)) 50 if (EINA_DBL_EQ(val, 1.0))
51 elm_bg_color_set(o_bg, 255, 255, 255); 51 elm_bg_color_set(o_bg, 255, 255, 255);
52 else if (EINA_DBL_CMP(val, 2.0)) 52 else if (EINA_DBL_EQ(val, 2.0))
53 elm_bg_color_set(o_bg, 255, 0, 0); 53 elm_bg_color_set(o_bg, 255, 0, 0);
54 else if (EINA_DBL_CMP(val, 3.0)) 54 else if (EINA_DBL_EQ(val, 3.0))
55 elm_bg_color_set(o_bg, 0, 0, 255); 55 elm_bg_color_set(o_bg, 0, 0, 255);
56 else if (EINA_DBL_CMP(val, 4.0)) 56 else if (EINA_DBL_EQ(val, 4.0))
57 elm_bg_color_set(o_bg, 0, 255, 0); 57 elm_bg_color_set(o_bg, 0, 255, 0);
58} 58}
59 59
diff --git a/src/bin/elementary/test_flip_page.c b/src/bin/elementary/test_flip_page.c
index 4e9bec6ff2..2aebf175b2 100644
--- a/src/bin/elementary/test_flip_page.c
+++ b/src/bin/elementary/test_flip_page.c
@@ -385,7 +385,7 @@ _state_update(State *st)
385 385
386 if (mx < 1) mx = 1; // quick hack to keep curl line visible 386 if (mx < 1) mx = 1; // quick hack to keep curl line visible
387 387
388 if (EINA_DBL_CMP(mgrad, 0.0)) // special horizontal case 388 if (EINA_DBL_EQ(mgrad, 0.0)) // special horizontal case
389 mgrad = 0.001; // quick dirty hack for now 389 mgrad = 0.001; // quick dirty hack for now
390 // else 390 // else
391 { 391 {
diff --git a/src/bin/evas/evas_cserve2_shm_debug.c b/src/bin/evas/evas_cserve2_shm_debug.c
index 27112180ec..18b87c4d03 100644
--- a/src/bin/evas/evas_cserve2_shm_debug.c
+++ b/src/bin/evas/evas_cserve2_shm_debug.c
@@ -431,7 +431,7 @@ _files_all_print_all(void)
431 _shared_string_get(fd->path), _shared_string_get(fd->key)); 431 _shared_string_get(fd->path), _shared_string_get(fd->key));
432 printf("LoadOpts: Region: %d,%d-%dx%d\n", 432 printf("LoadOpts: Region: %d,%d-%dx%d\n",
433 fd->lo.region.x, fd->lo.region.y, fd->lo.region.w, fd->lo.region.h); 433 fd->lo.region.x, fd->lo.region.y, fd->lo.region.w, fd->lo.region.h);
434 if (!EINA_DBL_CMP(fd->lo.dpi, 0)) 434 if (!EINA_DBL_EQ(fd->lo.dpi, 0))
435 printf(" DPI: %f\n"); 435 printf(" DPI: %f\n");
436 else 436 else
437 printf(" DPI: 0\n"); 437 printf(" DPI: 0\n");
@@ -519,7 +519,7 @@ _images_all_print_full(void)
519 printf(" height %d\n", id->opts.emile.h); 519 printf(" height %d\n", id->opts.emile.h);
520 printf(" degree %d\n", id->opts.emile.degree); 520 printf(" degree %d\n", id->opts.emile.degree);
521 printf(" scale_down_by %d\n", id->opts.emile.scale_down_by); 521 printf(" scale_down_by %d\n", id->opts.emile.scale_down_by);
522 if (!EINA_DBL_CMP(id->opts.emile.dpi, 0.0)) 522 if (!EINA_DBL_EQ(id->opts.emile.dpi, 0.0))
523 printf(" dpi %.2f\n", id->opts.emile.dpi); 523 printf(" dpi %.2f\n", id->opts.emile.dpi);
524 else 524 else
525 printf(" dpi 0\n"); 525 printf(" dpi 0\n");
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 @@
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 {
diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index a60c159d4c..8fb738649a 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -196,7 +196,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
196 d = fmod(t0, ft); 196 d = fmod(t0, ft);
197 if (tick) 197 if (tick)
198 { 198 {
199 if (!EINA_FLT_CMP(pframetime, ft)) 199 if (!EINA_FLT_EQ(pframetime, ft))
200 { 200 {
201 t = (ft - d) * 1000000000.0; 201 t = (ft - d) * 1000000000.0;
202 t_ft = ft * 1000000000.0; 202 t_ft = ft * 1000000000.0;
@@ -661,7 +661,7 @@ _cubic_bezier_t_get(double a,
661 for (int i = 0; i < LIMIT; i++) 661 for (int i = 0; i < LIMIT; i++)
662 { 662 {
663 current_slope = _cubic_bezier_slope_get(guess_t, x1, x2); 663 current_slope = _cubic_bezier_slope_get(guess_t, x1, x2);
664 if (EINA_FLT_CMP(current_slope, 0.0)) return guess_t; 664 if (EINA_FLT_EQ(current_slope, 0.0)) return guess_t;
665 current_x = _cubic_bezier_calc(guess_t, x1, x2) - a; 665 current_x = _cubic_bezier_calc(guess_t, x1, x2) - a;
666 change = current_x / current_slope; 666 change = current_x / current_slope;
667 guess_t -= change; 667 guess_t -= change;
@@ -677,8 +677,8 @@ _pos_map_cubic_bezier(double pos,
677 double x2, 677 double x2,
678 double y2) 678 double y2)
679{ 679{
680 if (EINA_FLT_CMP(x1, y1) && 680 if (EINA_FLT_EQ(x1, y1) &&
681 EINA_FLT_CMP(x2, y2)) 681 EINA_FLT_EQ(x2, y2))
682 return pos; 682 return pos;
683 return _cubic_bezier_calc(_cubic_bezier_t_get(pos, x1, x2), y1, y2); 683 return _cubic_bezier_calc(_cubic_bezier_t_get(pos, x1, x2), y1, y2);
684} 684}
@@ -819,7 +819,7 @@ ecore_animator_frametime_set(double frametime)
819{ 819{
820 EINA_MAIN_LOOP_CHECK_RETURN; 820 EINA_MAIN_LOOP_CHECK_RETURN;
821 if (frametime < 0.0) frametime = 0.0; 821 if (frametime < 0.0) frametime = 0.0;
822 if (EINA_FLT_CMP(animators_frametime, frametime)) return ; 822 if (EINA_FLT_EQ(animators_frametime, frametime)) return ;
823 animators_frametime = frametime; 823 animators_frametime = frametime;
824 _end_tick(); 824 _end_tick();
825 if (_have_animators()) _begin_tick(); 825 if (_have_animators()) _begin_tick();
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index 9b8f9f994c..6bff19156f 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -1694,7 +1694,7 @@ _ecore_main_select(double timeout)
1694 int max_fd, ret, err_no; 1694 int max_fd, ret, err_no;
1695 1695
1696 t = NULL; 1696 t = NULL;
1697 if ((!ECORE_FINITE(timeout)) || (EINA_FLT_CMP(timeout, 0.0))) /* finite() tests for NaN, too big, too small, and infinity. */ 1697 if ((!ECORE_FINITE(timeout)) || (EINA_FLT_EQ(timeout, 0.0))) /* finite() tests for NaN, too big, too small, and infinity. */
1698 { 1698 {
1699 tv.tv_sec = 0; 1699 tv.tv_sec = 0;
1700 tv.tv_usec = 0; 1700 tv.tv_usec = 0;
diff --git a/src/lib/ecore/ecore_pipe.c b/src/lib/ecore/ecore_pipe.c
index 45cd18e385..10d78e6e42 100644
--- a/src/lib/ecore/ecore_pipe.c
+++ b/src/lib/ecore/ecore_pipe.c
@@ -427,7 +427,7 @@ _ecore_pipe_wait(Ecore_Pipe *p,
427 if (wait >= 0.0) 427 if (wait >= 0.0)
428 { 428 {
429 /* finite() tests for NaN, too big, too small, and infinity. */ 429 /* finite() tests for NaN, too big, too small, and infinity. */
430 if ((!ECORE_FINITE(timeout)) || (EINA_FLT_CMP(timeout, 0.0))) 430 if ((!ECORE_FINITE(timeout)) || (EINA_FLT_EQ(timeout, 0.0)))
431 { 431 {
432 tv.tv_sec = 0; 432 tv.tv_sec = 0;
433 tv.tv_usec = 0; 433 tv.tv_usec = 0;
diff --git a/src/lib/ecore/ecore_poller.c b/src/lib/ecore/ecore_poller.c
index 0129500bf8..41afb6d7fd 100644
--- a/src/lib/ecore/ecore_poller.c
+++ b/src/lib/ecore/ecore_poller.c
@@ -99,7 +99,7 @@ _ecore_poller_next_tick_eval(void)
99 else 99 else
100 { 100 {
101 t = ecore_time_get(); 101 t = ecore_time_get();
102 if (!EINA_FLT_CMP(interval, poll_cur_interval)) 102 if (!EINA_FLT_EQ(interval, poll_cur_interval))
103 { 103 {
104 t -= last_tick; /* time since we last ticked */ 104 t -= last_tick; /* time since we last ticked */
105 /* delete the timer and reset it to tick off in the new 105 /* delete the timer and reset it to tick off in the new
diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c
index 5abe7a236b..981865b451 100644
--- a/src/lib/ecore/ecore_thread.c
+++ b/src/lib/ecore/ecore_thread.c
@@ -1462,7 +1462,7 @@ ecore_thread_global_data_wait(const char *key,
1462 ret = eina_hash_find(_ecore_thread_global_hash, key); 1462 ret = eina_hash_find(_ecore_thread_global_hash, key);
1463 LRWKU(_ecore_thread_global_hash_lock); 1463 LRWKU(_ecore_thread_global_hash_lock);
1464 if ((ret) || 1464 if ((ret) ||
1465 (!EINA_FLT_CMP(seconds, 0.0)) || 1465 (!EINA_FLT_EQ(seconds, 0.0)) ||
1466 ((seconds > 0) && (tm <= ecore_time_get()))) 1466 ((seconds > 0) && (tm <= ecore_time_get())))
1467 break; 1467 break;
1468 LKL(_ecore_thread_global_hash_mutex); 1468 LKL(_ecore_thread_global_hash_mutex);
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 15217ce079..3089e61979 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -2807,7 +2807,7 @@ _ecore_evas_fps_debug_rendertime_add(double t)
2807 tim = ecore_time_get(); 2807 tim = ecore_time_get();
2808 rtime += t; 2808 rtime += t;
2809 frames++; 2809 frames++;
2810 if (EINA_DBL_CMP(rlapse, 0.0)) 2810 if (EINA_DBL_EQ(rlapse, 0.0))
2811 { 2811 {
2812 rlapse = tim; 2812 rlapse = tim;
2813 flapse = frames; 2813 flapse = frames;
@@ -4291,8 +4291,8 @@ _pointer_position_set(Efl_Input_Pointer_Data *ev, Ecore_Evas *ee, int x, int y,
4291{ 4291{
4292 int fx, fy, fw, fh; 4292 int fx, fy, fw, fh;
4293 4293
4294 if ((EINA_DBL_CMP(mx, 0.0)) && 4294 if ((EINA_DBL_EQ(mx, 0.0)) &&
4295 (EINA_DBL_CMP(my, 0.0))) 4295 (EINA_DBL_EQ(my, 0.0)))
4296 { 4296 {
4297 mx = x; 4297 mx = x;
4298 my = y; 4298 my = y;
diff --git a/src/lib/ecore_fb/ecore_fb_li.c b/src/lib/ecore_fb/ecore_fb_li.c
index 267d545cb5..8198fd446e 100644
--- a/src/lib/ecore_fb/ecore_fb_li.c
+++ b/src/lib/ecore_fb/ecore_fb_li.c
@@ -699,8 +699,8 @@ EAPI void
699ecore_fb_input_device_threshold_click_set(Ecore_Fb_Input_Device *dev, double threshold) 699ecore_fb_input_device_threshold_click_set(Ecore_Fb_Input_Device *dev, double threshold)
700{ 700{
701 if (!dev) return; 701 if (!dev) return;
702 if ((EINA_DBL_CMP(threshold, dev->mouse.threshold)) || 702 if ((EINA_DBL_EQ(threshold, dev->mouse.threshold)) ||
703 (EINA_DBL_CMP(threshold, 0.0))) return; 703 (EINA_DBL_EQ(threshold, 0.0))) return;
704 dev->mouse.threshold = threshold; 704 dev->mouse.threshold = threshold;
705} 705}
706 706
diff --git a/src/lib/ecore_input_evas/ecore_input_evas.c b/src/lib/ecore_input_evas/ecore_input_evas.c
index d10cb9eee5..7866bd5d9a 100644
--- a/src/lib/ecore_input_evas/ecore_input_evas.c
+++ b/src/lib/ecore_input_evas/ecore_input_evas.c
@@ -221,7 +221,7 @@ _ecore_event_evas_push_mouse_button(Ecore_Event_Mouse_Button *e, Ecore_Event_Pre
221 //if up event not occurs from under layers of ecore 221 //if up event not occurs from under layers of ecore
222 //up event is generated by ecore 222 //up event is generated by ecore
223 if (_last_events_enable && 223 if (_last_events_enable &&
224 !EINA_DBL_CMP(_last_events_timeout, 0)) 224 !EINA_DBL_EQ(_last_events_timeout, 0))
225 { 225 {
226 if (eel->timer) ecore_timer_del(eel->timer); 226 if (eel->timer) ecore_timer_del(eel->timer);
227 eel->timer = NULL; 227 eel->timer = NULL;
diff --git a/src/lib/ector/software/ector_renderer_software_gradient_linear.c b/src/lib/ector/software/ector_renderer_software_gradient_linear.c
index 616040239b..4bd4806b28 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_linear.c
+++ b/src/lib/ector/software/ector_renderer_software_gradient_linear.c
@@ -34,7 +34,7 @@ _ector_renderer_software_gradient_linear_ector_renderer_prepare(Eo *obj,
34 pd->linear.l = pd->linear.dx * pd->linear.dx + pd->linear.dy * pd->linear.dy; 34 pd->linear.l = pd->linear.dx * pd->linear.dx + pd->linear.dy * pd->linear.dy;
35 pd->linear.off = 0; 35 pd->linear.off = 0;
36 36
37 if (!EINA_DBL_CMP(pd->linear.l, 0.0)) 37 if (!EINA_DBL_EQ(pd->linear.l, 0.0))
38 { 38 {
39 pd->linear.dx /= pd->linear.l; 39 pd->linear.dx /= pd->linear.l;
40 pd->linear.dy /= pd->linear.l; 40 pd->linear.dy /= pd->linear.l;
diff --git a/src/lib/ector/software/ector_renderer_software_gradient_radial.c b/src/lib/ector/software/ector_renderer_software_gradient_radial.c
index a66df4f23a..0925cb9ee9 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_radial.c
+++ b/src/lib/ector/software/ector_renderer_software_gradient_radial.c
@@ -26,12 +26,12 @@ _ector_renderer_software_gradient_radial_ector_renderer_prepare(Eo *obj, Ector_R
26 pd->radial.cy = pd->grd->radial.y; 26 pd->radial.cy = pd->grd->radial.y;
27 pd->radial.cradius = pd->grd->radius; 27 pd->radial.cradius = pd->grd->radius;
28 28
29 if (EINA_DBL_CMP(pd->grd->focal.x, 0.0)) 29 if (EINA_DBL_EQ(pd->grd->focal.x, 0.0))
30 pd->radial.fx = pd->grd->radial.x; 30 pd->radial.fx = pd->grd->radial.x;
31 else 31 else
32 pd->radial.fx = pd->grd->focal.x; 32 pd->radial.fx = pd->grd->focal.x;
33 33
34 if (EINA_DBL_CMP(pd->grd->focal.y, 0.0)) 34 if (EINA_DBL_EQ(pd->grd->focal.y, 0.0))
35 pd->radial.fy = pd->grd->radial.y; 35 pd->radial.fy = pd->grd->radial.y;
36 else 36 else
37 pd->radial.fy = pd->grd->focal.y; 37 pd->radial.fy = pd->grd->focal.y;
diff --git a/src/lib/ector/software/ector_software_gradient.c b/src/lib/ector/software/ector_software_gradient.c
index 5f63fca277..55636b4237 100644
--- a/src/lib/ector/software/ector_software_gradient.c
+++ b/src/lib/ector/software/ector_software_gradient.c
@@ -386,7 +386,7 @@ fetch_linear_gradient(uint32_t *buffer, Span_Data *data, int y, int x, int lengt
386 uint32_t *end; 386 uint32_t *end;
387 int t_fixed, inc_fixed; 387 int t_fixed, inc_fixed;
388 388
389 if (EINA_DBL_CMP(g_data->linear.l, 0.0)) 389 if (EINA_DBL_EQ(g_data->linear.l, 0.0))
390 { 390 {
391 t = inc = 0; 391 t = inc = 0;
392 } 392 }
diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c
index bdbf698ca7..01030e30db 100644
--- a/src/lib/edje/edje_load.c
+++ b/src/lib/edje/edje_load.c
@@ -2945,8 +2945,8 @@ _edje_dupe_vector_data(Edje *ed, int svg_id, double width, double height,
2945 root = evas_vg_container_add(NULL); 2945 root = evas_vg_container_add(NULL);
2946 efl_vg_dup(root, vector->vg); 2946 efl_vg_dup(root, vector->vg);
2947 2947
2948 if (!EINA_DBL_CMP(vector->w, 0) && 2948 if (!EINA_DBL_EQ(vector->w, 0) &&
2949 !EINA_DBL_CMP(vector->h, 0)) 2949 !EINA_DBL_EQ(vector->h, 0))
2950 { 2950 {
2951 _apply_transformation(root, width, height, vector); 2951 _apply_transformation(root, width, height, vector);
2952 } 2952 }
diff --git a/src/lib/edje/edje_private.h b/src/lib/edje/edje_private.h
index 13dc7961dd..b100365c25 100644
--- a/src/lib/edje/edje_private.h
+++ b/src/lib/edje/edje_private.h
@@ -176,8 +176,8 @@ EAPI extern int _edje_default_log_dom ;
176#define COS(a) cos(a) 176#define COS(a) cos(a)
177#define SIN(a) sin(a) 177#define SIN(a) sin(a)
178#define PI 3.14159265358979323846 178#define PI 3.14159265358979323846
179#define EQ(a, b) EINA_DBL_CMP(a, b) 179#define EQ(a, b) EINA_DBL_EQ(a, b)
180#define NEQ(a, b) !EINA_DBL_CMP(a, b) 180#define NEQ(a, b) !EINA_DBL_EQ(a, b)
181 181
182#endif 182#endif
183 183
diff --git a/src/lib/edje/edje_program.c b/src/lib/edje/edje_program.c
index 7ab1498814..aac74b266a 100644
--- a/src/lib/edje/edje_program.c
+++ b/src/lib/edje/edje_program.c
@@ -2279,11 +2279,11 @@ _edje_param_validate(const Edje_External_Param *param, const Edje_External_Param
2279 return EINA_TRUE; 2279 return EINA_TRUE;
2280 2280
2281 case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE: 2281 case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
2282 if (!EINA_DBL_CMP(info->info.d.min, EDJE_EXTERNAL_DOUBLE_UNSET) && 2282 if (!EINA_DBL_EQ(info->info.d.min, EDJE_EXTERNAL_DOUBLE_UNSET) &&
2283 (info->info.d.min > param->d)) 2283 (info->info.d.min > param->d))
2284 return EINA_FALSE; 2284 return EINA_FALSE;
2285 2285
2286 if (!EINA_DBL_CMP(info->info.d.max, EDJE_EXTERNAL_DOUBLE_UNSET) && 2286 if (!EINA_DBL_EQ(info->info.d.max, EDJE_EXTERNAL_DOUBLE_UNSET) &&
2287 (info->info.d.max < param->d)) 2287 (info->info.d.max < param->d))
2288 return EINA_FALSE; 2288 return EINA_FALSE;
2289 2289
diff --git a/src/lib/edje/edje_textblock_styles.c b/src/lib/edje/edje_textblock_styles.c
index 06cd8cd775..24cf2e1f0f 100644
--- a/src/lib/edje/edje_textblock_styles.c
+++ b/src/lib/edje/edje_textblock_styles.c
@@ -220,7 +220,7 @@ _edje_textblock_style_update(Edje *ed, Edje_Style *stl, Eina_Bool force)
220 eina_strbuf_append(txt, "font_source="); 220 eina_strbuf_append(txt, "font_source=");
221 eina_strbuf_append(txt, fontsource); 221 eina_strbuf_append(txt, fontsource);
222 } 222 }
223 if (!EINA_DBL_CMP(tag->font_size, 0)) 223 if (!EINA_DBL_EQ(tag->font_size, 0))
224 { 224 {
225 char font_size[32]; 225 char font_size[32];
226 226
diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index e9cead7505..8eb729b41e 100644
--- a/src/lib/edje/edje_util.c
+++ b/src/lib/edje/edje_util.c
@@ -359,7 +359,7 @@ edje_password_show_last_set(Eina_Bool password_show_last)
359EAPI void 359EAPI void
360edje_password_show_last_timeout_set(double password_show_last_timeout) 360edje_password_show_last_timeout_set(double password_show_last_timeout)
361{ 361{
362 if (EINA_DBL_CMP(_edje_password_show_last_timeout, password_show_last_timeout)) return; 362 if (EINA_DBL_EQ(_edje_password_show_last_timeout, password_show_last_timeout)) return;
363 _edje_password_show_last_timeout = password_show_last_timeout; 363 _edje_password_show_last_timeout = password_show_last_timeout;
364} 364}
365 365
diff --git a/src/lib/efl/interfaces/efl_gfx_path.c b/src/lib/efl/interfaces/efl_gfx_path.c
index c9495eab84..964ca2b496 100644
--- a/src/lib/efl/interfaces/efl_gfx_path.c
+++ b/src/lib/efl/interfaces/efl_gfx_path.c
@@ -756,7 +756,7 @@ _efl_gfx_t_for_arc_angle(double angle)
756 double radians, cos_angle, sin_angle, tc, ts, t; 756 double radians, cos_angle, sin_angle, tc, ts, t;
757 757
758 if (angle < 0.00001) return 0; 758 if (angle < 0.00001) return 0;
759 if (EINA_FLT_CMP(angle, 90.0)) return 1; 759 if (EINA_FLT_EQ(angle, 90.0)) return 1;
760 760
761 radians = (angle/180) * M_PI; 761 radians = (angle/180) * M_PI;
762 762
@@ -799,7 +799,7 @@ _find_ellipse_coords(double x, double y, double w, double h, double angle,
799 double angles[2] = { angle, angle + length }; 799 double angles[2] = { angle, angle + length };
800 Point *points[2]; 800 Point *points[2];
801 801
802 if (!EINA_FLT_CMP(w, 0.0) || !EINA_FLT_CMP(h, 0.0)) 802 if (!EINA_FLT_EQ(w, 0.0) || !EINA_FLT_EQ(h, 0.0))
803 { 803 {
804 if (start_point) 804 if (start_point)
805 { 805 {
@@ -900,15 +900,15 @@ _curves_for_arc(double x, double y, double w, double h,
900 else if (sweep_length < -360) sweep_length = -360; 900 else if (sweep_length < -360) sweep_length = -360;
901 901
902 // Special case fast paths 902 // Special case fast paths
903 if (EINA_FLT_CMP(start_angle, 0)) 903 if (EINA_FLT_EQ(start_angle, 0))
904 { 904 {
905 if (EINA_FLT_CMP(sweep_length, 360)) 905 if (EINA_FLT_EQ(sweep_length, 360))
906 { 906 {
907 for (i = 11; i >= 0; --i) 907 for (i = 11; i >= 0; --i)
908 curves[(*point_count)++] = points[i]; 908 curves[(*point_count)++] = points[i];
909 return points[12]; 909 return points[12];
910 } 910 }
911 else if (EINA_FLT_CMP(sweep_length, -360)) 911 else if (EINA_FLT_EQ(sweep_length, -360))
912 { 912 {
913 for (i = 1; i <= 12; ++i) 913 for (i = 1; i <= 12; ++i)
914 curves[(*point_count)++] = points[i]; 914 curves[(*point_count)++] = points[i];
@@ -930,14 +930,14 @@ _curves_for_arc(double x, double y, double w, double h,
930 } 930 }
931 931
932 // avoid empty start segment 932 // avoid empty start segment
933 if (EINA_FLT_CMP(start_t, 1.0)) 933 if (EINA_FLT_EQ(start_t, 1.0))
934 { 934 {
935 start_t = 0; 935 start_t = 0;
936 start_segment += delta; 936 start_segment += delta;
937 } 937 }
938 938
939 // avoid empty end segment 939 // avoid empty end segment
940 if (EINA_FLT_CMP(end_t, 0.0)) 940 if (EINA_FLT_EQ(end_t, 0.0))
941 { 941 {
942 end_t = 1; 942 end_t = 1;
943 end_segment -= delta; 943 end_segment -= delta;
@@ -979,7 +979,7 @@ _curves_for_arc(double x, double y, double w, double h,
979 points[j + 3].x, points[j + 3].y); 979 points[j + 3].x, points[j + 3].y);
980 980
981 // empty arc? 981 // empty arc?
982 if (start_segment == end_segment && (EINA_FLT_CMP(start_t, end_t))) 982 if (start_segment == end_segment && (EINA_FLT_EQ(start_t, end_t)))
983 return start_point; 983 return start_point;
984 984
985 res = b; 985 res = b;
diff --git a/src/lib/efreet/efreet_icon.c b/src/lib/efreet/efreet_icon.c
index ff62779bae..47c62eb2da 100644
--- a/src/lib/efreet/efreet_icon.c
+++ b/src/lib/efreet/efreet_icon.c
@@ -543,7 +543,7 @@ efreet_icon_lookup_icon(Efreet_Cache_Icon *icon, unsigned int size)
543 distance = efreet_icon_size_distance(icon->icons[i], size); 543 distance = efreet_icon_size_distance(icon->icons[i], size);
544 if (distance > minimal_distance) continue; 544 if (distance > minimal_distance) continue;
545 // prefer downsizing 545 // prefer downsizing
546 if ((EINA_DBL_CMP(distance, minimal_distance)) && 546 if ((EINA_DBL_EQ(distance, minimal_distance)) &&
547 (icon->icons[i]->normal < ret_size)) 547 (icon->icons[i]->normal < ret_size))
548 continue; 548 continue;
549 549
diff --git a/src/lib/eina/eina_bezier.c b/src/lib/eina/eina_bezier.c
index 391bf14359..b179ceb59e 100644
--- a/src/lib/eina/eina_bezier.c
+++ b/src/lib/eina/eina_bezier.c
@@ -226,7 +226,7 @@ eina_bezier_t_at(const Eina_Bezier *b, double l)
226 double biggest = 1.0; 226 double biggest = 1.0;
227 double t = 1.0; 227 double t = 1.0;
228 228
229 if (l >= len)// || (EINA_DBL_CMP(len, l))) 229 if (l >= len)// || (EINA_DBL_EQ(len, l)))
230 return t; 230 return t;
231 231
232 t *= 0.5; 232 t *= 0.5;
@@ -240,7 +240,7 @@ eina_bezier_t_at(const Eina_Bezier *b, double l)
240 _eina_bezier_split_left(&right, t, &left); 240 _eina_bezier_split_left(&right, t, &left);
241 ll = eina_bezier_length_get(&left); 241 ll = eina_bezier_length_get(&left);
242 242
243 if (EINA_DBL_CMP(ll, l)) 243 if (EINA_DBL_EQ(ll, l))
244 break; 244 break;
245 245
246 if (ll < l) 246 if (ll < l)
@@ -317,8 +317,8 @@ eina_bezier_on_interval(Eina_Bezier *b, double t0, double t1, Eina_Bezier *resul
317 Eina_Bezier bezier; 317 Eina_Bezier bezier;
318 double t; 318 double t;
319 319
320 if (EINA_DBL_CMP(t0, 0.0) && 320 if (EINA_DBL_EQ(t0, 0.0) &&
321 EINA_DBL_CMP(t1, 1.0)) 321 EINA_DBL_EQ(t1, 1.0))
322 { 322 {
323 *result = *b; 323 *result = *b;
324 return; 324 return;
diff --git a/src/lib/eina/eina_matrix.c b/src/lib/eina/eina_matrix.c
index 43da6c7021..50439dd755 100644
--- a/src/lib/eina/eina_matrix.c
+++ b/src/lib/eina/eina_matrix.c
@@ -106,18 +106,18 @@ _cos(double x)
106EAPI Eina_Matrix_Type 106EAPI Eina_Matrix_Type
107eina_matrix3_type_get(const Eina_Matrix3 *m) 107eina_matrix3_type_get(const Eina_Matrix3 *m)
108{ 108{
109 if (!EINA_DBL_CMP(MATRIX_ZX(m), 0.0) || 109 if (!EINA_DBL_EQ(MATRIX_ZX(m), 0.0) ||
110 !EINA_DBL_CMP(MATRIX_ZY(m), 0.0) || 110 !EINA_DBL_EQ(MATRIX_ZY(m), 0.0) ||
111 !EINA_DBL_CMP(MATRIX_ZZ(m), 1.0)) 111 !EINA_DBL_EQ(MATRIX_ZZ(m), 1.0))
112 return EINA_MATRIX_TYPE_PROJECTIVE; 112 return EINA_MATRIX_TYPE_PROJECTIVE;
113 else 113 else
114 { 114 {
115 if (EINA_DBL_CMP(MATRIX_XX(m), 1.0) && 115 if (EINA_DBL_EQ(MATRIX_XX(m), 1.0) &&
116 EINA_DBL_CMP(MATRIX_XY(m), 0.0) && 116 EINA_DBL_EQ(MATRIX_XY(m), 0.0) &&
117 EINA_DBL_CMP(MATRIX_XZ(m), 0.0) && 117 EINA_DBL_EQ(MATRIX_XZ(m), 0.0) &&
118 EINA_DBL_CMP(MATRIX_YX(m), 0.0) && 118 EINA_DBL_EQ(MATRIX_YX(m), 0.0) &&
119 EINA_DBL_CMP(MATRIX_YY(m), 1.0) && 119 EINA_DBL_EQ(MATRIX_YY(m), 1.0) &&
120 EINA_DBL_CMP(MATRIX_YZ(m), 0.0)) 120 EINA_DBL_EQ(MATRIX_YZ(m), 0.0))
121 return EINA_MATRIX_TYPE_IDENTITY; 121 return EINA_MATRIX_TYPE_IDENTITY;
122 else 122 else
123 return EINA_MATRIX_TYPE_AFFINE; 123 return EINA_MATRIX_TYPE_AFFINE;
@@ -127,22 +127,22 @@ eina_matrix3_type_get(const Eina_Matrix3 *m)
127EAPI Eina_Matrix_Type 127EAPI Eina_Matrix_Type
128eina_matrix4_type_get(const Eina_Matrix4 *m) 128eina_matrix4_type_get(const Eina_Matrix4 *m)
129{ 129{
130 if (EINA_DBL_CMP(MATRIX_XX(m), 1.0) && 130 if (EINA_DBL_EQ(MATRIX_XX(m), 1.0) &&
131 EINA_DBL_CMP(MATRIX_XY(m), 0.0) && 131 EINA_DBL_EQ(MATRIX_XY(m), 0.0) &&
132 EINA_DBL_CMP(MATRIX_XZ(m), 0.0) && 132 EINA_DBL_EQ(MATRIX_XZ(m), 0.0) &&
133 EINA_DBL_CMP(MATRIX_XW(m), 0.0) && 133 EINA_DBL_EQ(MATRIX_XW(m), 0.0) &&
134 EINA_DBL_CMP(MATRIX_YX(m), 0.0) && 134 EINA_DBL_EQ(MATRIX_YX(m), 0.0) &&
135 EINA_DBL_CMP(MATRIX_YY(m), 1.0) && 135 EINA_DBL_EQ(MATRIX_YY(m), 1.0) &&
136 EINA_DBL_CMP(MATRIX_YZ(m), 0.0) && 136 EINA_DBL_EQ(MATRIX_YZ(m), 0.0) &&
137 EINA_DBL_CMP(MATRIX_YW(m), 0.0) && 137 EINA_DBL_EQ(MATRIX_YW(m), 0.0) &&
138 EINA_DBL_CMP(MATRIX_ZX(m), 0.0) && 138 EINA_DBL_EQ(MATRIX_ZX(m), 0.0) &&
139 EINA_DBL_CMP(MATRIX_ZY(m), 0.0) && 139 EINA_DBL_EQ(MATRIX_ZY(m), 0.0) &&
140 EINA_DBL_CMP(MATRIX_ZZ(m), 1.0) && 140 EINA_DBL_EQ(MATRIX_ZZ(m), 1.0) &&
141 EINA_DBL_CMP(MATRIX_ZW(m), 0.0) && 141 EINA_DBL_EQ(MATRIX_ZW(m), 0.0) &&
142 EINA_DBL_CMP(MATRIX_WX(m), 0.0) && 142 EINA_DBL_EQ(MATRIX_WX(m), 0.0) &&
143 EINA_DBL_CMP(MATRIX_WY(m), 0.0) && 143 EINA_DBL_EQ(MATRIX_WY(m), 0.0) &&
144 EINA_DBL_CMP(MATRIX_WZ(m), 0.0) && 144 EINA_DBL_EQ(MATRIX_WZ(m), 0.0) &&
145 EINA_DBL_CMP(MATRIX_WW(m), 1.0)) 145 EINA_DBL_EQ(MATRIX_WW(m), 1.0))
146 return EINA_MATRIX_TYPE_IDENTITY; 146 return EINA_MATRIX_TYPE_IDENTITY;
147 return EINA_MATRIX_TYPE_AFFINE; 147 return EINA_MATRIX_TYPE_AFFINE;
148} 148}
@@ -280,8 +280,8 @@ eina_matrix3_point_transform(const Eina_Matrix3 *m,
280{ 280{
281 double xrr, yrr; 281 double xrr, yrr;
282 282
283 if (!EINA_DBL_CMP(MATRIX_ZX(m), 0.0) && 283 if (!EINA_DBL_EQ(MATRIX_ZX(m), 0.0) &&
284 !EINA_DBL_CMP(MATRIX_ZY(m), 0.0)) 284 !EINA_DBL_EQ(MATRIX_ZY(m), 0.0))
285 { 285 {
286 xrr = (x * MATRIX_XX(m) + y * MATRIX_XY(m) + MATRIX_XZ(m)); 286 xrr = (x * MATRIX_XX(m) + y * MATRIX_XY(m) + MATRIX_XZ(m));
287 yrr = (x * MATRIX_YX(m) + y * MATRIX_YY(m) + MATRIX_YZ(m)); 287 yrr = (x * MATRIX_YX(m) + y * MATRIX_YY(m) + MATRIX_YZ(m));
@@ -401,7 +401,7 @@ eina_matrix3_inverse(const Eina_Matrix3 *m, Eina_Matrix3 *m2)
401 401
402 /* determinant */ 402 /* determinant */
403 scalar = eina_matrix3_determinant(m); 403 scalar = eina_matrix3_determinant(m);
404 if (EINA_DBL_CMP(scalar, 0.0)) 404 if (EINA_DBL_EQ(scalar, 0.0))
405 { 405 {
406 eina_matrix3_identity(m2); 406 eina_matrix3_identity(m2);
407 return; 407 return;
@@ -445,15 +445,15 @@ eina_matrix3_compose(const Eina_Matrix3 *m1,
445EAPI Eina_Bool 445EAPI Eina_Bool
446eina_matrix3_equal(const Eina_Matrix3 *m1, const Eina_Matrix3 *m2) 446eina_matrix3_equal(const Eina_Matrix3 *m1, const Eina_Matrix3 *m2)
447{ 447{
448 if (!EINA_DBL_CMP(m1->xx, m2->xx) || 448 if (!EINA_DBL_EQ(m1->xx, m2->xx) ||
449 !EINA_DBL_CMP(m1->xy, m2->xy) || 449 !EINA_DBL_EQ(m1->xy, m2->xy) ||
450 !EINA_DBL_CMP(m1->xz, m2->xz) || 450 !EINA_DBL_EQ(m1->xz, m2->xz) ||
451 !EINA_DBL_CMP(m1->yx, m2->yx) || 451 !EINA_DBL_EQ(m1->yx, m2->yx) ||
452 !EINA_DBL_CMP(m1->yy, m2->yy) || 452 !EINA_DBL_EQ(m1->yy, m2->yy) ||
453 !EINA_DBL_CMP(m1->yz, m2->yz) || 453 !EINA_DBL_EQ(m1->yz, m2->yz) ||
454 !EINA_DBL_CMP(m1->zx, m2->zx) || 454 !EINA_DBL_EQ(m1->zx, m2->zx) ||
455 !EINA_DBL_CMP(m1->zy, m2->zy) || 455 !EINA_DBL_EQ(m1->zy, m2->zy) ||
456 !EINA_DBL_CMP(m1->zz, m2->zz)) 456 !EINA_DBL_EQ(m1->zz, m2->zz))
457 return EINA_FALSE; 457 return EINA_FALSE;
458 return EINA_TRUE; 458 return EINA_TRUE;
459} 459}
@@ -602,7 +602,7 @@ eina_matrix3_square_quad_map(Eina_Matrix3 *m, const Eina_Quad *q)
602 double ey = QUAD_Y0(q) - QUAD_Y1(q) + QUAD_Y2(q) - QUAD_Y3(q); 602 double ey = QUAD_Y0(q) - QUAD_Y1(q) + QUAD_Y2(q) - QUAD_Y3(q);
603 603
604 /* paralellogram */ 604 /* paralellogram */
605 if (EINA_DBL_CMP(ex, 0.0) && EINA_DBL_CMP(ey, 0.0)) 605 if (EINA_DBL_EQ(ex, 0.0) && EINA_DBL_EQ(ey, 0.0))
606 { 606 {
607 /* create the affine matrix */ 607 /* create the affine matrix */
608 MATRIX_XX(m) = QUAD_X1(q) - QUAD_X0(q); 608 MATRIX_XX(m) = QUAD_X1(q) - QUAD_X0(q);
@@ -627,7 +627,7 @@ eina_matrix3_square_quad_map(Eina_Matrix3 *m, const Eina_Quad *q)
627 double dy2 = QUAD_Y3(q) - QUAD_Y2(q); // y3 - y2 627 double dy2 = QUAD_Y3(q) - QUAD_Y2(q); // y3 - y2
628 double den = (dx1 * dy2) - (dx2 * dy1); 628 double den = (dx1 * dy2) - (dx2 * dy1);
629 629
630 if (EINA_DBL_CMP(den, 0.0)) 630 if (EINA_DBL_EQ(den, 0.0))
631 return EINA_FALSE; 631 return EINA_FALSE;
632 632
633 MATRIX_ZX(m) = ((ex * dy2) - (dx2 * ey)) / den; 633 MATRIX_ZX(m) = ((ex * dy2) - (dx2 * ey)) / den;
@@ -656,7 +656,7 @@ eina_matrix3_quad_square_map(Eina_Matrix3 *m,
656 656
657 eina_matrix3_inverse(&tmp, m); 657 eina_matrix3_inverse(&tmp, m);
658 /* make the projective matrix3 always have 1 on zz */ 658 /* make the projective matrix3 always have 1 on zz */
659 if (!EINA_DBL_CMP(MATRIX_ZZ(m), 1.0)) 659 if (!EINA_DBL_EQ(MATRIX_ZZ(m), 1.0))
660 { 660 {
661 eina_matrix3_divide(m, MATRIX_ZZ(m)); 661 eina_matrix3_divide(m, MATRIX_ZZ(m));
662 } 662 }
@@ -989,10 +989,10 @@ eina_matrix4_identity(Eina_Matrix4 *out)
989EAPI Eina_Matrix_Type 989EAPI Eina_Matrix_Type
990eina_matrix2_type_get(const Eina_Matrix2 *m) 990eina_matrix2_type_get(const Eina_Matrix2 *m)
991{ 991{
992 if (EINA_DBL_CMP(MATRIX_XX(m), 1.0) && 992 if (EINA_DBL_EQ(MATRIX_XX(m), 1.0) &&
993 EINA_DBL_CMP(MATRIX_XY(m), 0.0) && 993 EINA_DBL_EQ(MATRIX_XY(m), 0.0) &&
994 EINA_DBL_CMP(MATRIX_YX(m), 0.0) && 994 EINA_DBL_EQ(MATRIX_YX(m), 0.0) &&
995 EINA_DBL_CMP(MATRIX_YY(m), 1.0)) 995 EINA_DBL_EQ(MATRIX_YY(m), 1.0))
996 return EINA_MATRIX_TYPE_IDENTITY; 996 return EINA_MATRIX_TYPE_IDENTITY;
997 return EINA_MATRIX_TYPE_AFFINE; 997 return EINA_MATRIX_TYPE_AFFINE;
998} 998}
@@ -1238,7 +1238,7 @@ eina_matrix2_inverse(Eina_Matrix2 *out, const Eina_Matrix2 *mat)
1238 1238
1239 det = MATRIX_XX(mat) * MATRIX_YY(mat) - MATRIX_YX(mat) * MATRIX_XY(mat); 1239 det = MATRIX_XX(mat) * MATRIX_YY(mat) - MATRIX_YX(mat) * MATRIX_XY(mat);
1240 1240
1241 if (EINA_DBL_CMP(det, 0.0)) 1241 if (EINA_DBL_EQ(det, 0.0))
1242 return; 1242 return;
1243 1243
1244 det = 1.0 / det; 1244 det = 1.0 / det;
diff --git a/src/lib/eina/eina_quaternion.c b/src/lib/eina/eina_quaternion.c
index 93dbb31d7a..f3431e0326 100644
--- a/src/lib/eina/eina_quaternion.c
+++ b/src/lib/eina/eina_quaternion.c
@@ -447,12 +447,12 @@ eina_quaternion_lerp(Eina_Quaternion *out,
447 const Eina_Quaternion *b, 447 const Eina_Quaternion *b,
448 double pos) 448 double pos)
449{ 449{
450 if (EINA_DBL_CMP(pos, 0.0)) 450 if (EINA_DBL_EQ(pos, 0.0))
451 { 451 {
452 *out = *a; 452 *out = *a;
453 return ; 453 return ;
454 } 454 }
455 else if (EINA_DBL_CMP(pos, 1.0)) 455 else if (EINA_DBL_EQ(pos, 1.0))
456 { 456 {
457 *out = *b; 457 *out = *b;
458 return ; 458 return ;
@@ -475,12 +475,12 @@ eina_quaternion_slerp(Eina_Quaternion *out,
475 double dot; 475 double dot;
476 double pos1, pos2; 476 double pos1, pos2;
477 477
478 if (EINA_DBL_CMP(pos, 0.0)) 478 if (EINA_DBL_EQ(pos, 0.0))
479 { 479 {
480 *out = *a; 480 *out = *a;
481 return ; 481 return ;
482 } 482 }
483 else if (EINA_DBL_CMP(pos, 1.0)) 483 else if (EINA_DBL_EQ(pos, 1.0))
484 { 484 {
485 *out = *b; 485 *out = *b;
486 return ; 486 return ;
@@ -528,12 +528,12 @@ eina_quaternion_nlerp(Eina_Quaternion *out,
528 Eina_Quaternion not_normalize; 528 Eina_Quaternion not_normalize;
529 double dot; 529 double dot;
530 530
531 if (EINA_DBL_CMP(pos, 0.0)) 531 if (EINA_DBL_EQ(pos, 0.0))
532 { 532 {
533 *out = *a; 533 *out = *a;
534 return ; 534 return ;
535 } 535 }
536 else if (EINA_DBL_CMP(pos, 1.0)) 536 else if (EINA_DBL_EQ(pos, 1.0))
537 { 537 {
538 *out = *b; 538 *out = *b;
539 return ; 539 return ;
@@ -692,7 +692,7 @@ eina_matrix4_quaternion_to(Eina_Quaternion *rotation,
692 Eina_Matrix4 n, pm; 692 Eina_Matrix4 n, pm;
693 double det, factor; 693 double det, factor;
694 694
695 if (EINA_DBL_CMP(m->ww, 0.0)) return EINA_FALSE; 695 if (EINA_DBL_EQ(m->ww, 0.0)) return EINA_FALSE;
696 696
697 // Normalize the matrix. 697 // Normalize the matrix.
698 factor = 1 / m->ww; 698 factor = 1 / m->ww;
@@ -932,7 +932,7 @@ eina_quaternion_matrix4_to(Eina_Matrix4 *m,
932 932
933 // apply skew 933 // apply skew
934 // rm is a identity 4x4 matrix initially 934 // rm is a identity 4x4 matrix initially
935 if (!EINA_DBL_CMP(skew->z, 0.0)) 935 if (!EINA_DBL_EQ(skew->z, 0.0))
936 { 936 {
937 Eina_Matrix4 cp; 937 Eina_Matrix4 cp;
938 938
@@ -943,7 +943,7 @@ eina_quaternion_matrix4_to(Eina_Matrix4 *m,
943 tmp = cp; 943 tmp = cp;
944 } 944 }
945 945
946 if (!EINA_DBL_CMP(skew->y, 0.0)) 946 if (!EINA_DBL_EQ(skew->y, 0.0))
947 { 947 {
948 Eina_Matrix4 cp; 948 Eina_Matrix4 cp;
949 949
@@ -955,7 +955,7 @@ eina_quaternion_matrix4_to(Eina_Matrix4 *m,
955 tmp = cp; 955 tmp = cp;
956 } 956 }
957 957
958 if (!EINA_DBL_CMP(skew->x, 0.0)) 958 if (!EINA_DBL_EQ(skew->x, 0.0))
959 { 959 {
960 Eina_Matrix4 cp; 960 Eina_Matrix4 cp;
961 961
@@ -1029,7 +1029,7 @@ eina_quaternion_copy(Eina_Quaternion *dst, const Eina_Quaternion *src)
1029EAPI void 1029EAPI void
1030eina_quaternion_homogeneous_regulate(Eina_Quaternion *out, const Eina_Quaternion *v) 1030eina_quaternion_homogeneous_regulate(Eina_Quaternion *out, const Eina_Quaternion *v)
1031{ 1031{
1032 if (!EINA_DBL_CMP(v->w, 0.0)) 1032 if (!EINA_DBL_EQ(v->w, 0.0))
1033 { 1033 {
1034 double scale = 1.0 / v->w; 1034 double scale = 1.0 / v->w;
1035 1035
diff --git a/src/lib/eina/eina_util.h b/src/lib/eina/eina_util.h
index fab96177d7..ef3089ed4b 100644
--- a/src/lib/eina/eina_util.h
+++ b/src/lib/eina/eina_util.h
@@ -73,10 +73,11 @@ EAPI Eina_Bool eina_flteq(float a, float b);
73 * @brief Safe comparison of float 73 * @brief Safe comparison of float
74 * @param a First member to compar 74 * @param a First member to compar
75 * @param b Second member to compar 75 * @param b Second member to compar
76 * @since 1.19
76 * 77 *
77 * @return @c true if two floats match 78 * @return @c true if two floats match
78 */ 79 */
79#define EINA_FLT_CMP(a, b) (fabsf((float)a - (float)b) <= FLT_EPSILON) 80#define EINA_FLT_EQ(a, b) (!!(fabsf((float)a - (float)b) <= FLT_EPSILON))
80 81
81/** 82/**
82 * @brief Determine if a float is nonzero 83 * @brief Determine if a float is nonzero
@@ -91,10 +92,11 @@ EAPI Eina_Bool eina_flteq(float a, float b);
91 * @brief Safe comparison of double 92 * @brief Safe comparison of double
92 * @param a First member to compar 93 * @param a First member to compar
93 * @param b Second member to compar 94 * @param b Second member to compar
95 * @since 1.19
94 * 96 *
95 * @return @c true if two double match 97 * @return @c true if two double match
96 */ 98 */
97#define EINA_DBL_CMP(a, b) (fabs((double)a - (double)b) <= DBL_EPSILON) 99#define EINA_DBL_EQ(a, b) (!!(fabs((double)a - (double)b) <= DBL_EPSILON))
98 100
99/** 101/**
100 * @brief Determine if a double is nonzero 102 * @brief Determine if a double is nonzero
diff --git a/src/lib/elementary/efl_ui_box_layout.c b/src/lib/elementary/efl_ui_box_layout.c
index da0d0e768a..bb41a8d268 100644
--- a/src/lib/elementary/efl_ui_box_layout.c
+++ b/src/lib/elementary/efl_ui_box_layout.c
@@ -156,7 +156,7 @@ _efl_ui_box_custom_layout(Efl_Ui_Box *ui_box, Evas_Object_Box_Data *bd)
156 156
157 if (extra < 0) extra = 0; 157 if (extra < 0) extra = 0;
158 158
159 if (EINA_DBL_CMP(weight[!horiz], 0)) 159 if (EINA_DBL_EQ(weight[!horiz], 0))
160 { 160 {
161 if (box_fill[!horiz]) 161 if (box_fill[!horiz])
162 { 162 {
diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c
index 1d2c9062e7..1fecc682e4 100644
--- a/src/lib/elementary/efl_ui_image.c
+++ b/src/lib/elementary/efl_ui_image.c
@@ -1506,7 +1506,7 @@ _efl_ui_image_align_set(Eo *obj, Efl_Ui_Image_Data *sd, double align_x, double a
1506 else if (align_y < 0.0) 1506 else if (align_y < 0.0)
1507 align_y = 0.0; 1507 align_y = 0.0;
1508 1508
1509 if ((EINA_DBL_CMP(align_x, sd->align_x)) && (EINA_DBL_CMP(align_y, sd->align_y))) return; 1509 if ((EINA_DBL_EQ(align_x, sd->align_x)) && (EINA_DBL_EQ(align_y, sd->align_y))) return;
1510 1510
1511 sd->align_x = align_x; 1511 sd->align_x = align_x;
1512 sd->align_y = align_y; 1512 sd->align_y = align_y;
diff --git a/src/lib/elementary/elc_multibuttonentry.c b/src/lib/elementary/elc_multibuttonentry.c
index 857c50ac8a..1accaa0157 100644
--- a/src/lib/elementary/elc_multibuttonentry.c
+++ b/src/lib/elementary/elc_multibuttonentry.c
@@ -1384,12 +1384,12 @@ _box_layout_cb(Evas_Object *o,
1384 efl_gfx_size_hint_combined_min_get(obj, &mnw, &mnh); 1384 efl_gfx_size_hint_combined_min_get(obj, &mnw, &mnh);
1385 1385
1386 fw = fh = EINA_FALSE; 1386 fw = fh = EINA_FALSE;
1387 if (EINA_DBL_CMP(ax, -1)) {fw = 1; ax = 0.5; } 1387 if (EINA_DBL_EQ(ax, -1)) {fw = 1; ax = 0.5; }
1388 if (EINA_DBL_CMP(ay, -1)) {fh = 1; ay = 0.5; } 1388 if (EINA_DBL_EQ(ay, -1)) {fh = 1; ay = 0.5; }
1389 if (rtl) ax = 1.0 - ax; 1389 if (rtl) ax = 1.0 - ax;
1390 1390
1391 ww = mnw; 1391 ww = mnw;
1392 if (!EINA_DBL_CMP(wx, 0)) 1392 if (!EINA_DBL_EQ(wx, 0))
1393 { 1393 {
1394 if (ww <= w - linew) ww = w - linew; 1394 if (ww <= w - linew) ww = w - linew;
1395 else ww = w; 1395 else ww = w;
diff --git a/src/lib/elementary/elc_player.c b/src/lib/elementary/elc_player.c
index 5e7670b9b4..9e063cfc05 100644
--- a/src/lib/elementary/elc_player.c
+++ b/src/lib/elementary/elc_player.c
@@ -253,7 +253,7 @@ _update_slider(void *data, const Efl_Event *event EINA_UNUSED)
253 elm_object_disabled_set(sd->slider, 253 elm_object_disabled_set(sd->slider,
254 (!seekable) | elm_widget_disabled_get(data)); 254 (!seekable) | elm_widget_disabled_get(data));
255 elm_slider_min_max_set(sd->slider, 0, length); 255 elm_slider_min_max_set(sd->slider, 0, length);
256 if ((!EINA_DBL_CMP(elm_slider_value_get(sd->slider), pos)) && 256 if ((!EINA_DBL_EQ(elm_slider_value_get(sd->slider), pos)) &&
257 (!sd->dragging)) 257 (!sd->dragging))
258 elm_slider_value_set(sd->slider, pos); 258 elm_slider_value_set(sd->slider, pos);
259} 259}
@@ -273,7 +273,7 @@ _update_position(void *data, const Efl_Event *event EINA_UNUSED)
273 ELM_PLAYER_DATA_GET(data, sd); 273 ELM_PLAYER_DATA_GET(data, sd);
274 274
275 pos = elm_slider_value_get(sd->slider); 275 pos = elm_slider_value_get(sd->slider);
276 if (!EINA_FLT_CMP(pos, elm_video_play_position_get(sd->video))) 276 if (!EINA_FLT_EQ(pos, elm_video_play_position_get(sd->video)))
277 elm_video_play_position_set(sd->video, pos); 277 elm_video_play_position_set(sd->video, pos);
278} 278}
279 279
@@ -298,7 +298,7 @@ _update_volume(void *data, const Efl_Event *event EINA_UNUSED)
298 ELM_PLAYER_DATA_GET(data, sd); 298 ELM_PLAYER_DATA_GET(data, sd);
299 299
300 vol = elm_slider_value_get(sd->vslider) / 100.0; 300 vol = elm_slider_value_get(sd->vslider) / 100.0;
301 if (!EINA_DBL_CMP(vol, elm_video_audio_level_get(sd->video))) 301 if (!EINA_DBL_EQ(vol, elm_video_audio_level_get(sd->video)))
302 elm_video_audio_level_set(sd->video, vol); 302 elm_video_audio_level_set(sd->video, vol);
303} 303}
304 304
diff --git a/src/lib/elementary/elc_popup.c b/src/lib/elementary/elc_popup.c
index a60b9a8573..2e49cebc35 100644
--- a/src/lib/elementary/elc_popup.c
+++ b/src/lib/elementary/elc_popup.c
@@ -467,9 +467,9 @@ _elm_popup_elm_layout_sizing_eval(Eo *obj, Elm_Popup_Data *sd)
467 elm_popup_align_get(obj, &horizontal, &vertical); 467 elm_popup_align_get(obj, &horizontal, &vertical);
468 evas_object_geometry_get(sd->parent, NULL, NULL, &w, &h); 468 evas_object_geometry_get(sd->parent, NULL, NULL, &w, &h);
469 469
470 if (EINA_DBL_CMP(horizontal, ELM_NOTIFY_ALIGN_FILL)) 470 if (EINA_DBL_EQ(horizontal, ELM_NOTIFY_ALIGN_FILL))
471 minw = w; 471 minw = w;
472 if (EINA_DBL_CMP(vertical, ELM_NOTIFY_ALIGN_FILL)) 472 if (EINA_DBL_EQ(vertical, ELM_NOTIFY_ALIGN_FILL))
473 minh = h; 473 minh = h;
474 edje_object_size_min_restricted_calc(elm_layout_edje_get(sd->content_area), 474 edje_object_size_min_restricted_calc(elm_layout_edje_get(sd->content_area),
475 &minw, &minh, minw, minh); 475 &minw, &minh, minw, minh);
@@ -1644,23 +1644,23 @@ _elm_notify_orient_get(const Evas_Object *obj)
1644 1644
1645 elm_notify_align_get(obj, &horizontal, &vertical); 1645 elm_notify_align_get(obj, &horizontal, &vertical);
1646 1646
1647 if ((EINA_DBL_CMP(horizontal, 0.5)) && (EINA_DBL_CMP(vertical, 0.0))) 1647 if ((EINA_DBL_EQ(horizontal, 0.5)) && (EINA_DBL_EQ(vertical, 0.0)))
1648 orient = ELM_NOTIFY_ORIENT_TOP; 1648 orient = ELM_NOTIFY_ORIENT_TOP;
1649 else if ((EINA_DBL_CMP(horizontal, 0.5)) && (EINA_DBL_CMP(vertical, 0.5))) 1649 else if ((EINA_DBL_EQ(horizontal, 0.5)) && (EINA_DBL_EQ(vertical, 0.5)))
1650 orient = ELM_NOTIFY_ORIENT_CENTER; 1650 orient = ELM_NOTIFY_ORIENT_CENTER;
1651 else if ((EINA_DBL_CMP(horizontal, 0.5)) && (EINA_DBL_CMP(vertical, 1.0))) 1651 else if ((EINA_DBL_EQ(horizontal, 0.5)) && (EINA_DBL_EQ(vertical, 1.0)))
1652 orient = ELM_NOTIFY_ORIENT_BOTTOM; 1652 orient = ELM_NOTIFY_ORIENT_BOTTOM;
1653 else if ((EINA_DBL_CMP(horizontal, 0.0)) && (EINA_DBL_CMP(vertical, 0.5))) 1653 else if ((EINA_DBL_EQ(horizontal, 0.0)) && (EINA_DBL_EQ(vertical, 0.5)))
1654 orient = ELM_NOTIFY_ORIENT_LEFT; 1654 orient = ELM_NOTIFY_ORIENT_LEFT;
1655 else if ((EINA_DBL_CMP(horizontal, 1.0)) && (EINA_DBL_CMP(vertical, 0.5))) 1655 else if ((EINA_DBL_EQ(horizontal, 1.0)) && (EINA_DBL_EQ(vertical, 0.5)))
1656 orient = ELM_NOTIFY_ORIENT_RIGHT; 1656 orient = ELM_NOTIFY_ORIENT_RIGHT;
1657 else if ((EINA_DBL_CMP(horizontal, 0.0)) && (EINA_DBL_CMP(vertical, 0.0))) 1657 else if ((EINA_DBL_EQ(horizontal, 0.0)) && (EINA_DBL_EQ(vertical, 0.0)))
1658 orient = ELM_NOTIFY_ORIENT_TOP_LEFT; 1658 orient = ELM_NOTIFY_ORIENT_TOP_LEFT;
1659 else if ((EINA_DBL_CMP(horizontal, 1.0)) && (EINA_DBL_CMP(vertical, 0.0))) 1659 else if ((EINA_DBL_EQ(horizontal, 1.0)) && (EINA_DBL_EQ(vertical, 0.0)))
1660 orient = ELM_NOTIFY_ORIENT_TOP_RIGHT; 1660 orient = ELM_NOTIFY_ORIENT_TOP_RIGHT;
1661 else if ((EINA_DBL_CMP(horizontal, 0.0)) && (EINA_DBL_CMP(vertical, 1.0))) 1661 else if ((EINA_DBL_EQ(horizontal, 0.0)) && (EINA_DBL_EQ(vertical, 1.0)))
1662 orient = ELM_NOTIFY_ORIENT_BOTTOM_LEFT; 1662 orient = ELM_NOTIFY_ORIENT_BOTTOM_LEFT;
1663 else if ((EINA_DBL_CMP(horizontal, 1.0)) && (EINA_DBL_CMP(vertical, 1.0))) 1663 else if ((EINA_DBL_EQ(horizontal, 1.0)) && (EINA_DBL_EQ(vertical, 1.0)))
1664 orient = ELM_NOTIFY_ORIENT_BOTTOM_RIGHT; 1664 orient = ELM_NOTIFY_ORIENT_BOTTOM_RIGHT;
1665 else 1665 else
1666 orient = ELM_NOTIFY_ORIENT_TOP; 1666 orient = ELM_NOTIFY_ORIENT_TOP;
diff --git a/src/lib/elementary/elm_actionslider.c b/src/lib/elementary/elm_actionslider.c
index a254258344..3823965929 100644
--- a/src/lib/elementary/elm_actionslider.c
+++ b/src/lib/elementary/elm_actionslider.c
@@ -156,10 +156,10 @@ _drag_button_move_cb(void *data,
156 156
157 edje_object_part_drag_value_get 157 edje_object_part_drag_value_get
158 (wd->resize_obj, "elm.drag_button_base", &pos, NULL); 158 (wd->resize_obj, "elm.drag_button_base", &pos, NULL);
159 if (EINA_DBL_CMP(pos, 0.0)) 159 if (EINA_DBL_EQ(pos, 0.0))
160 efl_event_callback_legacy_call 160 efl_event_callback_legacy_call
161 (obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, !elm_widget_mirrored_get(obj) ? "left" : "right"); 161 (obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, !elm_widget_mirrored_get(obj) ? "left" : "right");
162 else if (EINA_DBL_CMP(pos, 1.0)) 162 else if (EINA_DBL_EQ(pos, 1.0))
163 efl_event_callback_legacy_call 163 efl_event_callback_legacy_call
164 (obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, !elm_widget_mirrored_get(obj) ? "right" : "left"); 164 (obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, !elm_widget_mirrored_get(obj) ? "right" : "left");
165 else if (pos >= 0.45 && pos <= 0.55) 165 else if (pos >= 0.45 && pos <= 0.55)
@@ -199,8 +199,8 @@ _button_animator(void *data)
199 adjusted_final = (!elm_widget_mirrored_get(obj)) ? 199 adjusted_final = (!elm_widget_mirrored_get(obj)) ?
200 sd->final_position : 1.0 - sd->final_position; 200 sd->final_position : 1.0 - sd->final_position;
201 201
202 if ((EINA_DBL_CMP(adjusted_final, 0.0)) || 202 if ((EINA_DBL_EQ(adjusted_final, 0.0)) ||
203 (EINA_DBL_CMP(adjusted_final, 0.5) && cur_position >= adjusted_final)) 203 (EINA_DBL_EQ(adjusted_final, 0.5) && cur_position >= adjusted_final))
204 { 204 {
205 new_position = cur_position - move_amount; 205 new_position = cur_position - move_amount;
206 206
@@ -210,8 +210,8 @@ _button_animator(void *data)
210 flag_finish_animation = EINA_TRUE; 210 flag_finish_animation = EINA_TRUE;
211 } 211 }
212 } 212 }
213 else if ((EINA_DBL_CMP(adjusted_final, 1.0)) || 213 else if ((EINA_DBL_EQ(adjusted_final, 1.0)) ||
214 (EINA_DBL_CMP(adjusted_final, 0.5) && cur_position < adjusted_final)) 214 (EINA_DBL_EQ(adjusted_final, 0.5) && cur_position < adjusted_final))
215 { 215 {
216 new_position = cur_position + move_amount; 216 new_position = cur_position + move_amount;
217 217
@@ -232,15 +232,15 @@ _button_animator(void *data)
232 232
233 _text_get(obj, &left, &right, &center); 233 _text_get(obj, &left, &right, &center);
234 234
235 if ((!EINA_DBL_CMP(sd->final_position, 0)) && 235 if ((!EINA_DBL_EQ(sd->final_position, 0)) &&
236 (sd->enabled_position & ELM_ACTIONSLIDER_LEFT)) 236 (sd->enabled_position & ELM_ACTIONSLIDER_LEFT))
237 efl_event_callback_legacy_call 237 efl_event_callback_legacy_call
238 (obj, EFL_UI_EVENT_SELECTED, (char *)left); 238 (obj, EFL_UI_EVENT_SELECTED, (char *)left);
239 else if ((EINA_DBL_CMP(sd->final_position, 0.5)) && 239 else if ((EINA_DBL_EQ(sd->final_position, 0.5)) &&
240 (sd->enabled_position & ELM_ACTIONSLIDER_CENTER)) 240 (sd->enabled_position & ELM_ACTIONSLIDER_CENTER))
241 efl_event_callback_legacy_call 241 efl_event_callback_legacy_call
242 (obj, EFL_UI_EVENT_SELECTED, (char *)center); 242 (obj, EFL_UI_EVENT_SELECTED, (char *)center);
243 else if ((EINA_DBL_CMP(sd->final_position, 1)) && 243 else if ((EINA_DBL_EQ(sd->final_position, 1)) &&
244 (sd->enabled_position & ELM_ACTIONSLIDER_RIGHT)) 244 (sd->enabled_position & ELM_ACTIONSLIDER_RIGHT))
245 efl_event_callback_legacy_call 245 efl_event_callback_legacy_call
246 (obj, EFL_UI_EVENT_SELECTED, (char *)right); 246 (obj, EFL_UI_EVENT_SELECTED, (char *)right);
@@ -276,8 +276,8 @@ _drag_button_up_cb(void *data,
276 _text_get(obj, &left, &right, &center); 276 _text_get(obj, &left, &right, &center);
277 277
278 if ((sd->enabled_position & ELM_ACTIONSLIDER_LEFT) && 278 if ((sd->enabled_position & ELM_ACTIONSLIDER_LEFT) &&
279 ((!elm_widget_mirrored_get(obj) && EINA_DBL_CMP(position, 0.0)) || 279 ((!elm_widget_mirrored_get(obj) && EINA_DBL_EQ(position, 0.0)) ||
280 (elm_widget_mirrored_get(obj) && EINA_DBL_CMP(position, 1.0)))) 280 (elm_widget_mirrored_get(obj) && EINA_DBL_EQ(position, 1.0))))
281 { 281 {
282 sd->final_position = 0; 282 sd->final_position = 0;
283 efl_event_callback_legacy_call 283 efl_event_callback_legacy_call
@@ -300,8 +300,8 @@ _drag_button_up_cb(void *data,
300 } 300 }
301 301
302 if ((sd->enabled_position & ELM_ACTIONSLIDER_RIGHT) && 302 if ((sd->enabled_position & ELM_ACTIONSLIDER_RIGHT) &&
303 ((!elm_widget_mirrored_get(obj) && EINA_DBL_CMP(position, 1)) || 303 ((!elm_widget_mirrored_get(obj) && EINA_DBL_EQ(position, 1)) ||
304 (elm_widget_mirrored_get(obj) && EINA_DBL_CMP(position, 0)))) 304 (elm_widget_mirrored_get(obj) && EINA_DBL_EQ(position, 0))))
305 { 305 {
306 sd->final_position = 1; 306 sd->final_position = 1;
307 efl_event_callback_legacy_call 307 efl_event_callback_legacy_call
@@ -370,7 +370,7 @@ _track_move_cb(void *data,
370 370
371 if (!strcmp(emission, "elm,action,down,right")) 371 if (!strcmp(emission, "elm,action,down,right"))
372 { 372 {
373 if (EINA_DBL_CMP(sd->final_position, 0.0)) 373 if (EINA_DBL_EQ(sd->final_position, 0.0))
374 { 374 {
375 if (sd->enabled_position & ELM_ACTIONSLIDER_CENTER) 375 if (sd->enabled_position & ELM_ACTIONSLIDER_CENTER)
376 { 376 {
@@ -385,7 +385,7 @@ _track_move_cb(void *data,
385 sd->final_position = 1.0; 385 sd->final_position = 1.0;
386 } 386 }
387 } 387 }
388 else if (EINA_DBL_CMP(sd->final_position, 0.5) && 388 else if (EINA_DBL_EQ(sd->final_position, 0.5) &&
389 (sd->enabled_position & ELM_ACTIONSLIDER_RIGHT)) 389 (sd->enabled_position & ELM_ACTIONSLIDER_RIGHT))
390 { 390 {
391 efl_event_callback_legacy_call 391 efl_event_callback_legacy_call
@@ -404,7 +404,7 @@ _track_move_cb(void *data,
404 } 404 }
405 else 405 else
406 { 406 {
407 if (EINA_DBL_CMP(sd->final_position, 1.0)) 407 if (EINA_DBL_EQ(sd->final_position, 1.0))
408 { 408 {
409 if (sd->enabled_position & ELM_ACTIONSLIDER_CENTER) 409 if (sd->enabled_position & ELM_ACTIONSLIDER_CENTER)
410 { 410 {
@@ -419,7 +419,7 @@ _track_move_cb(void *data,
419 sd->final_position = 0.0; 419 sd->final_position = 0.0;
420 } 420 }
421 } 421 }
422 else if (EINA_DBL_CMP(sd->final_position, 0.5) && 422 else if (EINA_DBL_EQ(sd->final_position, 0.5) &&
423 (sd->enabled_position & ELM_ACTIONSLIDER_LEFT)) 423 (sd->enabled_position & ELM_ACTIONSLIDER_LEFT))
424 { 424 {
425 efl_event_callback_legacy_call 425 efl_event_callback_legacy_call
@@ -621,15 +621,15 @@ _elm_actionslider_selected_label_get(Eo *obj, Elm_Actionslider_Data *sd)
621 621
622 _text_get(obj, &left, &right, &center); 622 _text_get(obj, &left, &right, &center);
623 623
624 if ((EINA_DBL_CMP(sd->final_position, 0.0)) && 624 if ((EINA_DBL_EQ(sd->final_position, 0.0)) &&
625 (sd->enabled_position & ELM_ACTIONSLIDER_LEFT)) 625 (sd->enabled_position & ELM_ACTIONSLIDER_LEFT))
626 ret = left; 626 ret = left;
627 627
628 if ((EINA_DBL_CMP(sd->final_position, 0.5)) && 628 if ((EINA_DBL_EQ(sd->final_position, 0.5)) &&
629 (sd->enabled_position & ELM_ACTIONSLIDER_CENTER)) 629 (sd->enabled_position & ELM_ACTIONSLIDER_CENTER))
630 ret = center; 630 ret = center;
631 631
632 if ((EINA_DBL_CMP(sd->final_position, 1.0)) && 632 if ((EINA_DBL_EQ(sd->final_position, 1.0)) &&
633 (sd->enabled_position & ELM_ACTIONSLIDER_RIGHT)) 633 (sd->enabled_position & ELM_ACTIONSLIDER_RIGHT))
634 ret = right; 634 ret = right;
635 635
diff --git a/src/lib/elementary/elm_button.c b/src/lib/elementary/elm_button.c
index f2d4dbc911..5dba423ad9 100644
--- a/src/lib/elementary/elm_button.c
+++ b/src/lib/elementary/elm_button.c
@@ -382,7 +382,7 @@ _elm_button_autorepeat_initial_timeout_set(Eo *obj, Elm_Button_Data *sd, double
382 return; 382 return;
383 } 383 }
384 384
385 if (EINA_DBL_CMP(sd->ar_initial_timeout, t)) return; 385 if (EINA_DBL_EQ(sd->ar_initial_timeout, t)) return;
386 ELM_SAFE_FREE(sd->timer, ecore_timer_del); 386 ELM_SAFE_FREE(sd->timer, ecore_timer_del);
387 sd->ar_initial_timeout = t; 387 sd->ar_initial_timeout = t;
388} 388}
@@ -405,7 +405,7 @@ _elm_button_autorepeat_gap_timeout_set(Eo *obj, Elm_Button_Data *sd, double t)
405 return; 405 return;
406 } 406 }
407 407
408 if (EINA_DBL_CMP(sd->ar_gap_timeout, t)) return; 408 if (EINA_DBL_EQ(sd->ar_gap_timeout, t)) return;
409 409
410 sd->ar_gap_timeout = t; 410 sd->ar_gap_timeout = t;
411 if ((sd->repeating) && (sd->timer)) ecore_timer_interval_set(sd->timer, t); 411 if ((sd->repeating) && (sd->timer)) ecore_timer_interval_set(sd->timer, t);
diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c
index 06d260ea08..7db5dc033a 100644
--- a/src/lib/elementary/elm_cnp.c
+++ b/src/lib/elementary/elm_cnp.c
@@ -5499,7 +5499,7 @@ _cont_obj_anim_start(void *data)
5499 _drag_anim_start(st); 5499 _drag_anim_start(st);
5500 else 5500 else
5501 { 5501 {
5502 if (!EINA_DBL_CMP(st->anim_tm, 0.0)) 5502 if (!EINA_DBL_EQ(st->anim_tm, 0.0))
5503 { 5503 {
5504 // even if we don't manage the icons animation, we have 5504 // even if we don't manage the icons animation, we have
5505 // to wait until it is finished before beginning drag. 5505 // to wait until it is finished before beginning drag.
diff --git a/src/lib/elementary/elm_map.c b/src/lib/elementary/elm_map.c
index 344f6debe9..bf00317774 100644
--- a/src/lib/elementary/elm_map.c
+++ b/src/lib/elementary/elm_map.c
@@ -2946,7 +2946,7 @@ _kml_parse(Elm_Map_Route *r)
2946 } 2946 }
2947 fclose(f); 2947 fclose(f);
2948 2948
2949 if (!EINA_DBL_CMP(dump.distance, 0)) r->info.distance = dump.distance; 2949 if (!EINA_DBL_EQ(dump.distance, 0)) r->info.distance = dump.distance;
2950 if (dump.description) 2950 if (dump.description)
2951 { 2951 {
2952 eina_stringshare_replace(&r->info.waypoints, dump.description); 2952 eina_stringshare_replace(&r->info.waypoints, dump.description);
diff --git a/src/lib/elementary/elm_panes.c b/src/lib/elementary/elm_panes.c
index 509ca301bc..0de54bd274 100644
--- a/src/lib/elementary/elm_panes.c
+++ b/src/lib/elementary/elm_panes.c
@@ -100,8 +100,8 @@ _elm_panes_elm_widget_focus_next(Eo *obj, Elm_Panes_Data *sd, Elm_Focus_Directio
100 left = elm_layout_content_get(obj, "left"); 100 left = elm_layout_content_get(obj, "left");
101 right = elm_layout_content_get(obj, "right"); 101 right = elm_layout_content_get(obj, "right");
102 102
103 if (((sd->orientation == EFL_ORIENT_HORIZONTAL) && (EINA_DBL_CMP(h, 0.0))) || 103 if (((sd->orientation == EFL_ORIENT_HORIZONTAL) && (EINA_DBL_EQ(h, 0.0))) ||
104 ((sd->orientation == EFL_ORIENT_VERTICAL) && (EINA_DBL_CMP(w, 0.0)))) 104 ((sd->orientation == EFL_ORIENT_VERTICAL) && (EINA_DBL_EQ(w, 0.0))))
105 { 105 {
106 return elm_widget_focus_next_get(right, dir, next, next_item); 106 return elm_widget_focus_next_get(right, dir, next, next_item);
107 } 107 }
diff --git a/src/lib/elementary/elm_photocam.c b/src/lib/elementary/elm_photocam.c
index d9b05f5abe..3ed1bb3c86 100644
--- a/src/lib/elementary/elm_photocam.c
+++ b/src/lib/elementary/elm_photocam.c
@@ -1859,7 +1859,7 @@ _elm_photocam_zoom_set(Eo *obj, Elm_Photocam_Data *sd, double zoom)
1859 Eina_Bool an = EINA_FALSE; 1859 Eina_Bool an = EINA_FALSE;
1860 1860
1861 if (zoom <= (1.0 / 256.0)) zoom = (1.0 / 256.0); 1861 if (zoom <= (1.0 / 256.0)) zoom = (1.0 / 256.0);
1862 if (EINA_DBL_CMP(zoom, sd->zoom)) return; 1862 if (EINA_DBL_EQ(zoom, sd->zoom)) return;
1863 1863
1864 sd->zoom = zoom; 1864 sd->zoom = zoom;
1865 sd->size.ow = sd->size.w; 1865 sd->size.ow = sd->size.w;
@@ -1897,7 +1897,7 @@ _elm_photocam_zoom_set(Eo *obj, Elm_Photocam_Data *sd, double zoom)
1897 z = (double)sd->size.imw / pw; 1897 z = (double)sd->size.imw / pw;
1898 else 1898 else
1899 z = (double)sd->size.imh / ph; 1899 z = (double)sd->size.imh / ph;
1900 if (!EINA_DBL_CMP(z, sd->zoom)) 1900 if (!EINA_DBL_EQ(z, sd->zoom))
1901 zoom_changed = 1; 1901 zoom_changed = 1;
1902 sd->zoom = z; 1902 sd->zoom = z;
1903 sd->size.nw = pw; 1903 sd->size.nw = pw;
@@ -1943,7 +1943,7 @@ _elm_photocam_zoom_set(Eo *obj, Elm_Photocam_Data *sd, double zoom)
1943 } 1943 }
1944 else if ((sd->size.imw < rw) && (sd->size.imh < rh)) 1944 else if ((sd->size.imw < rw) && (sd->size.imh < rh))
1945 { 1945 {
1946 if (!EINA_DBL_CMP(sd->zoom, 1)) zoom_changed = 1; 1946 if (!EINA_DBL_EQ(sd->zoom, 1)) zoom_changed = 1;
1947 sd->zoom = 1; 1947 sd->zoom = 1;
1948 sd->size.nw = sd->size.imw; 1948 sd->size.nw = sd->size.imw;
1949 sd->size.nh = sd->size.imh; 1949 sd->size.nh = sd->size.imh;
@@ -1962,7 +1962,7 @@ _elm_photocam_zoom_set(Eo *obj, Elm_Photocam_Data *sd, double zoom)
1962 z = (double)sd->size.imw / pw; 1962 z = (double)sd->size.imw / pw;
1963 else 1963 else
1964 z = (double)sd->size.imh / ph; 1964 z = (double)sd->size.imh / ph;
1965 if (EINA_DBL_CMP(z, sd->zoom)) 1965 if (EINA_DBL_EQ(z, sd->zoom))
1966 zoom_changed = 1; 1966 zoom_changed = 1;
1967 sd->zoom = z; 1967 sd->zoom = z;
1968 sd->size.nw = pw; 1968 sd->size.nw = pw;
diff --git a/src/lib/elementary/elm_progressbar.c b/src/lib/elementary/elm_progressbar.c
index 34e7ec11d6..59f7670c45 100644
--- a/src/lib/elementary/elm_progressbar.c
+++ b/src/lib/elementary/elm_progressbar.c
@@ -425,7 +425,7 @@ _elm_progressbar_efl_ui_progress_span_size_get(Eo *obj EINA_UNUSED, Elm_Progress
425EOLIAN static void 425EOLIAN static void
426_elm_progressbar_efl_ui_progress_progress_value_set(Eo *obj, Elm_Progressbar_Data *sd, double val) 426_elm_progressbar_efl_ui_progress_progress_value_set(Eo *obj, Elm_Progressbar_Data *sd, double val)
427{ 427{
428 if (EINA_DBL_CMP(sd->val, val)) return; 428 if (EINA_DBL_EQ(sd->val, val)) return;
429 429
430 elm_progressbar_part_value_set(obj, "elm.cur.progressbar", val); 430 elm_progressbar_part_value_set(obj, "elm.cur.progressbar", val);
431} 431}
diff --git a/src/lib/elementary/elm_scroller.c b/src/lib/elementary/elm_scroller.c
index 8167b0281b..0f74ee1fef 100644
--- a/src/lib/elementary/elm_scroller.c
+++ b/src/lib/elementary/elm_scroller.c
@@ -148,7 +148,7 @@ _key_action_move(Evas_Object *obj, const char *params)
148 cur_weight += ((f_x - c_x) - x) * ((f_x - c_x) - x); 148 cur_weight += ((f_x - c_x) - x) * ((f_x - c_x) - x);
149 if ((f_y - c_y) > y) 149 if ((f_y - c_y) > y)
150 cur_weight += ((f_y - c_y) - y) * ((f_y - c_y) - y); 150 cur_weight += ((f_y - c_y) - y) * ((f_y - c_y) - y);
151 if (EINA_DBL_CMP(cur_weight, 0.0)) 151 if (EINA_DBL_EQ(cur_weight, 0.0))
152 { 152 {
153 elm_widget_focus_steal(cur, NULL); 153 elm_widget_focus_steal(cur, NULL);
154 eina_list_free(can_focus_list); 154 eina_list_free(can_focus_list);
diff --git a/src/lib/elementary/elm_thumb.c b/src/lib/elementary/elm_thumb.c
index b1893de8c5..41f2cbf3b9 100644
--- a/src/lib/elementary/elm_thumb.c
+++ b/src/lib/elementary/elm_thumb.c
@@ -358,7 +358,7 @@ _thumb_start(Elm_Thumb_Data *sd)
358 ethumb_client_orientation_set(_elm_ethumb_client, sd->thumb.orient); 358 ethumb_client_orientation_set(_elm_ethumb_client, sd->thumb.orient);
359 if (sd->thumb.tw && sd->thumb.th) 359 if (sd->thumb.tw && sd->thumb.th)
360 ethumb_client_size_set(_elm_ethumb_client, sd->thumb.tw, sd->thumb.th); 360 ethumb_client_size_set(_elm_ethumb_client, sd->thumb.tw, sd->thumb.th);
361 if (!EINA_DBL_CMP(sd->thumb.cropx, 0) && !EINA_DBL_CMP(sd->thumb.cropy, 0)) 361 if (!EINA_DBL_EQ(sd->thumb.cropx, 0) && !EINA_DBL_EQ(sd->thumb.cropy, 0))
362 ethumb_client_crop_align_set(_elm_ethumb_client, sd->thumb.cropx, sd->thumb.cropy); 362 ethumb_client_crop_align_set(_elm_ethumb_client, sd->thumb.cropx, sd->thumb.cropy);
363 if (sd->thumb.quality) 363 if (sd->thumb.quality)
364 ethumb_client_quality_set(_elm_ethumb_client, sd->thumb.quality); 364 ethumb_client_quality_set(_elm_ethumb_client, sd->thumb.quality);
diff --git a/src/lib/embryo/embryo_float.c b/src/lib/embryo/embryo_float.c
index 0d16e62965..f1e51df96d 100644
--- a/src/lib/embryo/embryo_float.c
+++ b/src/lib/embryo/embryo_float.c
@@ -125,9 +125,9 @@ _embryo_fp_div(Embryo_Program *ep EINA_UNUSED, Embryo_Cell *params)
125 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0; 125 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
126 f = EMBRYO_CELL_TO_FLOAT(params[1]); 126 f = EMBRYO_CELL_TO_FLOAT(params[1]);
127 ff = EMBRYO_CELL_TO_FLOAT(params[2]); 127 ff = EMBRYO_CELL_TO_FLOAT(params[2]);
128 if (EINA_FLT_CMP(ff, 0.0)) 128 if (EINA_FLT_EQ(ff, 0.0))
129 { 129 {
130 if (EINA_FLT_CMP(f, 0.0)) 130 if (EINA_FLT_EQ(f, 0.0))
131 return EMBRYO_FLOAT_TO_CELL(0.0f); 131 return EMBRYO_FLOAT_TO_CELL(0.0f);
132 else if (f < 0.0) 132 else if (f < 0.0)
133 return EMBRYO_FLOAT_TO_CELL(-MAXFLOAT); 133 return EMBRYO_FLOAT_TO_CELL(-MAXFLOAT);
@@ -217,7 +217,7 @@ _embryo_fp_cmp(Embryo_Program *ep EINA_UNUSED, Embryo_Cell *params)
217 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0; 217 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
218 f = EMBRYO_CELL_TO_FLOAT(params[1]); 218 f = EMBRYO_CELL_TO_FLOAT(params[1]);
219 ff = EMBRYO_CELL_TO_FLOAT(params[2]); 219 ff = EMBRYO_CELL_TO_FLOAT(params[2]);
220 if (EINA_FLT_CMP(f, ff)) return 0; 220 if (EINA_FLT_EQ(f, ff)) return 0;
221 else if (f > ff) 221 else if (f > ff)
222 return 1; 222 return 1;
223 return -1; 223 return -1;
@@ -269,14 +269,14 @@ _embryo_fp_log(Embryo_Program *ep, Embryo_Cell *params)
269 embryo_program_error_set(ep, EMBRYO_ERROR_DOMAIN); 269 embryo_program_error_set(ep, EMBRYO_ERROR_DOMAIN);
270 return 0; 270 return 0;
271 } 271 }
272 if (EINA_FLT_CMP(ff, 10.0)) 272 if (EINA_FLT_EQ(ff, 10.0))
273 f = log10f(f); 273 f = log10f(f);
274 else if (EINA_FLT_CMP(ff, 2.0)) 274 else if (EINA_FLT_EQ(ff, 2.0))
275 f = log2f(f); 275 f = log2f(f);
276 else 276 else
277 { 277 {
278 tf = logf(ff); 278 tf = logf(ff);
279 if (EINA_FLT_CMP(tf, 0.0)) 279 if (EINA_FLT_EQ(tf, 0.0))
280 f = 0.0; 280 f = 0.0;
281 else f = (logf(f) / tf); 281 else f = (logf(f) / tf);
282 } 282 }
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index 8add1227e4..8ba69400b7 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -1540,8 +1540,8 @@ _emotion_video_pos_update(Evas_Object *obj, double pos, double len)
1540 int npos = 0, nlen = 0; 1540 int npos = 0, nlen = 0;
1541 1541
1542 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); 1542 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
1543 if (!EINA_DBL_CMP(pos, sd->pos)) npos = 1; 1543 if (!EINA_DBL_EQ(pos, sd->pos)) npos = 1;
1544 if (!EINA_DBL_CMP(len, sd->len)) nlen = 1; 1544 if (!EINA_DBL_EQ(len, sd->len)) nlen = 1;
1545 sd->pos = pos; 1545 sd->pos = pos;
1546 sd->len = len; 1546 sd->len = len;
1547 if (npos) 1547 if (npos)
@@ -1573,8 +1573,8 @@ _emotion_frame_resize(Evas_Object *obj, int w, int h, double ratio)
1573 } 1573 }
1574 if (h > 0) tmp = (double)w / (double)h; 1574 if (h > 0) tmp = (double)w / (double)h;
1575 else tmp = 1.0; 1575 else tmp = 1.0;
1576 if (!EINA_DBL_CMP(ratio, tmp)) tmp = ratio; 1576 if (!EINA_DBL_EQ(ratio, tmp)) tmp = ratio;
1577 if (!EINA_DBL_CMP(tmp, sd->ratio)) 1577 if (!EINA_DBL_EQ(tmp, sd->ratio))
1578 { 1578 {
1579 sd->ratio = tmp; 1579 sd->ratio = tmp;
1580 changed = 1; 1580 changed = 1;
@@ -1619,7 +1619,7 @@ _emotion_open_done(Evas_Object *obj)
1619 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); 1619 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
1620 sd->open = 1; 1620 sd->open = 1;
1621 1621
1622 if (!EINA_DBL_CMP(sd->remember_jump, 0.0)) 1622 if (!EINA_DBL_EQ(sd->remember_jump, 0.0))
1623 emotion_object_position_set(obj, sd->remember_jump); 1623 emotion_object_position_set(obj, sd->remember_jump);
1624 if (sd->remember_play != sd->play) 1624 if (sd->remember_play != sd->play)
1625 emotion_object_play_set(obj, sd->remember_play); 1625 emotion_object_play_set(obj, sd->remember_play);
@@ -1737,8 +1737,8 @@ _emotion_frame_refill(Evas_Object *obj, double w, double h)
1737 Efl_Canvas_Video_Data *sd; 1737 Efl_Canvas_Video_Data *sd;
1738 1738
1739 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); 1739 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
1740 if ((!EINA_DBL_CMP(sd->fill.w, w)) || 1740 if ((!EINA_DBL_EQ(sd->fill.w, w)) ||
1741 (!EINA_DBL_CMP(sd->fill.h, h))) 1741 (!EINA_DBL_EQ(sd->fill.h, h)))
1742 { 1742 {
1743 Evas_Coord ow, oh; 1743 Evas_Coord ow, oh;
1744 1744
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
diff --git a/src/lib/evas/cache/evas_cache_image.c b/src/lib/evas/cache/evas_cache_image.c
index 3a3d47ba99..3c46d4a81a 100644
--- a/src/lib/evas/cache/evas_cache_image.c
+++ b/src/lib/evas/cache/evas_cache_image.c
@@ -744,7 +744,7 @@ _evas_cache_image_loadopts_append(char *hkey, Evas_Image_Load_Opts **plo)
744 if ((!lo) || 744 if ((!lo) ||
745 (lo && 745 (lo &&
746 (lo->emile.scale_down_by == 0) && 746 (lo->emile.scale_down_by == 0) &&
747 (EINA_DBL_CMP(lo->emile.dpi, 0.0)) && 747 (EINA_DBL_EQ(lo->emile.dpi, 0.0)) &&
748 ((lo->emile.w == 0) || (lo->emile.h == 0)) && 748 ((lo->emile.w == 0) || (lo->emile.h == 0)) &&
749 ((lo->emile.region.w == 0) || (lo->emile.region.h == 0)) && 749 ((lo->emile.region.w == 0) || (lo->emile.region.h == 0)) &&
750 (lo->emile.orientation == 0) 750 (lo->emile.orientation == 0)
diff --git a/src/lib/evas/cache2/evas_cache2.c b/src/lib/evas/cache2/evas_cache2.c
index 60871dd741..a7bd68c453 100644
--- a/src/lib/evas/cache2/evas_cache2.c
+++ b/src/lib/evas/cache2/evas_cache2.c
@@ -693,7 +693,7 @@ evas_cache2_image_open(Evas_Cache2 *cache, const char *path, const char *key,
693 if ((!lo) || 693 if ((!lo) ||
694 (lo && 694 (lo &&
695 (lo->emile.scale_down_by == 0) && 695 (lo->emile.scale_down_by == 0) &&
696 (EINA_DBL_CMP(lo->emile.dpi, 0.0)) && 696 (EINA_DBL_EQ(lo->emile.dpi, 0.0)) &&
697 ((lo->emile.w == 0) || (lo->emile.h == 0)) && 697 ((lo->emile.w == 0) || (lo->emile.h == 0)) &&
698 ((lo->emile.region.w == 0) || (lo->emile.region.h == 0)) && 698 ((lo->emile.region.w == 0) || (lo->emile.region.h == 0)) &&
699 ((lo->emile.scale_load.dst_w == 0) || (lo->emile.scale_load.dst_h == 0)) && 699 ((lo->emile.scale_load.dst_w == 0) || (lo->emile.scale_load.dst_h == 0)) &&
diff --git a/src/lib/evas/canvas/efl_canvas_image.c b/src/lib/evas/canvas/efl_canvas_image.c
index a3ff711037..3ebb2c92d9 100644
--- a/src/lib/evas/canvas/efl_canvas_image.c
+++ b/src/lib/evas/canvas/efl_canvas_image.c
@@ -197,7 +197,7 @@ _evas_image_load_dpi_set(Eo *eo_obj, double dpi)
197 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); 197 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
198 Evas_Image_Data *o = efl_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS); 198 Evas_Image_Data *o = efl_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
199 199
200 if (EINA_DBL_CMP(dpi, o->load_opts->dpi)) return; 200 if (EINA_DBL_EQ(dpi, o->load_opts->dpi)) return;
201 evas_object_async_block(obj); 201 evas_object_async_block(obj);
202 EINA_COW_LOAD_OPTS_WRITE_BEGIN(o, low) 202 EINA_COW_LOAD_OPTS_WRITE_BEGIN(o, low)
203 low->dpi = dpi; 203 low->dpi = dpi;
diff --git a/src/lib/evas/canvas/efl_input_pointer.c b/src/lib/evas/canvas/efl_input_pointer.c
index 81dea847dc..89b8fc5045 100644
--- a/src/lib/evas/canvas/efl_input_pointer.c
+++ b/src/lib/evas/canvas/efl_input_pointer.c
@@ -485,7 +485,7 @@ _efl_input_pointer_value_set(Eo *obj EINA_UNUSED, Efl_Input_Pointer_Data *pd, Ef
485 return EINA_FALSE; // TODO 485 return EINA_FALSE; // TODO
486 486
487 case EFL_INPUT_VALUE_WHEEL_DIRECTION: 487 case EFL_INPUT_VALUE_WHEEL_DIRECTION:
488 if (EINA_DBL_CMP(val, 0.0)) 488 if (EINA_DBL_EQ(val, 0.0))
489 pd->wheel.dir = EFL_ORIENT_VERTICAL; 489 pd->wheel.dir = EFL_ORIENT_VERTICAL;
490 else 490 else
491 pd->wheel.dir = EFL_ORIENT_HORIZONTAL; 491 pd->wheel.dir = EFL_ORIENT_HORIZONTAL;
diff --git a/src/lib/evas/canvas/evas_canvas3d_mesh.c b/src/lib/evas/canvas/evas_canvas3d_mesh.c
index b24c7ec645..7ec6fb6566 100644
--- a/src/lib/evas/canvas/evas_canvas3d_mesh.c
+++ b/src/lib/evas/canvas/evas_canvas3d_mesh.c
@@ -833,7 +833,7 @@ _evas_canvas3d_mesh_alpha_func_set(Eo *obj, Evas_Canvas3D_Mesh_Data *pd, Evas_Ca
833 Evas_Real ref_value) 833 Evas_Real ref_value)
834{ 834{
835 if (pd->alpha_comparison == comparison && 835 if (pd->alpha_comparison == comparison &&
836 (EINA_DBL_CMP(pd->alpha_ref_value, ref_value))) 836 (EINA_DBL_EQ(pd->alpha_ref_value, ref_value)))
837 return; 837 return;
838 pd->alpha_comparison = comparison; 838 pd->alpha_comparison = comparison;
839 pd->alpha_ref_value = ref_value; 839 pd->alpha_ref_value = ref_value;
@@ -1116,7 +1116,7 @@ EOLIAN static void
1116_evas_canvas3d_mesh_shadows_constant_bias_set(Eo *obj EINA_UNUSED, Evas_Canvas3D_Mesh_Data *pd, 1116_evas_canvas3d_mesh_shadows_constant_bias_set(Eo *obj EINA_UNUSED, Evas_Canvas3D_Mesh_Data *pd,
1117 Evas_Real bias) 1117 Evas_Real bias)
1118{ 1118{
1119 if (!EINA_DBL_CMP(pd->shadows_constant_bias, bias)) 1119 if (!EINA_DBL_EQ(pd->shadows_constant_bias, bias))
1120 { 1120 {
1121 pd->shadows_constant_bias = bias; 1121 pd->shadows_constant_bias = bias;
1122 evas_canvas3d_object_change(obj, EVAS_CANVAS3D_STATE_MESH_SHADOWS_CONSTANT_BIAS, NULL); 1122 evas_canvas3d_object_change(obj, EVAS_CANVAS3D_STATE_MESH_SHADOWS_CONSTANT_BIAS, NULL);
diff --git a/src/lib/evas/canvas/evas_canvas3d_node.c b/src/lib/evas/canvas/evas_canvas3d_node.c
index bdc1531c48..30a01a6ecf 100644
--- a/src/lib/evas/canvas/evas_canvas3d_node.c
+++ b/src/lib/evas/canvas/evas_canvas3d_node.c
@@ -34,9 +34,9 @@ _generate_unic_color_key(Evas_Color *color, Evas_Color *bg_color, Evas_Canvas3D_
34 34
35 GET_NEXT_COLOR 35 GET_NEXT_COLOR
36 /*Get another color if color equal with background color*/ 36 /*Get another color if color equal with background color*/
37 if ((EINA_DBL_CMP(bg_color->r, (double)red)) && 37 if ((EINA_DBL_EQ(bg_color->r, (double)red)) &&
38 (EINA_DBL_CMP(bg_color->g, (double)green)) && 38 (EINA_DBL_EQ(bg_color->g, (double)green)) &&
39 (EINA_DBL_CMP(bg_color->b, (double)blue))) 39 (EINA_DBL_EQ(bg_color->b, (double)blue)))
40 { 40 {
41 GET_NEXT_COLOR 41 GET_NEXT_COLOR
42 } 42 }
diff --git a/src/lib/evas/canvas/evas_canvas3d_primitive.c b/src/lib/evas/canvas/evas_canvas3d_primitive.c
index 75420c1ba1..4bec90fad6 100644
--- a/src/lib/evas/canvas/evas_canvas3d_primitive.c
+++ b/src/lib/evas/canvas/evas_canvas3d_primitive.c
@@ -136,8 +136,8 @@ _evas_canvas3d_primitive_tex_scale_set(Eo *obj EINA_UNUSED,
136 Evas_Real x, 136 Evas_Real x,
137 Evas_Real y) 137 Evas_Real y)
138{ 138{
139 if (!EINA_DBL_CMP(x, 0.0)) pd->tex_scale.x = x; 139 if (!EINA_DBL_EQ(x, 0.0)) pd->tex_scale.x = x;
140 if (!EINA_DBL_CMP(y, 0.0)) pd->tex_scale.y = y; 140 if (!EINA_DBL_EQ(y, 0.0)) pd->tex_scale.y = y;
141} 141}
142 142
143EOLIAN static void 143EOLIAN static void
diff --git a/src/lib/evas/canvas/evas_canvas3d_scene.c b/src/lib/evas/canvas/evas_canvas3d_scene.c
index 6900970466..2ff3d07927 100644
--- a/src/lib/evas/canvas/evas_canvas3d_scene.c
+++ b/src/lib/evas/canvas/evas_canvas3d_scene.c
@@ -489,7 +489,7 @@ _pick_data_mesh_add(Evas_Canvas3D_Pick_Data *data, const Evas_Ray3 *ray,
489 } 489 }
490 } 490 }
491 } 491 }
492 else if ((EINA_DBL_CMP(pdmesh->index_count, 0.0)) && 492 else if ((EINA_DBL_EQ(pdmesh->index_count, 0.0)) &&
493 pdmesh->vertex_count != 0) 493 pdmesh->vertex_count != 0)
494 { 494 {
495 if (pdmesh->assembly == EVAS_CANVAS3D_VERTEX_ASSEMBLY_TRIANGLES) 495 if (pdmesh->assembly == EVAS_CANVAS3D_VERTEX_ASSEMBLY_TRIANGLES)
diff --git a/src/lib/evas/canvas/evas_events.c b/src/lib/evas/canvas/evas_events.c
index d01dfec48a..ff202928a2 100644
--- a/src/lib/evas/canvas/evas_events.c
+++ b/src/lib/evas/canvas/evas_events.c
@@ -358,9 +358,9 @@ _transform_to_src_space_f(Evas_Object_Protected_Data *obj, Evas_Object_Protected
358 tmp_x -= obj->cur->geometry.x; 358 tmp_x -= obj->cur->geometry.x;
359 tmp_y -= obj->cur->geometry.y; 359 tmp_y -= obj->cur->geometry.y;
360 360
361 if (!EINA_DBL_CMP(obj_w, src_w)) 361 if (!EINA_DBL_EQ(obj_w, src_w))
362 tmp_x = (tmp_x * (src_w / obj_w)); 362 tmp_x = (tmp_x * (src_w / obj_w));
363 if (!EINA_DBL_CMP(obj_h, src_h)) 363 if (!EINA_DBL_EQ(obj_h, src_h))
364 tmp_y = (tmp_y * (src_h / obj_h)); 364 tmp_y = (tmp_y * (src_h / obj_h));
365 365
366 tmp_x += src->cur->geometry.x; 366 tmp_x += src->cur->geometry.x;
@@ -2777,8 +2777,8 @@ _canvas_event_feed_multi_internal(Evas *eo_e, Evas_Public_Data *e,
2777 evt = efl_input_instance_get(EFL_INPUT_POINTER_CLASS, eo_e, (void **) &ev); 2777 evt = efl_input_instance_get(EFL_INPUT_POINTER_CLASS, eo_e, (void **) &ev);
2778 if (!e || !ev) return; 2778 if (!e || !ev) return;
2779 2779
2780 if (EINA_DBL_CMP(fx, 0.0)) fx = x; 2780 if (EINA_DBL_EQ(fx, 0.0)) fx = x;
2781 if (EINA_DBL_CMP(fy, 0.0)) fy = y; 2781 if (EINA_DBL_EQ(fy, 0.0)) fy = y;
2782 2782
2783 ev->action = action; 2783 ev->action = action;
2784 ev->tool = d; 2784 ev->tool = d;
diff --git a/src/lib/evas/canvas/evas_filter_mixin.c b/src/lib/evas/canvas/evas_filter_mixin.c
index 58d479c8f5..94070ca331 100644
--- a/src/lib/evas/canvas/evas_filter_mixin.c
+++ b/src/lib/evas/canvas/evas_filter_mixin.c
@@ -507,10 +507,10 @@ _efl_canvas_filter_internal_efl_gfx_filter_filter_state_set(Eo *eo_obj, Evas_Fil
507 507
508 evas_object_async_block(obj); 508 evas_object_async_block(obj);
509 if ((cur_state != pd->data->state.cur.name) || 509 if ((cur_state != pd->data->state.cur.name) ||
510 (!EINA_DBL_CMP(cur_val, pd->data->state.cur.value)) || 510 (!EINA_DBL_EQ(cur_val, pd->data->state.cur.value)) ||
511 (next_state != pd->data->state.next.name) || 511 (next_state != pd->data->state.next.name) ||
512 (!EINA_DBL_CMP(next_val, pd->data->state.next.value)) || 512 (!EINA_DBL_EQ(next_val, pd->data->state.next.value)) ||
513 (!EINA_DBL_CMP(pos, pd->data->state.pos))) 513 (!EINA_DBL_EQ(pos, pd->data->state.pos)))
514 { 514 {
515 Evas_Object_Filter_Data *fcow = FCOW_BEGIN(pd); 515 Evas_Object_Filter_Data *fcow = FCOW_BEGIN(pd);
516 fcow->changed = 1; 516 fcow->changed = 1;
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index f07fd1da45..b3207e995a 100644
--- a/src/lib/evas/canvas/evas_map.c
+++ b/src/lib/evas/canvas/evas_map.c
@@ -1079,7 +1079,7 @@ _map_util_3d_rotate(Evas_Map *m, double dx, double dy, double dz,
1079 y = p->y - cy; 1079 y = p->y - cy;
1080 z = p->z - cz; 1080 z = p->z - cz;
1081 1081
1082 if (!EINA_DBL_CMP(rz, 0.0)) 1082 if (!EINA_DBL_EQ(rz, 0.0))
1083 { 1083 {
1084 xx = x * cos(rz); 1084 xx = x * cos(rz);
1085 yy = x * sin(rz); 1085 yy = x * sin(rz);
@@ -1087,7 +1087,7 @@ _map_util_3d_rotate(Evas_Map *m, double dx, double dy, double dz,
1087 y = yy + (y * cos(rz)); 1087 y = yy + (y * cos(rz));
1088 } 1088 }
1089 1089
1090 if (!EINA_DBL_CMP(ry, 0.0)) 1090 if (!EINA_DBL_EQ(ry, 0.0))
1091 { 1091 {
1092 xx = x * cos(ry); 1092 xx = x * cos(ry);
1093 zz = x * sin(ry); 1093 zz = x * sin(ry);
@@ -1095,7 +1095,7 @@ _map_util_3d_rotate(Evas_Map *m, double dx, double dy, double dz,
1095 z = zz + (z * cos(ry)); 1095 z = zz + (z * cos(ry));
1096 } 1096 }
1097 1097
1098 if (!EINA_DBL_CMP(rx, 0.0)) 1098 if (!EINA_DBL_EQ(rx, 0.0))
1099 { 1099 {
1100 zz = z * cos(rx); 1100 zz = z * cos(rx);
1101 yy = z * sin(rx); 1101 yy = z * sin(rx);
@@ -1195,7 +1195,7 @@ _map_util_3d_lighting(Evas_Map *m,
1195 ln = (nx * nx) + (ny * ny) + (nz * nz); 1195 ln = (nx * nx) + (ny * ny) + (nz * nz);
1196 ln = sqrt(ln); 1196 ln = sqrt(ln);
1197 1197
1198 if (!EINA_DBL_CMP(ln, 0.0)) 1198 if (!EINA_DBL_EQ(ln, 0.0))
1199 { 1199 {
1200 nx /= ln; 1200 nx /= ln;
1201 ny /= ln; 1201 ny /= ln;
@@ -1210,7 +1210,7 @@ _map_util_3d_lighting(Evas_Map *m,
1210 ln = (x * x) + (y * y) + (z * z); 1210 ln = (x * x) + (y * y) + (z * z);
1211 ln = sqrt(ln); 1211 ln = sqrt(ln);
1212 1212
1213 if (!EINA_DBL_CMP(ln, 0.0)) 1213 if (!EINA_DBL_EQ(ln, 0.0))
1214 { 1214 {
1215 x /= ln; 1215 x /= ln;
1216 y /= ln; 1216 y /= ln;
diff --git a/src/lib/evas/canvas/evas_object_box.c b/src/lib/evas/canvas/evas_object_box.c
index 43f2cc147e..6a6b861219 100644
--- a/src/lib/evas/canvas/evas_object_box.c
+++ b/src/lib/evas/canvas/evas_object_box.c
@@ -701,7 +701,7 @@ _evas_box_layout_horizontal(Eo *o, Evas_Object_Box_Data *priv, Evas_Object_Box_D
701 (opt->obj, &padding_l, &padding_r, NULL, NULL); 701 (opt->obj, &padding_l, &padding_r, NULL, NULL);
702 req_w += padding_l + padding_r; 702 req_w += padding_l + padding_r;
703 703
704 if (EINA_DBL_CMP(weight_x, 0.0)) 704 if (EINA_DBL_EQ(weight_x, 0.0))
705 { 705 {
706 int child_w; 706 int child_w;
707 707
@@ -865,7 +865,7 @@ _evas_box_layout_vertical(Eo *o, Evas_Object_Box_Data *priv, Evas_Object_Box_Dat
865 (opt->obj, NULL, NULL, &padding_t, &padding_b); 865 (opt->obj, NULL, NULL, &padding_t, &padding_b);
866 req_h += padding_t + padding_b; 866 req_h += padding_t + padding_b;
867 867
868 if (EINA_DBL_CMP(weight_y, 0.0)) 868 if (EINA_DBL_EQ(weight_y, 0.0))
869 { 869 {
870 int child_h; 870 int child_h;
871 871
@@ -1650,8 +1650,8 @@ _evas_box_layout_stack(Eo *o, Evas_Object_Box_Data *priv, Evas_Object_Box_Data *
1650EOLIAN static void 1650EOLIAN static void
1651_evas_box_align_set(Eo *o, Evas_Object_Box_Data *priv, double horizontal, double vertical) 1651_evas_box_align_set(Eo *o, Evas_Object_Box_Data *priv, double horizontal, double vertical)
1652{ 1652{
1653 if ((EINA_DBL_CMP(priv->align.h, horizontal)) && 1653 if ((EINA_DBL_EQ(priv->align.h, horizontal)) &&
1654 (EINA_DBL_CMP(priv->align.v, vertical))) 1654 (EINA_DBL_EQ(priv->align.v, vertical)))
1655 return; 1655 return;
1656 priv->align.h = horizontal; 1656 priv->align.h = horizontal;
1657 priv->align.v = vertical; 1657 priv->align.v = vertical;
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index 08fdb1f163..427359e2f9 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -636,7 +636,7 @@ _efl_canvas_image_internal_efl_image_border_scale_set(Eo *eo_obj, Evas_Image_Dat
636{ 636{
637 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); 637 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
638 638
639 if (EINA_DBL_CMP(scale, o->cur->border.scale)) return; 639 if (EINA_DBL_EQ(scale, o->cur->border.scale)) return;
640 evas_object_async_block(obj); 640 evas_object_async_block(obj);
641 EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write) 641 EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
642 state_write->border.scale = scale; 642 state_write->border.scale = scale;
@@ -2094,7 +2094,7 @@ _evas_image_render(Eo *eo_obj, Evas_Object_Protected_Data *obj,
2094 else bt--; 2094 else bt--;
2095 } 2095 }
2096 } 2096 }
2097 if (!EINA_DBL_CMP(o->cur->border.scale, 1.0)) 2097 if (!EINA_DBL_EQ(o->cur->border.scale, 1.0))
2098 { 2098 {
2099 bsl = ((double)bl * o->cur->border.scale); 2099 bsl = ((double)bl * o->cur->border.scale);
2100 bsr = ((double)br * o->cur->border.scale); 2100 bsr = ((double)br * o->cur->border.scale);
@@ -2360,7 +2360,7 @@ evas_object_image_render_pre(Evas_Object *eo_obj,
2360 (o->cur->border.t != o->prev->border.t) || 2360 (o->cur->border.t != o->prev->border.t) ||
2361 (o->cur->border.b != o->prev->border.b) || 2361 (o->cur->border.b != o->prev->border.b) ||
2362 (o->cur->border.fill != o->prev->border.fill) || 2362 (o->cur->border.fill != o->prev->border.fill) ||
2363 (!EINA_DBL_CMP(o->cur->border.scale, o->prev->border.scale))) 2363 (!EINA_DBL_EQ(o->cur->border.scale, o->prev->border.scale)))
2364 { 2364 {
2365 evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, obj); 2365 evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, obj);
2366 goto done; 2366 goto done;
@@ -2784,20 +2784,20 @@ evas_object_image_is_opaque(Evas_Object *eo_obj EINA_UNUSED,
2784 (m->points[2].a == 255) && 2784 (m->points[2].a == 255) &&
2785 (m->points[3].a == 255)) 2785 (m->points[3].a == 255))
2786 { 2786 {
2787 if (((EINA_DBL_CMP(m->points[0].x, m->points[3].x)) && 2787 if (((EINA_DBL_EQ(m->points[0].x, m->points[3].x)) &&
2788 (EINA_DBL_CMP(m->points[1].x, m->points[2].x)) && 2788 (EINA_DBL_EQ(m->points[1].x, m->points[2].x)) &&
2789 (EINA_DBL_CMP(m->points[0].y, m->points[1].y)) && 2789 (EINA_DBL_EQ(m->points[0].y, m->points[1].y)) &&
2790 (EINA_DBL_CMP(m->points[2].y, m->points[3].y))) || 2790 (EINA_DBL_EQ(m->points[2].y, m->points[3].y))) ||
2791 ((EINA_DBL_CMP(m->points[0].x, m->points[1].x)) && 2791 ((EINA_DBL_EQ(m->points[0].x, m->points[1].x)) &&
2792 (EINA_DBL_CMP(m->points[2].x, m->points[3].x)) && 2792 (EINA_DBL_EQ(m->points[2].x, m->points[3].x)) &&
2793 (EINA_DBL_CMP(m->points[0].y, m->points[3].y)) && 2793 (EINA_DBL_EQ(m->points[0].y, m->points[3].y)) &&
2794 (EINA_DBL_CMP(m->points[1].y, m->points[2].y)))) 2794 (EINA_DBL_EQ(m->points[1].y, m->points[2].y))))
2795 { 2795 {
2796 if ((EINA_DBL_CMP(m->points[0].x, obj->cur->geometry.x)) && 2796 if ((EINA_DBL_EQ(m->points[0].x, obj->cur->geometry.x)) &&
2797 (EINA_DBL_CMP(m->points[0].y, obj->cur->geometry.y)) && 2797 (EINA_DBL_EQ(m->points[0].y, obj->cur->geometry.y)) &&
2798 (EINA_DBL_CMP(m->points[2].x, 2798 (EINA_DBL_EQ(m->points[2].x,
2799 obj->cur->geometry.x + obj->cur->geometry.w)) && 2799 obj->cur->geometry.x + obj->cur->geometry.w)) &&
2800 (EINA_DBL_CMP(m->points[2].y, 2800 (EINA_DBL_EQ(m->points[2].y,
2801 obj->cur->geometry.y + obj->cur->geometry.h))) 2801 obj->cur->geometry.y + obj->cur->geometry.h)))
2802 return o->cur->opaque; 2802 return o->cur->opaque;
2803 } 2803 }
@@ -2880,20 +2880,20 @@ evas_object_image_was_opaque(Evas_Object *eo_obj EINA_UNUSED,
2880 (m->points[2].a == 255) && 2880 (m->points[2].a == 255) &&
2881 (m->points[3].a == 255)) 2881 (m->points[3].a == 255))
2882 { 2882 {
2883 if (((EINA_DBL_CMP(m->points[0].x, m->points[3].x)) && 2883 if (((EINA_DBL_EQ(m->points[0].x, m->points[3].x)) &&
2884 (EINA_DBL_CMP(m->points[1].x, m->points[2].x)) && 2884 (EINA_DBL_EQ(m->points[1].x, m->points[2].x)) &&
2885 (EINA_DBL_CMP(m->points[0].y, m->points[1].y)) && 2885 (EINA_DBL_EQ(m->points[0].y, m->points[1].y)) &&
2886 (EINA_DBL_CMP(m->points[2].y, m->points[3].y))) || 2886 (EINA_DBL_EQ(m->points[2].y, m->points[3].y))) ||
2887 ((EINA_DBL_CMP(m->points[0].x, m->points[1].x)) && 2887 ((EINA_DBL_EQ(m->points[0].x, m->points[1].x)) &&
2888 (EINA_DBL_CMP(m->points[2].x, m->points[3].x)) && 2888 (EINA_DBL_EQ(m->points[2].x, m->points[3].x)) &&
2889 (EINA_DBL_CMP(m->points[0].y, m->points[3].y)) && 2889 (EINA_DBL_EQ(m->points[0].y, m->points[3].y)) &&
2890 (EINA_DBL_CMP(m->points[1].y, m->points[2].y)))) 2890 (EINA_DBL_EQ(m->points[1].y, m->points[2].y))))
2891 { 2891 {
2892 if ((EINA_DBL_CMP(m->points[0].x, obj->prev->geometry.x)) && 2892 if ((EINA_DBL_EQ(m->points[0].x, obj->prev->geometry.x)) &&
2893 (EINA_DBL_CMP(m->points[0].y, obj->prev->geometry.y)) && 2893 (EINA_DBL_EQ(m->points[0].y, obj->prev->geometry.y)) &&
2894 (EINA_DBL_CMP(m->points[2].x, 2894 (EINA_DBL_EQ(m->points[2].x,
2895 obj->prev->geometry.x + obj->prev->geometry.w)) && 2895 obj->prev->geometry.x + obj->prev->geometry.w)) &&
2896 (EINA_DBL_CMP(m->points[2].y, 2896 (EINA_DBL_EQ(m->points[2].y,
2897 obj->prev->geometry.y + obj->prev->geometry.h))) 2897 obj->prev->geometry.y + obj->prev->geometry.h)))
2898 return o->prev->opaque; 2898 return o->prev->opaque;
2899 } 2899 }
@@ -3118,7 +3118,7 @@ evas_object_image_is_inside(Evas_Object *eo_obj,
3118 bt = imh / 2; 3118 bt = imh / 2;
3119 bb = imh - bt; 3119 bb = imh - bt;
3120 } 3120 }
3121 if (!EINA_DBL_CMP(o->cur->border.scale, 1.0)) 3121 if (!EINA_DBL_EQ(o->cur->border.scale, 1.0))
3122 { 3122 {
3123 bsl = ((double)bl * o->cur->border.scale); 3123 bsl = ((double)bl * o->cur->border.scale);
3124 bsr = ((double)br * o->cur->border.scale); 3124 bsr = ((double)br * o->cur->border.scale);
diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c
index 7f5bc5c19c..810328119d 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -1564,11 +1564,11 @@ _efl_canvas_object_efl_gfx_size_hint_hint_align_set(Eo *eo_obj, Evas_Object_Prot
1564 evas_object_async_block(obj); 1564 evas_object_async_block(obj);
1565 if (EINA_UNLIKELY(!obj->size_hints)) 1565 if (EINA_UNLIKELY(!obj->size_hints))
1566 { 1566 {
1567 if (EINA_DBL_CMP(x, 0.5) && EINA_DBL_CMP(y, 0.5)) return; 1567 if (EINA_DBL_EQ(x, 0.5) && EINA_DBL_EQ(y, 0.5)) return;
1568 _evas_object_size_hint_alloc(eo_obj, obj); 1568 _evas_object_size_hint_alloc(eo_obj, obj);
1569 } 1569 }
1570 if ((EINA_DBL_CMP(obj->size_hints->align.x, x)) && 1570 if ((EINA_DBL_EQ(obj->size_hints->align.x, x)) &&
1571 (EINA_DBL_CMP(obj->size_hints->align.y, y))) 1571 (EINA_DBL_EQ(obj->size_hints->align.y, y)))
1572 return; 1572 return;
1573 obj->size_hints->align.x = x; 1573 obj->size_hints->align.x = x;
1574 obj->size_hints->align.y = y; 1574 obj->size_hints->align.y = y;
@@ -1597,11 +1597,11 @@ _efl_canvas_object_efl_gfx_size_hint_hint_weight_set(Eo *eo_obj, Evas_Object_Pro
1597 evas_object_async_block(obj); 1597 evas_object_async_block(obj);
1598 if (EINA_UNLIKELY(!obj->size_hints)) 1598 if (EINA_UNLIKELY(!obj->size_hints))
1599 { 1599 {
1600 if (EINA_DBL_CMP(x, 0.0) && EINA_DBL_CMP(y, 0.0)) return; 1600 if (EINA_DBL_EQ(x, 0.0) && EINA_DBL_EQ(y, 0.0)) return;
1601 _evas_object_size_hint_alloc(eo_obj, obj); 1601 _evas_object_size_hint_alloc(eo_obj, obj);
1602 } 1602 }
1603 if ((EINA_DBL_CMP(obj->size_hints->weight.x, x)) && 1603 if ((EINA_DBL_EQ(obj->size_hints->weight.x, x)) &&
1604 (EINA_DBL_CMP(obj->size_hints->weight.y, y))) 1604 (EINA_DBL_EQ(obj->size_hints->weight.y, y)))
1605 return; 1605 return;
1606 obj->size_hints->weight.x = x; 1606 obj->size_hints->weight.x = x;
1607 obj->size_hints->weight.y = y; 1607 obj->size_hints->weight.y = y;
@@ -1958,7 +1958,7 @@ EOLIAN static void
1958_efl_canvas_object_scale_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double scale) 1958_efl_canvas_object_scale_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double scale)
1959{ 1959{
1960 if (obj->delete_me) return; 1960 if (obj->delete_me) return;
1961 if (EINA_DBL_CMP(obj->cur->scale, scale)) return; 1961 if (EINA_DBL_EQ(obj->cur->scale, scale)) return;
1962 1962
1963 evas_object_async_block(obj); 1963 evas_object_async_block(obj);
1964 EINA_COW_STATE_WRITE_BEGIN(obj, state_write, cur) 1964 EINA_COW_STATE_WRITE_BEGIN(obj, state_write, cur)
diff --git a/src/lib/evas/canvas/evas_object_table.c b/src/lib/evas/canvas/evas_object_table.c
index 0fb125c1ce..9375e97e2e 100644
--- a/src/lib/evas/canvas/evas_object_table.c
+++ b/src/lib/evas/canvas/evas_object_table.c
@@ -1015,8 +1015,8 @@ _evas_table_homogeneous_get(Eo *o EINA_UNUSED, Evas_Table_Data *priv)
1015EOLIAN static void 1015EOLIAN static void
1016_evas_table_align_set(Eo *o, Evas_Table_Data *priv, double horizontal, double vertical) 1016_evas_table_align_set(Eo *o, Evas_Table_Data *priv, double horizontal, double vertical)
1017{ 1017{
1018 if ((EINA_DBL_CMP(priv->align.h, horizontal)) && 1018 if ((EINA_DBL_EQ(priv->align.h, horizontal)) &&
1019 (EINA_DBL_CMP(priv->align.v, vertical))) 1019 (EINA_DBL_EQ(priv->align.v, vertical)))
1020 return; 1020 return;
1021 priv->align.h = horizontal; 1021 priv->align.h = horizontal;
1022 priv->align.v = vertical; 1022 priv->align.v = vertical;
diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c
index a4f8702c8b..ce383dac52 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -215,7 +215,7 @@ _evas_object_text_items_clean(Evas_Object_Protected_Data *obj, Evas_Text_Data *o
215 (_color_same(&o->cur.glow, &o->prev.glow)) && 215 (_color_same(&o->cur.glow, &o->prev.glow)) &&
216 (_color_same(&o->cur.glow2, &o->prev.glow2)) && 216 (_color_same(&o->cur.glow2, &o->prev.glow2)) &&
217 (o->cur.style == o->prev.style) && 217 (o->cur.style == o->prev.style) &&
218 (EINA_DBL_CMP(obj->cur->scale, obj->prev->scale))) 218 (EINA_DBL_EQ(obj->cur->scale, obj->prev->scale)))
219 { 219 {
220 if ((o->last_computed.ellipsis_start) && 220 if ((o->last_computed.ellipsis_start) &&
221 (o->last_computed.ellipsis_start == o->items)) 221 (o->last_computed.ellipsis_start == o->items))
@@ -696,7 +696,7 @@ _evas_object_text_layout(Evas_Object *eo_obj, Evas_Text_Data *o, Eina_Unicode *t
696 if (o->items && 696 if (o->items &&
697 !memcmp(&o->cur, &o->prev, sizeof (o->cur)) && 697 !memcmp(&o->cur, &o->prev, sizeof (o->cur)) &&
698 o->cur.text == text && 698 o->cur.text == text &&
699 (EINA_DBL_CMP(obj->cur->scale, obj->prev->scale)) && 699 (EINA_DBL_EQ(obj->cur->scale, obj->prev->scale)) &&
700 ((o->last_computed.advance <= obj->cur->geometry.w && !o->last_computed.ellipsis) || 700 ((o->last_computed.advance <= obj->cur->geometry.w && !o->last_computed.ellipsis) ||
701 (o->last_computed.w == obj->cur->geometry.w)) && 701 (o->last_computed.w == obj->cur->geometry.w)) &&
702 !o->changed_paragraph_direction) 702 !o->changed_paragraph_direction)
@@ -835,7 +835,7 @@ _evas_object_text_layout(Evas_Object *eo_obj, Evas_Text_Data *o, Eina_Unicode *t
835 835
836 /* Account of the ellipsis item width. As long as ellipsis != 0 836 /* Account of the ellipsis item width. As long as ellipsis != 0
837 * we have a left ellipsis. And the same with 1 and right. */ 837 * we have a left ellipsis. And the same with 1 and right. */
838 if (!EINA_DBL_CMP(o->cur.ellipsis, 0.0)) 838 if (!EINA_DBL_EQ(o->cur.ellipsis, 0.0))
839 { 839 {
840 if (o->last_computed.ellipsis_start) 840 if (o->last_computed.ellipsis_start)
841 { 841 {
@@ -850,7 +850,7 @@ _evas_object_text_layout(Evas_Object *eo_obj, Evas_Text_Data *o, Eina_Unicode *t
850 o->last_computed.ellipsis_start = start_ellip_it; 850 o->last_computed.ellipsis_start = start_ellip_it;
851 ellip_frame -= start_ellip_it->w; 851 ellip_frame -= start_ellip_it->w;
852 } 852 }
853 if (!EINA_DBL_CMP(o->cur.ellipsis, 1.0)) 853 if (!EINA_DBL_EQ(o->cur.ellipsis, 1.0))
854 { 854 {
855 /* FIXME: Should take the last item's font and style and etc. *//* weird it's a text, should always have the same style/font */ 855 /* FIXME: Should take the last item's font and style and etc. *//* weird it's a text, should always have the same style/font */
856 if (o->last_computed.ellipsis_end) 856 if (o->last_computed.ellipsis_end)
@@ -1018,7 +1018,7 @@ _evas_text_ellipsis_set(Eo *eo_obj, Evas_Text_Data *o, double ellipsis)
1018{ 1018{
1019 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); 1019 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
1020 1020
1021 if (EINA_DBL_CMP(o->cur.ellipsis, ellipsis)) return; 1021 if (EINA_DBL_EQ(o->cur.ellipsis, ellipsis)) return;
1022 1022
1023 evas_object_async_block(obj); 1023 evas_object_async_block(obj);
1024 o->prev.ellipsis = o->cur.ellipsis; 1024 o->prev.ellipsis = o->cur.ellipsis;
@@ -2046,8 +2046,8 @@ evas_object_text_render_pre(Evas_Object *eo_obj,
2046 if (((o->cur.ellipsis >= 0.0) && 2046 if (((o->cur.ellipsis >= 0.0) &&
2047 ((obj->cur->geometry.w != o->last_computed.w) || 2047 ((obj->cur->geometry.w != o->last_computed.w) ||
2048 (obj->cur->geometry.h != o->last_computed.h))) || 2048 (obj->cur->geometry.h != o->last_computed.h))) ||
2049 (!EINA_DBL_CMP(o->cur.ellipsis, o->prev.ellipsis)) || 2049 (!EINA_DBL_EQ(o->cur.ellipsis, o->prev.ellipsis)) ||
2050 (!EINA_DBL_CMP(obj->cur->scale, obj->prev->scale)) || 2050 (!EINA_DBL_EQ(obj->cur->scale, obj->prev->scale)) ||
2051 (o->changed_paragraph_direction)) 2051 (o->changed_paragraph_direction))
2052 { 2052 {
2053 _evas_object_text_recalc(eo_obj, o->cur.text); 2053 _evas_object_text_recalc(eo_obj, o->cur.text);
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 638c5d56df..00b796cac0 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -5358,7 +5358,7 @@ _layout_par(Ctxt *c)
5358 ellip_h_thresh = ascent + descent + maxasc + maxdesc; 5358 ellip_h_thresh = ascent + descent + maxasc + maxdesc;
5359 } 5359 }
5360 5360
5361 if ((EINA_DBL_CMP(it->format->ellipsis, 1.0)) && (c->h >= 0) && 5361 if ((EINA_DBL_EQ(it->format->ellipsis, 1.0)) && (c->h >= 0) &&
5362 ((c->y + ellip_h_thresh > 5362 ((c->y + ellip_h_thresh >
5363 c->h - c->o->style_pad.t - c->o->style_pad.b) || 5363 c->h - c->o->style_pad.t - c->o->style_pad.b) ||
5364 (!it->format->wrap_word && !it->format->wrap_char && 5364 (!it->format->wrap_word && !it->format->wrap_char &&
@@ -5499,7 +5499,7 @@ _layout_par(Ctxt *c)
5499 { 5499 {
5500 /* FIXME: Should redo the ellipsis handling. 5500 /* FIXME: Should redo the ellipsis handling.
5501 * If we can do ellipsis, just cut here. */ 5501 * If we can do ellipsis, just cut here. */
5502 if (EINA_DBL_CMP(it->format->ellipsis, 1.0)) 5502 if (EINA_DBL_EQ(it->format->ellipsis, 1.0))
5503 { 5503 {
5504 _layout_handle_ellipsis(c, it, i); 5504 _layout_handle_ellipsis(c, it, i);
5505 ret = 1; 5505 ret = 1;
@@ -6825,7 +6825,7 @@ evas_object_textblock_valign_set(Efl_Canvas_Text *eo_obj, double align)
6825 evas_object_async_block(obj); 6825 evas_object_async_block(obj);
6826 if (align < 0.0) align = 0.0; 6826 if (align < 0.0) align = 0.0;
6827 else if (align > 1.0) align = 1.0; 6827 else if (align > 1.0) align = 1.0;
6828 if (EINA_DBL_CMP(o->valign, align)) return; 6828 if (EINA_DBL_EQ(o->valign, align)) return;
6829 o->valign = align; 6829 o->valign = align;
6830 _evas_textblock_changed(o, eo_obj); 6830 _evas_textblock_changed(o, eo_obj);
6831} 6831}
@@ -12807,7 +12807,7 @@ evas_object_textblock_render(Evas_Object *eo_obj EINA_UNUSED,
12807 { \ 12807 { \
12808 Evas_Coord yoff; \ 12808 Evas_Coord yoff; \
12809 yoff = ln->baseline; \ 12809 yoff = ln->baseline; \
12810 if (!EINA_DBL_CMP(itr->format->valign, -1.0)) \ 12810 if (!EINA_DBL_EQ(itr->format->valign, -1.0)) \
12811 { \ 12811 { \
12812 if (itr->type == EVAS_TEXTBLOCK_ITEM_TEXT) \ 12812 if (itr->type == EVAS_TEXTBLOCK_ITEM_TEXT) \
12813 { \ 12813 { \
@@ -13299,7 +13299,7 @@ evas_object_textblock_coords_recalc(Evas_Object *eo_obj,
13299 // width changed thus we may have to re-wrap or change centering etc. 13299 // width changed thus we may have to re-wrap or change centering etc.
13300 (obj->cur->geometry.w != o->last_w) || 13300 (obj->cur->geometry.w != o->last_w) ||
13301 // if valign not top OR we have ellipsis, then if height changed we need to re-eval valign or ... spot 13301 // if valign not top OR we have ellipsis, then if height changed we need to re-eval valign or ... spot
13302 (((!EINA_DBL_CMP(o->valign, 0.0)) || (o->have_ellipsis)) && 13302 (((!EINA_DBL_EQ(o->valign, 0.0)) || (o->have_ellipsis)) &&
13303 ( 13303 (
13304 ((o->formatted.oneline_h == 0) && 13304 ((o->formatted.oneline_h == 0) &&
13305 (obj->cur->geometry.h != o->last_h)) || 13305 (obj->cur->geometry.h != o->last_h)) ||
diff --git a/src/lib/evas/canvas/evas_object_textgrid.c b/src/lib/evas/canvas/evas_object_textgrid.c
index 390b716c00..4d3bd3ef62 100644
--- a/src/lib/evas/canvas/evas_object_textgrid.c
+++ b/src/lib/evas/canvas/evas_object_textgrid.c
@@ -748,7 +748,7 @@ evas_object_textgrid_render_pre(Evas_Object *eo_obj,
748 evas_object_render_pre_prev_cur_add(&obj->layer->evas->clip_changes, eo_obj, obj); 748 evas_object_render_pre_prev_cur_add(&obj->layer->evas->clip_changes, eo_obj, obj);
749 goto done; 749 goto done;
750 } 750 }
751 if (!EINA_DBL_CMP(obj->cur->scale, obj->prev->scale)) 751 if (!EINA_DBL_EQ(obj->cur->scale, obj->prev->scale))
752 { 752 {
753 evas_object_render_pre_prev_cur_add(&obj->layer->evas->clip_changes, eo_obj, obj); 753 evas_object_render_pre_prev_cur_add(&obj->layer->evas->clip_changes, eo_obj, obj);
754 goto done; 754 goto done;
diff --git a/src/lib/evas/common/evas_convert_color.c b/src/lib/evas/common/evas_convert_color.c
index 3558b341e0..c18137f2c4 100644
--- a/src/lib/evas/common/evas_convert_color.c
+++ b/src/lib/evas/common/evas_convert_color.c
@@ -166,7 +166,7 @@ evas_common_convert_color_hsv_to_rgb(float h, float s, float v, int *r, int *g,
166 float f; 166 float f;
167 167
168 v *= 255; 168 v *= 255;
169 if (EINA_FLT_CMP(s, 0.0)) 169 if (EINA_FLT_EQ(s, 0.0))
170 { 170 {
171 if (r) *r = v; 171 if (r) *r = v;
172 if (g) *g = v; 172 if (g) *g = v;
diff --git a/src/lib/evas/cserve2/evas_cs2_client.c b/src/lib/evas/cserve2/evas_cs2_client.c
index 2787e53184..329727ba17 100644
--- a/src/lib/evas/cserve2/evas_cs2_client.c
+++ b/src/lib/evas/cserve2/evas_cs2_client.c
@@ -925,7 +925,7 @@ _evas_image_load_opts_empty(Evas_Image_Load_Opts *lo)
925 if (!lo) return EINA_TRUE; 925 if (!lo) return EINA_TRUE;
926 926
927 return ((lo->emile.scale_down_by == 0) 927 return ((lo->emile.scale_down_by == 0)
928 && (EINA_DBL_CMP(lo->emile.dpi, 0.0)) 928 && (EINA_DBL_EQ(lo->emile.dpi, 0.0))
929 && (lo->emile.w == 0) && (lo->emile.h == 0) 929 && (lo->emile.w == 0) && (lo->emile.h == 0)
930 && (lo->emile.region.x == 0) && (lo->emile.region.y == 0) 930 && (lo->emile.region.x == 0) && (lo->emile.region.y == 0)
931 && (lo->emile.region.w == 0) && (lo->emile.region.h == 0) 931 && (lo->emile.region.w == 0) && (lo->emile.region.h == 0)
@@ -946,7 +946,7 @@ _evas_image_load_opts_equal(const Evas_Image_Load_Opts *lo1,
946 const Evas_Image_Load_Opts *lo2) 946 const Evas_Image_Load_Opts *lo2)
947{ 947{
948 return ((lo1->emile.scale_down_by == lo2->emile.scale_down_by) 948 return ((lo1->emile.scale_down_by == lo2->emile.scale_down_by)
949 && (EINA_DBL_CMP(lo1->emile.dpi, lo2->emile.dpi)) 949 && (EINA_DBL_EQ(lo1->emile.dpi, lo2->emile.dpi))
950 && (lo1->emile.w == lo2->emile.w) 950 && (lo1->emile.w == lo2->emile.w)
951 && (lo1->emile.h == lo2->emile.h) 951 && (lo1->emile.h == lo2->emile.h)
952 && (lo1->emile.region.x == lo2->emile.region.x) 952 && (lo1->emile.region.x == lo2->emile.region.x)
diff --git a/src/lib/evas/include/evas_3d_utils.h b/src/lib/evas/include/evas_3d_utils.h
index 6d3155ab6a..af5f00e31e 100644
--- a/src/lib/evas/include/evas_3d_utils.h
+++ b/src/lib/evas/include/evas_3d_utils.h
@@ -84,11 +84,11 @@ evas_triangle3_is_line(Evas_Triangle3 *v)
84static inline Eina_Bool 84static inline Eina_Bool
85convex_hull_triangle3_not_first_edje(Evas_Triangle3 *v, Eina_Vector3 *a, Eina_Vector3 *b) 85convex_hull_triangle3_not_first_edje(Evas_Triangle3 *v, Eina_Vector3 *a, Eina_Vector3 *b)
86{ 86{
87 if ((EINA_DBL_CMP(v->p1.x, a->x) && EINA_DBL_CMP(v->p1.y, a->y) && EINA_DBL_CMP(v->p1.z, a->z)) && 87 if ((EINA_DBL_EQ(v->p1.x, a->x) && EINA_DBL_EQ(v->p1.y, a->y) && EINA_DBL_EQ(v->p1.z, a->z)) &&
88 (EINA_DBL_CMP(v->p2.x, b->x) && EINA_DBL_CMP(v->p2.y, b->y) && EINA_DBL_CMP(v->p2.z, b->z))) 88 (EINA_DBL_EQ(v->p2.x, b->x) && EINA_DBL_EQ(v->p2.y, b->y) && EINA_DBL_EQ(v->p2.z, b->z)))
89 return EINA_TRUE; 89 return EINA_TRUE;
90 else if ((EINA_DBL_CMP(v->p2.x, a->x) && EINA_DBL_CMP(v->p2.y, a->y) && EINA_DBL_CMP(v->p2.z, a->z)) && 90 else if ((EINA_DBL_EQ(v->p2.x, a->x) && EINA_DBL_EQ(v->p2.y, a->y) && EINA_DBL_EQ(v->p2.z, a->z)) &&
91 (EINA_DBL_CMP(v->p1.x, b->x) && EINA_DBL_CMP(v->p1.y, b->y) && EINA_DBL_CMP(v->p1.z, b->z))) 91 (EINA_DBL_EQ(v->p1.x, b->x) && EINA_DBL_EQ(v->p1.y, b->y) && EINA_DBL_EQ(v->p1.z, b->z)))
92 return EINA_TRUE; 92 return EINA_TRUE;
93 93
94 return EINA_FALSE; 94 return EINA_FALSE;
@@ -97,13 +97,13 @@ convex_hull_triangle3_not_first_edje(Evas_Triangle3 *v, Eina_Vector3 *a, Eina_Ve
97static inline Eina_Bool 97static inline Eina_Bool
98convex_hull_triangle3_first_edje(Evas_Triangle3 *v, Eina_Vector3 *a, Eina_Vector3 *b) 98convex_hull_triangle3_first_edje(Evas_Triangle3 *v, Eina_Vector3 *a, Eina_Vector3 *b)
99{ 99{
100 if ((!EINA_FLT_CMP(v->p0.x, a->x) && !EINA_FLT_CMP(v->p0.y, a->y) && 100 if ((!EINA_FLT_EQ(v->p0.x, a->x) && !EINA_FLT_EQ(v->p0.y, a->y) &&
101 !EINA_FLT_CMP(v->p0.z, a->z)) && (!EINA_FLT_CMP(v->p1.x, b->x) && 101 !EINA_FLT_EQ(v->p0.z, a->z)) && (!EINA_FLT_EQ(v->p1.x, b->x) &&
102 !EINA_FLT_CMP(v->p1.y, b->y) && !EINA_FLT_CMP(v->p1.z, b->z))) 102 !EINA_FLT_EQ(v->p1.y, b->y) && !EINA_FLT_EQ(v->p1.z, b->z)))
103 return EINA_TRUE; 103 return EINA_TRUE;
104 else if ((!EINA_FLT_CMP(v->p1.x, a->x) && !EINA_FLT_CMP(v->p1.y, a->y) && 104 else if ((!EINA_FLT_EQ(v->p1.x, a->x) && !EINA_FLT_EQ(v->p1.y, a->y) &&
105 !EINA_FLT_CMP(v->p1.z, a->z)) && (!EINA_FLT_CMP(v->p0.x, b->x) && 105 !EINA_FLT_EQ(v->p1.z, a->z)) && (!EINA_FLT_EQ(v->p0.x, b->x) &&
106 !EINA_FLT_CMP(v->p0.y, b->y) && !EINA_FLT_CMP(v->p0.z, b->z))) 106 !EINA_FLT_EQ(v->p0.y, b->y) && !EINA_FLT_EQ(v->p0.z, b->z)))
107 return EINA_TRUE; 107 return EINA_TRUE;
108 108
109 return EINA_FALSE; 109 return EINA_FALSE;
@@ -112,16 +112,16 @@ convex_hull_triangle3_first_edje(Evas_Triangle3 *v, Eina_Vector3 *a, Eina_Vector
112static inline Eina_Bool 112static inline Eina_Bool
113convex_hull_triangle3_first_point(Evas_Triangle3 *v, Eina_Vector3 *a) 113convex_hull_triangle3_first_point(Evas_Triangle3 *v, Eina_Vector3 *a)
114{ 114{
115 return (EINA_DBL_CMP(v->p0.x, a->x) && EINA_DBL_CMP(v->p0.y, a->y) && EINA_DBL_CMP(v->p0.z, a->z)); 115 return (EINA_DBL_EQ(v->p0.x, a->x) && EINA_DBL_EQ(v->p0.y, a->y) && EINA_DBL_EQ(v->p0.z, a->z));
116} 116}
117 117
118static inline Eina_Bool 118static inline Eina_Bool
119eina_vector3_equivalent_as_triangle(Eina_Vector3 *v0, Eina_Vector3 *v1, Eina_Vector3 *v2, 119eina_vector3_equivalent_as_triangle(Eina_Vector3 *v0, Eina_Vector3 *v1, Eina_Vector3 *v2,
120 Eina_Vector3 *w0, Eina_Vector3 *w1, Eina_Vector3 *w2) 120 Eina_Vector3 *w0, Eina_Vector3 *w1, Eina_Vector3 *w2)
121{ 121{
122 if ((EINA_DBL_CMP(v0->x, w0->x) && EINA_DBL_CMP(v0->y, w0->y) && EINA_DBL_CMP(v0->z, w0->z)) && 122 if ((EINA_DBL_EQ(v0->x, w0->x) && EINA_DBL_EQ(v0->y, w0->y) && EINA_DBL_EQ(v0->z, w0->z)) &&
123 (EINA_DBL_CMP(v1->x, w1->x) && EINA_DBL_CMP(v1->y, w1->y) && EINA_DBL_CMP(v1->z, w1->z)) && 123 (EINA_DBL_EQ(v1->x, w1->x) && EINA_DBL_EQ(v1->y, w1->y) && EINA_DBL_EQ(v1->z, w1->z)) &&
124 (EINA_DBL_CMP(v2->x, w2->x) && EINA_DBL_CMP(v2->y, w2->y) && EINA_DBL_CMP(v2->z, w2->z))) 124 (EINA_DBL_EQ(v2->x, w2->x) && EINA_DBL_EQ(v2->y, w2->y) && EINA_DBL_EQ(v2->z, w2->z)))
125 return EINA_TRUE; 125 return EINA_TRUE;
126 126
127 return EINA_FALSE; 127 return EINA_FALSE;
@@ -437,7 +437,7 @@ evas_box2_intersect_2d(const Evas_Box2 *box, const Eina_Vector2 *org, const Eina
437 return EINA_TRUE; 437 return EINA_TRUE;
438 } 438 }
439 /* minmax algorithm of ray and box intersection */ 439 /* minmax algorithm of ray and box intersection */
440 if (!EINA_DBL_CMP(dir->x, 0.0) && !EINA_DBL_CMP(dir->y, 0.0)) 440 if (!EINA_DBL_EQ(dir->x, 0.0) && !EINA_DBL_EQ(dir->y, 0.0))
441 { 441 {
442 t1 = (box->p0.x - org->x) / dir->x; 442 t1 = (box->p0.x - org->x) / dir->x;
443 t2 = (box->p1.x - org->x) / dir->x; 443 t2 = (box->p1.x - org->x) / dir->x;
@@ -472,7 +472,7 @@ evas_box2_intersect_2d(const Evas_Box2 *box, const Eina_Vector2 *org, const Eina
472 return EINA_FALSE; 472 return EINA_FALSE;
473 } 473 }
474 /* case when ray is parallel to one of axes */ 474 /* case when ray is parallel to one of axes */
475 else if (EINA_DBL_CMP(dir->x, 0.0)) 475 else if (EINA_DBL_EQ(dir->x, 0.0))
476 { 476 {
477 if ((org->x < box->p0.x) && (org->x > box->p1.x)) 477 if ((org->x < box->p0.x) && (org->x > box->p1.x))
478 return EINA_FALSE; 478 return EINA_FALSE;
@@ -511,7 +511,7 @@ evas_box3_ray3_intersect(const Evas_Box3 *box, const Evas_Ray3 *ray)
511 return EINA_TRUE; 511 return EINA_TRUE;
512 } 512 }
513 /* minmax algorithm of ray and box intersection */ 513 /* minmax algorithm of ray and box intersection */
514 if (!EINA_DBL_CMP(ray->dir.x, 0.0) && !EINA_DBL_CMP(ray->dir.y, 0.0) && !EINA_DBL_CMP(ray->dir.z, 0.0)) 514 if (!EINA_DBL_EQ(ray->dir.x, 0.0) && !EINA_DBL_EQ(ray->dir.y, 0.0) && !EINA_DBL_EQ(ray->dir.z, 0.0))
515 { 515 {
516 t1 = (box->p0.x - ray->org.x) / ray->dir.x; 516 t1 = (box->p0.x - ray->org.x) / ray->dir.x;
517 t2 = (box->p1.x - ray->org.x) / ray->dir.x; 517 t2 = (box->p1.x - ray->org.x) / ray->dir.x;
@@ -567,7 +567,7 @@ evas_box3_ray3_intersect(const Evas_Box3 *box, const Evas_Ray3 *ray)
567 else 567 else
568 { 568 {
569 /* use two-dimensional version here */ 569 /* use two-dimensional version here */
570 if (EINA_DBL_CMP(ray->dir.x, 0.0)) 570 if (EINA_DBL_EQ(ray->dir.x, 0.0))
571 { 571 {
572 if ((ray->org.x < box->p0.x) || (ray->org.x > box->p1.x)) 572 if ((ray->org.x < box->p0.x) || (ray->org.x > box->p1.x))
573 return EINA_FALSE; 573 return EINA_FALSE;
@@ -580,7 +580,7 @@ evas_box3_ray3_intersect(const Evas_Box3 *box, const Evas_Ray3 *ray)
580 } 580 }
581 } 581 }
582 582
583 if (EINA_DBL_CMP(ray->dir.y, 0.0)) 583 if (EINA_DBL_EQ(ray->dir.y, 0.0))
584 { 584 {
585 if ((ray->org.y < box->p0.y) || (ray->org.y > box->p1.y)) 585 if ((ray->org.y < box->p0.y) || (ray->org.y > box->p1.y))
586 return EINA_FALSE; 586 return EINA_FALSE;
@@ -593,7 +593,7 @@ evas_box3_ray3_intersect(const Evas_Box3 *box, const Evas_Ray3 *ray)
593 } 593 }
594 } 594 }
595 595
596 if (EINA_DBL_CMP(ray->dir.z, 0.0)) 596 if (EINA_DBL_EQ(ray->dir.z, 0.0))
597 { 597 {
598 if (ray->org.z < box->p0.z || ray->org.z > box->p1.z) 598 if (ray->org.z < box->p0.z || ray->org.z > box->p1.z)
599 return EINA_FALSE; 599 return EINA_FALSE;
@@ -672,11 +672,11 @@ evas_intersection_line_of_two_plains(Evas_Line3 *line, Eina_Quaternion *plane1,
672 line->point.y = (plane2->w * plane1->z - plane1->w * plane2->z) / line->direction.x; \ 672 line->point.y = (plane2->w * plane1->z - plane1->w * plane2->z) / line->direction.x; \
673 line->point.z = (plane2->y * plane1->w - plane1->y * plane2->w) / line->direction.x; 673 line->point.z = (plane2->y * plane1->w - plane1->y * plane2->w) / line->direction.x;
674 674
675 if (!EINA_DBL_CMP(line->direction.x, 0.0) && !EINA_DBL_CMP(plane1->z, 0.0)) 675 if (!EINA_DBL_EQ(line->direction.x, 0.0) && !EINA_DBL_EQ(plane1->z, 0.0))
676 { 676 {
677 SOLVE_EQUATION(x, y, z) 677 SOLVE_EQUATION(x, y, z)
678 } 678 }
679 else if (!EINA_DBL_CMP(line->direction.y, 0.0) && !EINA_DBL_CMP(plane1->x, 0.0)) 679 else if (!EINA_DBL_EQ(line->direction.y, 0.0) && !EINA_DBL_EQ(plane1->x, 0.0))
680 { 680 {
681 SOLVE_EQUATION(y, z, x) 681 SOLVE_EQUATION(y, z, x)
682 } 682 }
@@ -895,7 +895,7 @@ tangent_new_basis(Eina_Vector3 *out, Evas_Triangle3 *triangle,
895 895
896 896
897 /* calculation of new basis(in system coordinates of texturing) by solution of system of equations */ 897 /* calculation of new basis(in system coordinates of texturing) by solution of system of equations */
898 if (!EINA_DBL_CMP(new2.y, 0.0)) 898 if (!EINA_DBL_EQ(new2.y, 0.0))
899 { 899 {
900 eina_vector3_scale(&old2, &old2, (new1.y / new2.y)); 900 eina_vector3_scale(&old2, &old2, (new1.y / new2.y));
901 eina_vector2_scale(&new2, &new2, (new1.y / new2.y)); 901 eina_vector2_scale(&new2, &new2, (new1.y / new2.y));
@@ -906,7 +906,7 @@ tangent_new_basis(Eina_Vector3 *out, Evas_Triangle3 *triangle,
906 eina_vector3_scale(out, &old1, 1 / new1.x); 906 eina_vector3_scale(out, &old1, 1 / new1.x);
907 } 907 }
908 908
909 else if (!EINA_DBL_CMP(new1.y, 0.0)) 909 else if (!EINA_DBL_EQ(new1.y, 0.0))
910 { 910 {
911 eina_vector3_scale(&old1, &old1, (new2.y / new1.y)); 911 eina_vector3_scale(&old1, &old1, (new2.y / new1.y));
912 eina_vector2_scale(&new1, &new1, (new2.y / new1.y)); 912 eina_vector2_scale(&new1, &new1, (new2.y / new1.y));
@@ -977,8 +977,8 @@ convex_hull_first_tr_get(float *data, int count, int stride)
977 for (i = 1, j = stride; i < count; i++, j += stride) 977 for (i = 1, j = stride; i < count; i++, j += stride)
978 { 978 {
979 if ((triangle1.z > data[j + 2]) || 979 if ((triangle1.z > data[j + 2]) ||
980 ((EINA_FLT_CMP(triangle1.z, data[j + 2])) && (triangle1.y > data[j + 1])) || 980 ((EINA_FLT_EQ(triangle1.z, data[j + 2])) && (triangle1.y > data[j + 1])) ||
981 ((EINA_FLT_CMP(triangle1.z, data[j + 2])) && (EINA_FLT_CMP(triangle1.y, data[j + 1])) && (triangle1.x > data[j]))) 981 ((EINA_FLT_EQ(triangle1.z, data[j + 2])) && (EINA_FLT_EQ(triangle1.y, data[j + 1])) && (triangle1.x > data[j])))
982 { 982 {
983 eina_vector3_set(&triangle1, data[j], data[j + 1], data[j + 2]); 983 eina_vector3_set(&triangle1, data[j], data[j + 1], data[j + 2]);
984 first_num = i; 984 first_num = i;
@@ -1000,7 +1000,7 @@ convex_hull_first_tr_get(float *data, int count, int stride)
1000 cos_2d = new_cos_2d; \ 1000 cos_2d = new_cos_2d; \
1001 eina_vector3_set(&triangle, data[j], data[j + 1], data[j + 2]); \ 1001 eina_vector3_set(&triangle, data[j], data[j + 1], data[j + 2]); \
1002 } \ 1002 } \
1003 else if(!EINA_FLT_CMP(little, big) && \ 1003 else if(!EINA_FLT_EQ(little, big) && \
1004 (eina_vector3_distance_get(&triangle##_candidate, &previous) > \ 1004 (eina_vector3_distance_get(&triangle##_candidate, &previous) > \
1005 eina_vector3_distance_get(&triangle, &previous))) \ 1005 eina_vector3_distance_get(&triangle, &previous))) \
1006 { \ 1006 { \
@@ -1009,9 +1009,9 @@ convex_hull_first_tr_get(float *data, int count, int stride)
1009 eina_vector3_set(&complanar1, 1, 0, 0); 1009 eina_vector3_set(&complanar1, 1, 0, 0);
1010 for (i = 0, j = 0; i < count; i++, j += stride) 1010 for (i = 0, j = 0; i < count; i++, j += stride)
1011 { 1011 {
1012 if (EINA_FLT_CMP(data[j], triangle1.x) || 1012 if (EINA_FLT_EQ(data[j], triangle1.x) ||
1013 EINA_FLT_CMP(data[j + 1], triangle1.y) || 1013 EINA_FLT_EQ(data[j + 1], triangle1.y) ||
1014 EINA_FLT_CMP(data[j + 2], triangle1.z)) 1014 EINA_FLT_EQ(data[j + 2], triangle1.z))
1015 { 1015 {
1016 eina_vector3_set(&triangle2_candidate, data[j], data[j + 1], data[j + 2]); 1016 eina_vector3_set(&triangle2_candidate, data[j], data[j + 1], data[j + 2]);
1017 eina_vector3_subtract(&diagonal, &triangle2_candidate, &triangle1); 1017 eina_vector3_subtract(&diagonal, &triangle2_candidate, &triangle1);
@@ -1024,7 +1024,7 @@ convex_hull_first_tr_get(float *data, int count, int stride)
1024 eina_vector3_subtract(&diagonal, &triangle2, &triangle1); 1024 eina_vector3_subtract(&diagonal, &triangle2, &triangle1);
1025 cos_2d = eina_vector3_angle_get(&complanar1, &diagonal); 1025 cos_2d = eina_vector3_angle_get(&complanar1, &diagonal);
1026 } 1026 }
1027 else if (!EINA_FLT_CMP(sin, new_sin)) 1027 else if (!EINA_FLT_EQ(sin, new_sin))
1028 { 1028 {
1029 eina_vector3_subtract(&diagonal, &triangle2_candidate, &triangle1); 1029 eina_vector3_subtract(&diagonal, &triangle2_candidate, &triangle1);
1030 new_cos_2d = eina_vector3_angle_get(&complanar1, &diagonal); 1030 new_cos_2d = eina_vector3_angle_get(&complanar1, &diagonal);
@@ -1050,12 +1050,12 @@ convex_hull_first_tr_get(float *data, int count, int stride)
1050 { 1050 {
1051 eina_vector3_set(&candidate, data[j], data[j + 1], data[j + 2]); 1051 eina_vector3_set(&candidate, data[j], data[j + 1], data[j + 2]);
1052 1052
1053 if ((EINA_FLT_CMP(data[j], triangle1.x) || 1053 if ((EINA_FLT_EQ(data[j], triangle1.x) ||
1054 EINA_FLT_CMP(data[j + 1], triangle1.y) || 1054 EINA_FLT_EQ(data[j + 1], triangle1.y) ||
1055 EINA_FLT_CMP(data[j + 2], triangle1.z)) && 1055 EINA_FLT_EQ(data[j + 2], triangle1.z)) &&
1056 (EINA_FLT_CMP(data[j], triangle2.x) || 1056 (EINA_FLT_EQ(data[j], triangle2.x) ||
1057 EINA_FLT_CMP(data[j + 1], triangle2.y) || 1057 EINA_FLT_EQ(data[j + 1], triangle2.y) ||
1058 EINA_FLT_CMP(data[j + 2], triangle2.z))) 1058 EINA_FLT_EQ(data[j + 2], triangle2.z)))
1059 { 1059 {
1060 eina_vector3_plane_by_points(&normal_b, &triangle1, &candidate, &triangle2); 1060 eina_vector3_plane_by_points(&normal_b, &triangle1, &candidate, &triangle2);
1061 1061
@@ -1073,7 +1073,7 @@ convex_hull_first_tr_get(float *data, int count, int stride)
1073 eina_vector3_set(&triangle3, data[j], data[j + 1], data[j + 2]); 1073 eina_vector3_set(&triangle3, data[j], data[j + 1], data[j + 2]);
1074 cos_2d = eina_vector3_angle_get(&diagonal, &first); 1074 cos_2d = eina_vector3_angle_get(&diagonal, &first);
1075 } 1075 }
1076 else if (!EINA_FLT_CMP(new_cos, cos)) 1076 else if (!EINA_FLT_EQ(new_cos, cos))
1077 { 1077 {
1078 eina_vector3_set(&triangle3_candidate, data[j], data[j + 1], data[j + 2]); 1078 eina_vector3_set(&triangle3_candidate, data[j], data[j + 1], data[j + 2]);
1079 eina_vector3_subtract(&first, &triangle1, &triangle2); 1079 eina_vector3_subtract(&first, &triangle1, &triangle2);
@@ -1156,11 +1156,11 @@ evas_convex_hull_get(float *data, int count, int stride, Eina_Inarray *vertex,
1156 and one new vertex, all vertices should be checked */ 1156 and one new vertex, all vertices should be checked */
1157 for (i = 0, j = 0; i < count; i++, j += stride) 1157 for (i = 0, j = 0; i < count; i++, j += stride)
1158 { 1158 {
1159 if ((EINA_FLT_CMP(elem->p0.x, data[j]) || EINA_FLT_CMP(elem->p0.y, data[j + 1]) || 1159 if ((EINA_FLT_EQ(elem->p0.x, data[j]) || EINA_FLT_EQ(elem->p0.y, data[j + 1]) ||
1160 EINA_FLT_CMP(elem->p0.z, data[j + 2])) && (EINA_FLT_CMP(elem->p1.x, data[j]) || 1160 EINA_FLT_EQ(elem->p0.z, data[j + 2])) && (EINA_FLT_EQ(elem->p1.x, data[j]) ||
1161 EINA_FLT_CMP(elem->p1.y, data[j + 1]) || EINA_FLT_CMP(elem->p1.z, data[j + 2])) && 1161 EINA_FLT_EQ(elem->p1.y, data[j + 1]) || EINA_FLT_EQ(elem->p1.z, data[j + 2])) &&
1162 (EINA_FLT_CMP(elem->p2.x, data[j]) || EINA_FLT_CMP(elem->p2.y, data[j + 1]) || 1162 (EINA_FLT_EQ(elem->p2.x, data[j]) || EINA_FLT_EQ(elem->p2.y, data[j + 1]) ||
1163 EINA_FLT_CMP(elem->p2.z, data[j + 2]))) 1163 EINA_FLT_EQ(elem->p2.z, data[j + 2])))
1164 { 1164 {
1165 next = malloc(sizeof(Eina_Vector3)); 1165 next = malloc(sizeof(Eina_Vector3));
1166 eina_vector3_set(next, data[j], data[j + 1], data[j + 2]); 1166 eina_vector3_set(next, data[j], data[j + 1], data[j + 2]);
@@ -1234,7 +1234,7 @@ evas_convex_hull_get(float *data, int count, int stride, Eina_Inarray *vertex,
1234 /* The case when several points are found, is discussed below. 1234 /* The case when several points are found, is discussed below.
1235 This case is interesting because the convex hull in the 1235 This case is interesting because the convex hull in the
1236 two-dimensional subspace should be filled further */ 1236 two-dimensional subspace should be filled further */
1237 if ((!EINA_FLT_CMP(cos, 1.0)) && (1 < eina_array_count(&arr_candidates))) 1237 if ((!EINA_FLT_EQ(cos, 1.0)) && (1 < eina_array_count(&arr_candidates)))
1238 { 1238 {
1239 Eina_Vector3 angle_from, angle_to; 1239 Eina_Vector3 angle_from, angle_to;
1240 next_2d = eina_array_data_get(&arr_candidates, 0); 1240 next_2d = eina_array_data_get(&arr_candidates, 0);
@@ -1265,7 +1265,7 @@ evas_convex_hull_get(float *data, int count, int stride, Eina_Inarray *vertex,
1265 cos_2d = new_cos; 1265 cos_2d = new_cos;
1266 best = eina_array_data_get(&arr_candidates, k); 1266 best = eina_array_data_get(&arr_candidates, k);
1267 } 1267 }
1268 else if (!EINA_FLT_CMP(new_cos, cos_2d)) 1268 else if (!EINA_FLT_EQ(new_cos, cos_2d))
1269 { 1269 {
1270 if ((right && (eina_vector3_distance_get(best, &elem->p0) < eina_vector3_length_get(&angle_from))) || 1270 if ((right && (eina_vector3_distance_get(best, &elem->p0) < eina_vector3_length_get(&angle_from))) ||
1271 (!right && (eina_vector3_distance_get(best, &elem->p1) < eina_vector3_length_get(&angle_from)))) 1271 (!right && (eina_vector3_distance_get(best, &elem->p1) < eina_vector3_length_get(&angle_from))))
@@ -1277,7 +1277,7 @@ evas_convex_hull_get(float *data, int count, int stride, Eina_Inarray *vertex,
1277 /* This event will take place after the previous, 1277 /* This event will take place after the previous,
1278 in fact, choice of first triangle in a new two-dimensional 1278 in fact, choice of first triangle in a new two-dimensional
1279 convex hull allows to fill it fan counterclockwise when viewed from the inside */ 1279 convex hull allows to fill it fan counterclockwise when viewed from the inside */
1280 else if ((EINA_FLT_CMP(cos, 1.0)) && (1 < eina_array_count(&arr_candidates))) 1280 else if ((EINA_FLT_EQ(cos, 1.0)) && (1 < eina_array_count(&arr_candidates)))
1281 { 1281 {
1282 Eina_Vector3 angle_from, angle_to; 1282 Eina_Vector3 angle_from, angle_to;
1283 eina_vector3_subtract(&angle_from, &elem->p0, &elem->p1); 1283 eina_vector3_subtract(&angle_from, &elem->p0, &elem->p1);
@@ -1297,7 +1297,7 @@ evas_convex_hull_get(float *data, int count, int stride, Eina_Inarray *vertex,
1297 cos_2d = new_cos; 1297 cos_2d = new_cos;
1298 best = eina_array_data_get(&arr_candidates, k); 1298 best = eina_array_data_get(&arr_candidates, k);
1299 } 1299 }
1300 else if (!EINA_FLT_CMP(new_cos, cos_2d)) 1300 else if (!EINA_FLT_EQ(new_cos, cos_2d))
1301 { 1301 {
1302 if (eina_vector3_distance_get(best, &elem->p0) < eina_vector3_length_get(&angle_to)) 1302 if (eina_vector3_distance_get(best, &elem->p0) < eina_vector3_length_get(&angle_to))
1303 best = eina_array_data_get(&arr_candidates, k); 1303 best = eina_array_data_get(&arr_candidates, k);
@@ -1405,9 +1405,9 @@ evas_convex_hull_get(float *data, int count, int stride, Eina_Inarray *vertex,
1405 exist1 = EINA_FALSE; \ 1405 exist1 = EINA_FALSE; \
1406 for (i = 0, new_stride = 0; (i < vertex_count) && !exist1; i++, new_stride += 10) \ 1406 for (i = 0, new_stride = 0; (i < vertex_count) && !exist1; i++, new_stride += 10) \
1407 { \ 1407 { \
1408 if ((k > 0) && !EINA_FLT_CMP(el->p##coord.x, found_vertex[new_stride]) && \ 1408 if ((k > 0) && !EINA_FLT_EQ(el->p##coord.x, found_vertex[new_stride]) && \
1409 !EINA_FLT_CMP(el->p##coord.y, found_vertex[new_stride + 1]) && \ 1409 !EINA_FLT_EQ(el->p##coord.y, found_vertex[new_stride + 1]) && \
1410 !EINA_FLT_CMP(el->p##coord.z, found_vertex[new_stride + 2])) \ 1410 !EINA_FLT_EQ(el->p##coord.z, found_vertex[new_stride + 2])) \
1411 { \ 1411 { \
1412 exist1 = EINA_TRUE; \ 1412 exist1 = EINA_TRUE; \
1413 found_index[3 * k + coord] = i; \ 1413 found_index[3 * k + coord] = i; \
@@ -1536,10 +1536,10 @@ evas_tangent_space_get(float *data, float *tex_data, float *normal_data, unsigne
1536 if ((fabs(data[j] - data[m]) < FLT_EPSILON) && 1536 if ((fabs(data[j] - data[m]) < FLT_EPSILON) &&
1537 (fabs(data[j + 1] - data[m + 1]) < FLT_EPSILON) && 1537 (fabs(data[j + 1] - data[m + 1]) < FLT_EPSILON) &&
1538 (fabs(data[j + 2] - data[m + 2]) < FLT_EPSILON) && 1538 (fabs(data[j + 2] - data[m + 2]) < FLT_EPSILON) &&
1539 ((m == j) || ((!EINA_FLT_CMP(tex_data[i * tex_stride], 0.0)) && 1539 ((m == j) || ((!EINA_FLT_EQ(tex_data[i * tex_stride], 0.0)) &&
1540 !EINA_FLT_CMP(tex_data[i * tex_stride + 1], 0.0) && 1540 !EINA_FLT_EQ(tex_data[i * tex_stride + 1], 0.0) &&
1541 !EINA_FLT_CMP(tex_data[i * tex_stride], 1.0) && 1541 !EINA_FLT_EQ(tex_data[i * tex_stride], 1.0) &&
1542 !EINA_FLT_CMP(tex_data[i * tex_stride + 1], 1.0)))) 1542 !EINA_FLT_EQ(tex_data[i * tex_stride + 1], 1.0))))
1543 { 1543 {
1544 found_index = l; 1544 found_index = l;
1545 for (k = 0; k < index_count; k += 3) 1545 for (k = 0; k < index_count; k += 3)
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index d69c43009c..911b4692d9 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -549,7 +549,7 @@ _drm_transparent_set(Ecore_Evas *ee, int transparent)
549static void 549static void
550_drm_aspect_set(Ecore_Evas *ee, double aspect) 550_drm_aspect_set(Ecore_Evas *ee, double aspect)
551{ 551{
552 if (EINA_FLT_CMP(ee->prop.aspect, aspect)) return; 552 if (EINA_FLT_EQ(ee->prop.aspect, aspect)) return;
553 ee->prop.aspect = aspect; 553 ee->prop.aspect = aspect;
554} 554}
555 555
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index cd883c0292..9e0af0de0c 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -939,7 +939,7 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
939 if (bh < 1) bh = 1; 939 if (bh < 1) bh = 1;
940 a = ((double)bw / (double)bh); 940 a = ((double)bw / (double)bh);
941 941
942 if ((!EINA_FLT_CMP(ee->prop.aspect, 0.0) && 942 if ((!EINA_FLT_EQ(ee->prop.aspect, 0.0) &&
943 (a < ee->prop.aspect))) 943 (a < ee->prop.aspect)))
944 { 944 {
945 if ((h < ee->h) > 0) 945 if ((h < ee->h) > 0)
@@ -950,7 +950,7 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
950 w = bw + ee->prop.base.w; 950 w = bw + ee->prop.base.w;
951 h = bh + ee->prop.base.h; 951 h = bh + ee->prop.base.h;
952 } 952 }
953 else if ((!EINA_FLT_CMP(ee->prop.aspect, 0.0)) && 953 else if ((!EINA_FLT_EQ(ee->prop.aspect, 0.0)) &&
954 (a > ee->prop.aspect)) 954 (a > ee->prop.aspect))
955 { 955 {
956 bw = bh * ee->prop.aspect; 956 bw = bh * ee->prop.aspect;
@@ -960,7 +960,7 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
960 else 960 else
961 { 961 {
962 a = ((double)w / (double)h); 962 a = ((double)w / (double)h);
963 if ((!EINA_FLT_CMP(ee->prop.aspect, 0.0)) && 963 if ((!EINA_FLT_EQ(ee->prop.aspect, 0.0)) &&
964 (a < ee->prop.aspect)) 964 (a < ee->prop.aspect))
965 { 965 {
966 if ((h < ee->h) > 0) 966 if ((h < ee->h) > 0)
@@ -968,7 +968,7 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
968 else 968 else
969 h = w / ee->prop.aspect; 969 h = w / ee->prop.aspect;
970 } 970 }
971 else if ((!EINA_FLT_CMP(ee->prop.aspect, 0.0)) && 971 else if ((!EINA_FLT_EQ(ee->prop.aspect, 0.0)) &&
972 (a > ee->prop.aspect)) 972 (a > ee->prop.aspect))
973 w = h * ee->prop.aspect; 973 w = h * ee->prop.aspect;
974 } 974 }
@@ -1272,7 +1272,7 @@ _ecore_evas_wl_common_aspect_set(Ecore_Evas *ee, double aspect)
1272 LOGFN(__FILE__, __LINE__, __FUNCTION__); 1272 LOGFN(__FILE__, __LINE__, __FUNCTION__);
1273 1273
1274 if (!ee) return; 1274 if (!ee) return;
1275 if (EINA_FLT_CMP(ee->prop.aspect, aspect)) return; 1275 if (EINA_FLT_EQ(ee->prop.aspect, aspect)) return;
1276 ee->prop.aspect = aspect; 1276 ee->prop.aspect = aspect;
1277} 1277}
1278 1278
diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
index 7949326ee3..af3f56bc19 100644
--- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c
+++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
@@ -2968,7 +2968,7 @@ _ecore_evas_x_window_group_set(Ecore_Evas *ee, const Ecore_Evas *group_ee)
2968static void 2968static void
2969_ecore_evas_x_aspect_set(Ecore_Evas *ee, double aspect) 2969_ecore_evas_x_aspect_set(Ecore_Evas *ee, double aspect)
2970{ 2970{
2971 if (EINA_FLT_CMP(ee->prop.aspect, aspect)) return; 2971 if (EINA_FLT_EQ(ee->prop.aspect, aspect)) return;
2972 2972
2973 ee->prop.aspect = aspect; 2973 ee->prop.aspect = aspect;
2974 _ecore_evas_x_size_pos_hints_update(ee); 2974 _ecore_evas_x_size_pos_hints_update(ee);
diff --git a/src/modules/emotion/gstreamer1/emotion_sink.c b/src/modules/emotion/gstreamer1/emotion_sink.c
index c31f3652de..47ed4d2825 100644
--- a/src/modules/emotion/gstreamer1/emotion_sink.c
+++ b/src/modules/emotion/gstreamer1/emotion_sink.c
@@ -345,7 +345,7 @@ _update_emotion_fps(EmotionVideoSinkPrivate *priv)
345 tim = ecore_time_get(); 345 tim = ecore_time_get();
346 priv->frames++; 346 priv->frames++;
347 347
348 if (EINA_DBL_CMP(priv->rlapse, 0.0)) 348 if (EINA_DBL_EQ(priv->rlapse, 0.0))
349 { 349 {
350 priv->rlapse = tim; 350 priv->rlapse = tim;
351 priv->flapse = priv->frames; 351 priv->flapse = priv->frames;
diff --git a/src/modules/emotion/xine/emotion_xine.c b/src/modules/emotion/xine/emotion_xine.c
index d7bf5692e7..b0bca12c1a 100644
--- a/src/modules/emotion/xine/emotion_xine.c
+++ b/src/modules/emotion/xine/emotion_xine.c
@@ -196,7 +196,7 @@ _em_slave(void *par)
196 196
197 pos = *((double *)eev->xine_event); 197 pos = *((double *)eev->xine_event);
198 if ((xine_get_param(ev->stream, XINE_PARAM_SPEED) == XINE_SPEED_PAUSE) && 198 if ((xine_get_param(ev->stream, XINE_PARAM_SPEED) == XINE_SPEED_PAUSE) &&
199 (EINA_DBL_CMP(pos, ev->pos)) && 199 (EINA_DBL_EQ(pos, ev->pos)) &&
200 (!ev->just_loaded)) 200 (!ev->just_loaded))
201 { 201 {
202 xine_set_param(ev->stream, XINE_PARAM_SPEED, XINE_SPEED_NORMAL); 202 xine_set_param(ev->stream, XINE_PARAM_SPEED, XINE_SPEED_NORMAL);
@@ -1324,7 +1324,7 @@ _em_fd_ev_active(void *data EINA_UNUSED, Ecore_Fd_Handler *fdh)
1324 ev->play_ok = 1; 1324 ev->play_ok = 1;
1325 break; 1325 break;
1326 case 15: /* get pos done */ 1326 case 15: /* get pos done */
1327 if (!EINA_DBL_CMP(ev->last_pos, ev->pos)) 1327 if (!EINA_DBL_EQ(ev->last_pos, ev->pos))
1328 { 1328 {
1329 ev->last_pos = ev->pos; 1329 ev->last_pos = ev->pos;
1330 _emotion_video_pos_update(ev->obj, ev->pos, ev->len); 1330 _emotion_video_pos_update(ev->obj, ev->pos, ev->len);
diff --git a/src/static_libs/triangulator/triangulator_stroker.c b/src/static_libs/triangulator/triangulator_stroker.c
index 436229b702..a1d06657f0 100644
--- a/src/static_libs/triangulator/triangulator_stroker.c
+++ b/src/static_libs/triangulator/triangulator_stroker.c
@@ -30,9 +30,9 @@ normal_vector(float x1, float y1, float x2, float y2, float width,
30 float dx = x2 - x1; 30 float dx = x2 - x1;
31 float dy = y2 - y1; 31 float dy = y2 - y1;
32 32
33 if (EINA_FLT_CMP(dx, 0)) 33 if (EINA_FLT_EQ(dx, 0))
34 pw = width / fabsf(dy); 34 pw = width / fabsf(dy);
35 else if (EINA_FLT_CMP(dy, 0)) 35 else if (EINA_FLT_EQ(dy, 0))
36 pw = width / fabsf(dx); 36 pw = width / fabsf(dx);
37 else 37 else
38 pw = width / sqrtf(dx*dx + dy*dy); 38 pw = width / sqrtf(dx*dx + dy*dy);
@@ -396,7 +396,7 @@ static inline void
396_skip_duplicate_points(const double **pts, const double *end_pts) 396_skip_duplicate_points(const double **pts, const double *end_pts)
397{ 397{
398 while ((*pts + 2) < end_pts && (*pts)[0] == (*pts)[2] && 398 while ((*pts + 2) < end_pts && (*pts)[0] == (*pts)[2] &&
399 EINA_FLT_CMP((*pts)[1], (*pts)[3])) 399 EINA_FLT_EQ((*pts)[1], (*pts)[3]))
400 { 400 {
401 *pts += 2; 401 *pts += 2;
402 } 402 }
@@ -424,7 +424,7 @@ _path_info_get(const Efl_Gfx_Path_Command *cmds, const double *pts, Eina_Bool *i
424 *implicit_close = EINA_TRUE; 424 *implicit_close = EINA_TRUE;
425 // fall through 425 // fall through
426 case EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO: 426 case EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO:
427 if (EINA_FLT_CMP(pts[0], pts[i]) && EINA_FLT_CMP(pts[1], pts[i+1])) 427 if (EINA_FLT_EQ(pts[0], pts[i]) && EINA_FLT_EQ(pts[1], pts[i+1]))
428 *ends_at_start = EINA_TRUE; 428 *ends_at_start = EINA_TRUE;
429 return; 429 return;
430 default: 430 default:
@@ -432,8 +432,8 @@ _path_info_get(const Efl_Gfx_Path_Command *cmds, const double *pts, Eina_Bool *i
432 } 432 }
433 } 433 }
434 // this path is the last path with out implicit close. 434 // this path is the last path with out implicit close.
435 *ends_at_start = EINA_FLT_CMP(pts[0], pts[i]) && 435 *ends_at_start = EINA_FLT_EQ(pts[0], pts[i]) &&
436 EINA_FLT_CMP(pts[1], pts[i+1]); 436 EINA_FLT_EQ(pts[1], pts[i+1]);
437} 437}
438 438
439void 439void
@@ -492,7 +492,7 @@ triangulator_stroker_process(Triangulator_Stroker *stroker,
492 break; 492 break;
493 } 493 }
494 case EFL_GFX_PATH_COMMAND_TYPE_LINE_TO: 494 case EFL_GFX_PATH_COMMAND_TYPE_LINE_TO:
495 if (!EINA_FLT_CMP(stroker->cx, pts[0]) || !EINA_FLT_CMP(stroker->cy, (float)pts[1])) 495 if (!EINA_FLT_EQ(stroker->cx, pts[0]) || !EINA_FLT_EQ(stroker->cy, (float)pts[1]))
496 { 496 {
497 if (previous_type != EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO) 497 if (previous_type != EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO)
498 add_join(stroker, pts[0], pts[1]); 498 add_join(stroker, pts[0], pts[1]);
@@ -502,15 +502,15 @@ triangulator_stroker_process(Triangulator_Stroker *stroker,
502 pts+=2; 502 pts+=2;
503 break; 503 break;
504 case EFL_GFX_PATH_COMMAND_TYPE_CUBIC_TO: 504 case EFL_GFX_PATH_COMMAND_TYPE_CUBIC_TO:
505 if (!EINA_FLT_CMP(stroker->cx, pts[0]) || 505 if (!EINA_FLT_EQ(stroker->cx, pts[0]) ||
506 !EINA_FLT_CMP(stroker->cy, pts[1]) || 506 !EINA_FLT_EQ(stroker->cy, pts[1]) ||
507 !EINA_FLT_CMP(pts[0], pts[2]) || 507 !EINA_FLT_EQ(pts[0], pts[2]) ||
508 !EINA_FLT_CMP(pts[1], pts[3]) || 508 !EINA_FLT_EQ(pts[1], pts[3]) ||
509 !EINA_FLT_CMP(pts[2], pts[4]) || 509 !EINA_FLT_EQ(pts[2], pts[4]) ||
510 !EINA_FLT_CMP(pts[3], pts[5])) 510 !EINA_FLT_EQ(pts[3], pts[5]))
511 { 511 {
512 if (!EINA_FLT_CMP(stroker->cx, pts[0]) || 512 if (!EINA_FLT_EQ(stroker->cx, pts[0]) ||
513 !EINA_FLT_CMP(stroker->cy, pts[1])) 513 !EINA_FLT_EQ(stroker->cy, pts[1]))
514 { 514 {
515 if (previous_type != EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO) 515 if (previous_type != EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO)
516 add_join(stroker, pts[0], pts[1]); 516 add_join(stroker, pts[0], pts[1]);
diff --git a/src/tests/eina/eina_test_matrix.c b/src/tests/eina/eina_test_matrix.c
index e4b566a572..31662868e4 100644
--- a/src/tests/eina/eina_test_matrix.c
+++ b/src/tests/eina/eina_test_matrix.c
@@ -49,10 +49,10 @@ START_TEST(eina_matrix2)
49 &xx, &xy, 49 &xx, &xy,
50 &yx, &yy); 50 &yx, &yy);
51 51
52 fail_if(!EINA_DBL_CMP(xx, yy) || 52 fail_if(!EINA_DBL_EQ(xx, yy) ||
53 !EINA_DBL_CMP(yy, 1)); 53 !EINA_DBL_EQ(yy, 1));
54 fail_if(!EINA_DBL_CMP(xy, yx) || 54 fail_if(!EINA_DBL_EQ(xy, yx) ||
55 !EINA_DBL_CMP(xy, 0)); 55 !EINA_DBL_EQ(xy, 0));
56 56
57 eina_shutdown(); 57 eina_shutdown();
58} 58}
@@ -78,26 +78,26 @@ START_TEST(eina_matrix2_operation)
78 eina_matrix2_values_get(&m1, 78 eina_matrix2_values_get(&m1,
79 &xx, &xy, 79 &xx, &xy,
80 &yx, &yy); 80 &yx, &yy);
81 fail_if(!EINA_DBL_CMP(xx, yy) || 81 fail_if(!EINA_DBL_EQ(xx, yy) ||
82 !EINA_DBL_CMP(yy, 1)); 82 !EINA_DBL_EQ(yy, 1));
83 fail_if(!EINA_DBL_CMP(xy, yx) || 83 fail_if(!EINA_DBL_EQ(xy, yx) ||
84 !EINA_DBL_CMP(xy, 0)); 84 !EINA_DBL_EQ(xy, 0));
85 85
86 eina_matrix2_array_set(&m1, arr); 86 eina_matrix2_array_set(&m1, arr);
87 eina_matrix2_values_get(&m1, 87 eina_matrix2_values_get(&m1,
88 &xx, &xy, 88 &xx, &xy,
89 &yx, &yy); 89 &yx, &yy);
90 fail_if(!EINA_DBL_CMP(xx, yy) || 90 fail_if(!EINA_DBL_EQ(xx, yy) ||
91 !EINA_DBL_CMP(yx, xy) || 91 !EINA_DBL_EQ(yx, xy) ||
92 !EINA_DBL_CMP(xy, 1)); 92 !EINA_DBL_EQ(xy, 1));
93 93
94 eina_matrix2_copy(&m2, &m1); 94 eina_matrix2_copy(&m2, &m1);
95 eina_matrix2_values_get(&m2, 95 eina_matrix2_values_get(&m2,
96 &xx, &xy, 96 &xx, &xy,
97 &yx, &yy); 97 &yx, &yy);
98 fail_if(!EINA_DBL_CMP(xx, yy) || 98 fail_if(!EINA_DBL_EQ(xx, yy) ||
99 !EINA_DBL_CMP(yx, xy) || 99 !EINA_DBL_EQ(yx, xy) ||
100 !EINA_DBL_CMP(xy, 1)); 100 !EINA_DBL_EQ(xy, 1));
101 101
102 eina_matrix2_values_set(&m1, 102 eina_matrix2_values_set(&m1,
103 2, 3, 103 2, 3,
@@ -106,17 +106,17 @@ START_TEST(eina_matrix2_operation)
106 eina_matrix2_values_get(&m3, 106 eina_matrix2_values_get(&m3,
107 &xx, &xy, 107 &xx, &xy,
108 &yx, &yy); 108 &yx, &yy);
109 fail_if(!EINA_DBL_CMP(xx, yy) || 109 fail_if(!EINA_DBL_EQ(xx, yy) ||
110 !EINA_DBL_CMP(yx, xy) || 110 !EINA_DBL_EQ(yx, xy) ||
111 !EINA_DBL_CMP(xy, 5)); 111 !EINA_DBL_EQ(xy, 5));
112 112
113 eina_matrix2_multiply(&m3, &m1, &m2); 113 eina_matrix2_multiply(&m3, &m1, &m2);
114 eina_matrix2_values_get(&m3, 114 eina_matrix2_values_get(&m3,
115 &xx, &xy, 115 &xx, &xy,
116 &yx, &yy); 116 &yx, &yy);
117 fail_if(!EINA_DBL_CMP(xx, yy) || 117 fail_if(!EINA_DBL_EQ(xx, yy) ||
118 !EINA_DBL_CMP(yx, xy) || 118 !EINA_DBL_EQ(yx, xy) ||
119 !EINA_DBL_CMP(xy, 5)); 119 !EINA_DBL_EQ(xy, 5));
120 120
121} 121}
122END_TEST 122END_TEST
@@ -151,22 +151,22 @@ START_TEST(eina_matrix4)
151 &zx, &zy, &zz, &zw, 151 &zx, &zy, &zz, &zw,
152 &wx, &wy, &wz, &ww); 152 &wx, &wy, &wz, &ww);
153 153
154 fail_if(!EINA_DBL_CMP(xx, yy) || 154 fail_if(!EINA_DBL_EQ(xx, yy) ||
155 !EINA_DBL_CMP(yy, zz) || 155 !EINA_DBL_EQ(yy, zz) ||
156 !EINA_DBL_CMP(zz, ww) || 156 !EINA_DBL_EQ(zz, ww) ||
157 !EINA_DBL_CMP(ww, 1)); 157 !EINA_DBL_EQ(ww, 1));
158 fail_if(!EINA_DBL_CMP(xy, xz) || 158 fail_if(!EINA_DBL_EQ(xy, xz) ||
159 !EINA_DBL_CMP(xz, xw) || 159 !EINA_DBL_EQ(xz, xw) ||
160 !EINA_DBL_CMP(xw, yx) || 160 !EINA_DBL_EQ(xw, yx) ||
161 !EINA_DBL_CMP(yx, yz) || 161 !EINA_DBL_EQ(yx, yz) ||
162 !EINA_DBL_CMP(yz, yw) || 162 !EINA_DBL_EQ(yz, yw) ||
163 !EINA_DBL_CMP(yw, zx) || 163 !EINA_DBL_EQ(yw, zx) ||
164 !EINA_DBL_CMP(zx, zy) || 164 !EINA_DBL_EQ(zx, zy) ||
165 !EINA_DBL_CMP(zy, zw) || 165 !EINA_DBL_EQ(zy, zw) ||
166 !EINA_DBL_CMP(zw, wx) || 166 !EINA_DBL_EQ(zw, wx) ||
167 !EINA_DBL_CMP(wx, wy) || 167 !EINA_DBL_EQ(wx, wy) ||
168 !EINA_DBL_CMP(wy, wz) || 168 !EINA_DBL_EQ(wy, wz) ||
169 !EINA_DBL_CMP(wz, 0)); 169 !EINA_DBL_EQ(wz, 0));
170 170
171 eina_matrix4_values_set(&m, 171 eina_matrix4_values_set(&m,
172 1, 2, 3, 4, 172 1, 2, 3, 4,
@@ -175,22 +175,22 @@ START_TEST(eina_matrix4)
175 13, 14, 15, 16); 175 13, 14, 15, 16);
176 176
177 eina_matrix4_transpose(&n, &m); 177 eina_matrix4_transpose(&n, &m);
178 fail_if(!EINA_DBL_CMP(n.xx, 1) || 178 fail_if(!EINA_DBL_EQ(n.xx, 1) ||
179 !EINA_DBL_CMP(n.xy, 5) || 179 !EINA_DBL_EQ(n.xy, 5) ||
180 !EINA_DBL_CMP(n.xz, 9) || 180 !EINA_DBL_EQ(n.xz, 9) ||
181 !EINA_DBL_CMP(n.xw, 13) || 181 !EINA_DBL_EQ(n.xw, 13) ||
182 !EINA_DBL_CMP(n.yx, 2) || 182 !EINA_DBL_EQ(n.yx, 2) ||
183 !EINA_DBL_CMP(n.yy, 6) || 183 !EINA_DBL_EQ(n.yy, 6) ||
184 !EINA_DBL_CMP(n.yz, 10) || 184 !EINA_DBL_EQ(n.yz, 10) ||
185 !EINA_DBL_CMP(n.yw, 14) || 185 !EINA_DBL_EQ(n.yw, 14) ||
186 !EINA_DBL_CMP(n.zx, 3) || 186 !EINA_DBL_EQ(n.zx, 3) ||
187 !EINA_DBL_CMP(n.zy, 7) || 187 !EINA_DBL_EQ(n.zy, 7) ||
188 !EINA_DBL_CMP(n.zz, 11) || 188 !EINA_DBL_EQ(n.zz, 11) ||
189 !EINA_DBL_CMP(n.zw, 15) || 189 !EINA_DBL_EQ(n.zw, 15) ||
190 !EINA_DBL_CMP(n.wx, 4) || 190 !EINA_DBL_EQ(n.wx, 4) ||
191 !EINA_DBL_CMP(n.wy, 8) || 191 !EINA_DBL_EQ(n.wy, 8) ||
192 !EINA_DBL_CMP(n.wz, 12) || 192 !EINA_DBL_EQ(n.wz, 12) ||
193 !EINA_DBL_CMP(n.ww, 16)); 193 !EINA_DBL_EQ(n.ww, 16));
194 194
195 eina_shutdown(); 195 eina_shutdown();
196} 196}
@@ -213,7 +213,7 @@ START_TEST(eina_matrix4_operation)
213 0, 0, 0, 2, 213 0, 0, 0, 2,
214 0, 2, 0, 0); 214 0, 2, 0, 0);
215 det = eina_matrix4_determinant(&m); 215 det = eina_matrix4_determinant(&m);
216 fail_if(!EINA_DBL_CMP(det, -16)); 216 fail_if(!EINA_DBL_EQ(det, -16));
217 217
218 eina_matrix4_inverse(&m1, &m); 218 eina_matrix4_inverse(&m1, &m);
219 eina_matrix4_values_get(&m1, 219 eina_matrix4_values_get(&m1,
@@ -221,10 +221,10 @@ START_TEST(eina_matrix4_operation)
221 &yx, &yy, &yz, &yw, 221 &yx, &yy, &yz, &yw,
222 &zx, &zy, &zz, &zw, 222 &zx, &zy, &zz, &zw,
223 &wx, &wy, &wz, &ww); 223 &wx, &wy, &wz, &ww);
224 fail_if (!EINA_DBL_CMP(xy, 0.5) || 224 fail_if (!EINA_DBL_EQ(xy, 0.5) ||
225 !EINA_DBL_CMP(yw, xy) || 225 !EINA_DBL_EQ(yw, xy) ||
226 !EINA_DBL_CMP(zx, yw) || 226 !EINA_DBL_EQ(zx, yw) ||
227 !EINA_DBL_CMP(wz, zx)); 227 !EINA_DBL_EQ(wz, zx));
228 228
229 eina_matrix4_identity(&m1); 229 eina_matrix4_identity(&m1);
230 eina_matrix4_values_get(&m1, 230 eina_matrix4_values_get(&m1,
@@ -232,10 +232,10 @@ START_TEST(eina_matrix4_operation)
232 &yx, &yy, &yz, &yw, 232 &yx, &yy, &yz, &yw,
233 &zx, &zy, &zz, &zw, 233 &zx, &zy, &zz, &zw,
234 &wx, &wy, &wz, &ww); 234 &wx, &wy, &wz, &ww);
235 fail_if (!EINA_DBL_CMP(xx, 1) || 235 fail_if (!EINA_DBL_EQ(xx, 1) ||
236 !EINA_DBL_CMP(yy, xx) || 236 !EINA_DBL_EQ(yy, xx) ||
237 !EINA_DBL_CMP(zz, yy) || 237 !EINA_DBL_EQ(zz, yy) ||
238 !EINA_DBL_CMP(ww, zz)); 238 !EINA_DBL_EQ(ww, zz));
239 239
240 eina_matrix4_values_set(&m1, 240 eina_matrix4_values_set(&m1,
241 0, 2, 2, 0, 241 0, 2, 2, 0,
@@ -248,14 +248,14 @@ START_TEST(eina_matrix4_operation)
248 &yx, &yy, &yz, &yw, 248 &yx, &yy, &yz, &yw,
249 &zx, &zy, &zz, &zw, 249 &zx, &zy, &zz, &zw,
250 &wx, &wy, &wz, &ww); 250 &wx, &wy, &wz, &ww);
251 fail_if (!EINA_DBL_CMP(xx, 4) || 251 fail_if (!EINA_DBL_EQ(xx, 4) ||
252 !EINA_DBL_CMP(xw, xx) || 252 !EINA_DBL_EQ(xw, xx) ||
253 !EINA_DBL_CMP(yy, xw) || 253 !EINA_DBL_EQ(yy, xw) ||
254 !EINA_DBL_CMP(yz, yy) || 254 !EINA_DBL_EQ(yz, yy) ||
255 !EINA_DBL_CMP(zy, yz) || 255 !EINA_DBL_EQ(zy, yz) ||
256 !EINA_DBL_CMP(zz, yy) || 256 !EINA_DBL_EQ(zz, yy) ||
257 !EINA_DBL_CMP(wx, xx) || 257 !EINA_DBL_EQ(wx, xx) ||
258 !EINA_DBL_CMP(ww, zy)); 258 !EINA_DBL_EQ(ww, zy));
259 259
260 eina_matrix4_multiply(&m2, &m1, &m); 260 eina_matrix4_multiply(&m2, &m1, &m);
261 eina_matrix4_values_get(&m2, 261 eina_matrix4_values_get(&m2,
@@ -263,14 +263,14 @@ START_TEST(eina_matrix4_operation)
263 &yx, &yy, &yz, &yw, 263 &yx, &yy, &yz, &yw,
264 &zx, &zy, &zz, &zw, 264 &zx, &zy, &zz, &zw,
265 &wx, &wy, &wz, &ww); 265 &wx, &wy, &wz, &ww);
266 fail_if (!EINA_DBL_CMP(xx, 4) || 266 fail_if (!EINA_DBL_EQ(xx, 4) ||
267 !EINA_DBL_CMP(xw, xx) || 267 !EINA_DBL_EQ(xw, xx) ||
268 !EINA_DBL_CMP(yy, xw) || 268 !EINA_DBL_EQ(yy, xw) ||
269 !EINA_DBL_CMP(yz, yy) || 269 !EINA_DBL_EQ(yz, yy) ||
270 !EINA_DBL_CMP(zy, yz) || 270 !EINA_DBL_EQ(zy, yz) ||
271 !EINA_DBL_CMP(zz, yy) || 271 !EINA_DBL_EQ(zz, yy) ||
272 !EINA_DBL_CMP(wx, xx) || 272 !EINA_DBL_EQ(wx, xx) ||
273 !EINA_DBL_CMP(ww, zy)); 273 !EINA_DBL_EQ(ww, zy));
274 274
275 eina_matrix4_array_set(&m1, arr); 275 eina_matrix4_array_set(&m1, arr);
276 eina_matrix4_values_get(&m1, 276 eina_matrix4_values_get(&m1,
@@ -278,14 +278,14 @@ START_TEST(eina_matrix4_operation)
278 &yx, &yy, &yz, &yw, 278 &yx, &yy, &yz, &yw,
279 &zx, &zy, &zz, &zw, 279 &zx, &zy, &zz, &zw,
280 &wx, &wy, &wz, &ww); 280 &wx, &wy, &wz, &ww);
281 fail_if (!EINA_DBL_CMP(xx, 1) || 281 fail_if (!EINA_DBL_EQ(xx, 1) ||
282 !EINA_DBL_CMP(xw, xx) || 282 !EINA_DBL_EQ(xw, xx) ||
283 !EINA_DBL_CMP(yy, xw) || 283 !EINA_DBL_EQ(yy, xw) ||
284 !EINA_DBL_CMP(yz, yy) || 284 !EINA_DBL_EQ(yz, yy) ||
285 !EINA_DBL_CMP(zy, yz) || 285 !EINA_DBL_EQ(zy, yz) ||
286 !EINA_DBL_CMP(zz, yy) || 286 !EINA_DBL_EQ(zz, yy) ||
287 !EINA_DBL_CMP(wx, xx) || 287 !EINA_DBL_EQ(wx, xx) ||
288 !EINA_DBL_CMP(ww, zy)); 288 !EINA_DBL_EQ(ww, zy));
289 289
290 eina_matrix4_copy(&m, &m1); 290 eina_matrix4_copy(&m, &m1);
291 eina_matrix4_values_get(&m1, 291 eina_matrix4_values_get(&m1,
@@ -293,14 +293,14 @@ START_TEST(eina_matrix4_operation)
293 &yx, &yy, &yz, &yw, 293 &yx, &yy, &yz, &yw,
294 &zx, &zy, &zz, &zw, 294 &zx, &zy, &zz, &zw,
295 &wx, &wy, &wz, &ww); 295 &wx, &wy, &wz, &ww);
296 fail_if (!EINA_DBL_CMP(xx, 1) || 296 fail_if (!EINA_DBL_EQ(xx, 1) ||
297 !EINA_DBL_CMP(xw, xx) || 297 !EINA_DBL_EQ(xw, xx) ||
298 !EINA_DBL_CMP(yy, xw) || 298 !EINA_DBL_EQ(yy, xw) ||
299 !EINA_DBL_CMP(yz, yy) || 299 !EINA_DBL_EQ(yz, yy) ||
300 !EINA_DBL_CMP(zy, yz) || 300 !EINA_DBL_EQ(zy, yz) ||
301 !EINA_DBL_CMP(zz, yy) || 301 !EINA_DBL_EQ(zz, yy) ||
302 !EINA_DBL_CMP(wx, xx) || 302 !EINA_DBL_EQ(wx, xx) ||
303 !EINA_DBL_CMP(ww, zy)); 303 !EINA_DBL_EQ(ww, zy));
304 304
305 eina_matrix4_ortho_set(&m, l, r, b, t, dn, df); 305 eina_matrix4_ortho_set(&m, l, r, b, t, dn, df);
306 eina_matrix4_values_get(&m, 306 eina_matrix4_values_get(&m,
@@ -308,13 +308,13 @@ START_TEST(eina_matrix4_operation)
308 &yx, &yy, &yz, &yw, 308 &yx, &yy, &yz, &yw,
309 &zx, &zy, &zz, &zw, 309 &zx, &zy, &zz, &zw,
310 &wx, &wy, &wz, &ww); 310 &wx, &wy, &wz, &ww);
311 fail_if (!EINA_DBL_CMP(xx, -2) || 311 fail_if (!EINA_DBL_EQ(xx, -2) ||
312 !EINA_DBL_CMP(yy, -2) || 312 !EINA_DBL_EQ(yy, -2) ||
313 !EINA_DBL_CMP(zz, 2) || 313 !EINA_DBL_EQ(zz, 2) ||
314 !EINA_DBL_CMP(wx, 9) || 314 !EINA_DBL_EQ(wx, 9) ||
315 !EINA_DBL_CMP(wy, 7) || 315 !EINA_DBL_EQ(wy, 7) ||
316 !EINA_DBL_CMP(wz, 5) || 316 !EINA_DBL_EQ(wz, 5) ||
317 !EINA_DBL_CMP(ww, 1)); 317 !EINA_DBL_EQ(ww, 1));
318} 318}
319END_TEST 319END_TEST
320 320
@@ -370,14 +370,14 @@ START_TEST(eina_matrix3)
370 &yx, &yy, &yz, 370 &yx, &yy, &yz,
371 &zx, &zy, &zz); 371 &zx, &zy, &zz);
372 372
373 fail_if(!EINA_DBL_CMP(xx, yy) || 373 fail_if(!EINA_DBL_EQ(xx, yy) ||
374 !EINA_DBL_CMP(yy, zz) || 374 !EINA_DBL_EQ(yy, zz) ||
375 !EINA_DBL_CMP(zz, 1)); 375 !EINA_DBL_EQ(zz, 1));
376 376
377 fail_if(!EINA_DBL_CMP(xy, xz) || 377 fail_if(!EINA_DBL_EQ(xy, xz) ||
378 !EINA_DBL_CMP(yx, yz) || 378 !EINA_DBL_EQ(yx, yz) ||
379 !EINA_DBL_CMP(zx, zy) || 379 !EINA_DBL_EQ(zx, zy) ||
380 !EINA_DBL_CMP(zy, 0)); 380 !EINA_DBL_EQ(zy, 0));
381 381
382 ret = eina_matrix3_equal(&m, &m1); 382 ret = eina_matrix3_equal(&m, &m1);
383 fail_if(ret != EINA_TRUE); 383 fail_if(ret != EINA_TRUE);
@@ -390,15 +390,15 @@ START_TEST(eina_matrix3)
390END_TEST 390END_TEST
391 391
392#define MATRIX3_CMP(XX, XY, XZ, YX, YY, YZ, ZX, ZY, ZZ, AXX, AXY, AXZ, AYX, AYY, AYZ, AZX, AZY, AZZ) \ 392#define MATRIX3_CMP(XX, XY, XZ, YX, YY, YZ, ZX, ZY, ZZ, AXX, AXY, AXZ, AYX, AYY, AYZ, AZX, AZY, AZZ) \
393 (EINA_DBL_CMP(XX, AXX) && \ 393 (EINA_DBL_EQ(XX, AXX) && \
394 EINA_DBL_CMP(XY, AXY) && \ 394 EINA_DBL_EQ(XY, AXY) && \
395 EINA_DBL_CMP(XZ, AXZ) && \ 395 EINA_DBL_EQ(XZ, AXZ) && \
396 EINA_DBL_CMP(YX, AYX) && \ 396 EINA_DBL_EQ(YX, AYX) && \
397 EINA_DBL_CMP(YY, AYY) && \ 397 EINA_DBL_EQ(YY, AYY) && \
398 EINA_DBL_CMP(YZ, AYZ) && \ 398 EINA_DBL_EQ(YZ, AYZ) && \
399 EINA_DBL_CMP(ZX, AZX) && \ 399 EINA_DBL_EQ(ZX, AZX) && \
400 EINA_DBL_CMP(ZY, AZY) && \ 400 EINA_DBL_EQ(ZY, AZY) && \
401 EINA_DBL_CMP(ZZ, AZZ)) 401 EINA_DBL_EQ(ZZ, AZZ))
402 402
403START_TEST(eina_matrix3_operations) 403START_TEST(eina_matrix3_operations)
404{ 404{
@@ -425,13 +425,13 @@ START_TEST(eina_matrix3_operations)
425 &xx, &xy, &xz, 425 &xx, &xy, &xz,
426 &yx, &yy, &yz, 426 &yx, &yy, &yz,
427 &zx, &zy, &zz); 427 &zx, &zy, &zz);
428 fail_if (!EINA_DBL_CMP(xx, xy) || 428 fail_if (!EINA_DBL_EQ(xx, xy) ||
429 !EINA_DBL_CMP(xy, xz) || 429 !EINA_DBL_EQ(xy, xz) ||
430 !EINA_DBL_CMP(yx, yy) || 430 !EINA_DBL_EQ(yx, yy) ||
431 !EINA_DBL_CMP(yy, yz) || 431 !EINA_DBL_EQ(yy, yz) ||
432 !EINA_DBL_CMP(zx, zy) || 432 !EINA_DBL_EQ(zx, zy) ||
433 !EINA_DBL_CMP(zy, zz) || 433 !EINA_DBL_EQ(zy, zz) ||
434 !EINA_DBL_CMP(zz, 1)); 434 !EINA_DBL_EQ(zz, 1));
435 435
436 eina_matrix3_translate(&m1, tx, ty); 436 eina_matrix3_translate(&m1, tx, ty);
437 eina_matrix3_values_get(&m1, 437 eina_matrix3_values_get(&m1,
@@ -484,21 +484,21 @@ START_TEST(eina_matrix3_operations)
484 &xx, &xy, &xz, 484 &xx, &xy, &xz,
485 &yx, &yy, &yz, 485 &yx, &yy, &yz,
486 &zx, &zy, &zz); 486 &zx, &zy, &zz);
487 fail_if(!EINA_DBL_CMP(xx, yy) || 487 fail_if(!EINA_DBL_EQ(xx, yy) ||
488 !EINA_DBL_CMP(yy, zz) || 488 !EINA_DBL_EQ(yy, zz) ||
489 !EINA_DBL_CMP(zz, 1)); 489 !EINA_DBL_EQ(zz, 1));
490 490
491 fail_if(!EINA_DBL_CMP(xy, xz) || 491 fail_if(!EINA_DBL_EQ(xy, xz) ||
492 !EINA_DBL_CMP(yx, yz) || 492 !EINA_DBL_EQ(yx, yz) ||
493 !EINA_DBL_CMP(zx, zy) || 493 !EINA_DBL_EQ(zx, zy) ||
494 !EINA_DBL_CMP(zy, 0)); 494 !EINA_DBL_EQ(zy, 0));
495 495
496 eina_matrix3_values_set(&m1, 496 eina_matrix3_values_set(&m1,
497 1, 2, 1, 497 1, 2, 1,
498 2, 1, 1, 498 2, 1, 1,
499 1, 2, 2); 499 1, 2, 2);
500 ret = eina_matrix3_determinant(&m1); 500 ret = eina_matrix3_determinant(&m1);
501 fail_if(!EINA_DBL_CMP(ret, -3)); 501 fail_if(!EINA_DBL_EQ(ret, -3));
502 502
503 eina_matrix3_values_set(&m1, 503 eina_matrix3_values_set(&m1,
504 3, 3, 3, 504 3, 3, 3,
@@ -509,13 +509,13 @@ START_TEST(eina_matrix3_operations)
509 &xx, &xy, &xz, 509 &xx, &xy, &xz,
510 &yx, &yy, &yz, 510 &yx, &yy, &yz,
511 &zx, &zy, &zz); 511 &zx, &zy, &zz);
512 fail_if (!EINA_DBL_CMP(xx, xy) || 512 fail_if (!EINA_DBL_EQ(xx, xy) ||
513 !EINA_DBL_CMP(xy, xz) || 513 !EINA_DBL_EQ(xy, xz) ||
514 !EINA_DBL_CMP(yx, yy) || 514 !EINA_DBL_EQ(yx, yy) ||
515 !EINA_DBL_CMP(yy, yz) || 515 !EINA_DBL_EQ(yy, yz) ||
516 !EINA_DBL_CMP(zx, zy) || 516 !EINA_DBL_EQ(zx, zy) ||
517 !EINA_DBL_CMP(zy, zz) || 517 !EINA_DBL_EQ(zy, zz) ||
518 !EINA_DBL_CMP(zz, 1.5)); 518 !EINA_DBL_EQ(zz, 1.5));
519 519
520 eina_matrix3_values_set(&m1, 520 eina_matrix3_values_set(&m1,
521 0, 2, 0, 521 0, 2, 0,
@@ -642,16 +642,16 @@ START_TEST(eina_matrix3_operations)
642 &xx, &xy, &xz, 642 &xx, &xy, &xz,
643 &yx, &yy, &yz, 643 &yx, &yy, &yz,
644 &zx, &zy, &zz); 644 &zx, &zy, &zz);
645 fail_if (!EINA_DBL_CMP(xz, 5) || 645 fail_if (!EINA_DBL_EQ(xz, 5) ||
646 !EINA_DBL_CMP(yz, 3)); 646 !EINA_DBL_EQ(yz, 3));
647 647
648 eina_matrix3_scale_transform_set(&m2, 6, 7); 648 eina_matrix3_scale_transform_set(&m2, 6, 7);
649 eina_matrix3_values_get(&m2, 649 eina_matrix3_values_get(&m2,
650 &xx, &xy, &xz, 650 &xx, &xy, &xz,
651 &yx, &yy, &yz, 651 &yx, &yy, &yz,
652 &zx, &zy, &zz); 652 &zx, &zy, &zz);
653 fail_if (!EINA_DBL_CMP(xx, 6) || 653 fail_if (!EINA_DBL_EQ(xx, 6) ||
654 !EINA_DBL_CMP(yy, 7)); 654 !EINA_DBL_EQ(yy, 7));
655} 655}
656END_TEST 656END_TEST
657 657
@@ -737,20 +737,20 @@ START_TEST(eina_matrix3_map_transform)
737 eina_matrix3_point_transform(&m, 737 eina_matrix3_point_transform(&m,
738 x, y, 738 x, y,
739 &x1, &y1); 739 &x1, &y1);
740 fail_if(!EINA_DBL_CMP(x1, 3) || 740 fail_if(!EINA_DBL_EQ(x1, 3) ||
741 !EINA_DBL_CMP(y1, 2)); 741 !EINA_DBL_EQ(y1, 2));
742 742
743 EINA_RECTANGLE_SET(&r, 0, 0, 3, 4); 743 EINA_RECTANGLE_SET(&r, 0, 0, 3, 4);
744 eina_matrix3_rectangle_transform(&m, &r, &q); 744 eina_matrix3_rectangle_transform(&m, &r, &q);
745 745
746 fail_if(!EINA_DBL_CMP(q.x0, 0) || 746 fail_if(!EINA_DBL_EQ(q.x0, 0) ||
747 !EINA_DBL_CMP(q.y0, 0) || 747 !EINA_DBL_EQ(q.y0, 0) ||
748 !EINA_DBL_CMP(q.x1, 0) || 748 !EINA_DBL_EQ(q.x1, 0) ||
749 !EINA_DBL_CMP(q.y1, 3) || 749 !EINA_DBL_EQ(q.y1, 3) ||
750 !EINA_DBL_CMP(q.x2, 4) || 750 !EINA_DBL_EQ(q.x2, 4) ||
751 !EINA_DBL_CMP(q.y2, 3) || 751 !EINA_DBL_EQ(q.y2, 3) ||
752 !EINA_DBL_CMP(q.x3, 4) || 752 !EINA_DBL_EQ(q.x3, 4) ||
753 !EINA_DBL_CMP(q.y3, 0)); 753 !EINA_DBL_EQ(q.y3, 0));
754 754
755 eina_quad_coords_set(&q, 755 eina_quad_coords_set(&q,
756 0.0, 0.0, 756 0.0, 0.0,
@@ -770,14 +770,14 @@ START_TEST(eina_matrix3_map_transform)
770 ret = eina_matrix3_quad_square_map(&m, &q); 770 ret = eina_matrix3_quad_square_map(&m, &q);
771 fail_if(ret != EINA_TRUE); 771 fail_if(ret != EINA_TRUE);
772 772
773 fail_if(!EINA_DBL_CMP(q.x0, 0) || 773 fail_if(!EINA_DBL_EQ(q.x0, 0) ||
774 !EINA_DBL_CMP(q.y0, 0) || 774 !EINA_DBL_EQ(q.y0, 0) ||
775 !EINA_DBL_CMP(q.x1, 3) || 775 !EINA_DBL_EQ(q.x1, 3) ||
776 !EINA_DBL_CMP(q.y1, 0) || 776 !EINA_DBL_EQ(q.y1, 0) ||
777 !EINA_DBL_CMP(q.x2, 3) || 777 !EINA_DBL_EQ(q.x2, 3) ||
778 !EINA_DBL_CMP(q.y2, 3) || 778 !EINA_DBL_EQ(q.y2, 3) ||
779 !EINA_DBL_CMP(q.x3, 0) || 779 !EINA_DBL_EQ(q.x3, 0) ||
780 !EINA_DBL_CMP(q.y3, 3)); 780 !EINA_DBL_EQ(q.y3, 3));
781 781
782 eina_shutdown(); 782 eina_shutdown();
783} 783}
diff --git a/src/tests/eina/eina_test_quad.c b/src/tests/eina/eina_test_quad.c
index 60cb6537c4..e05884f664 100644
--- a/src/tests/eina/eina_test_quad.c
+++ b/src/tests/eina/eina_test_quad.c
@@ -29,20 +29,20 @@ START_TEST(eina_quad_simple)
29 &x1, &y1, 29 &x1, &y1,
30 &x2, &y2, 30 &x2, &y2,
31 &x3, &y3); 31 &x3, &y3);
32 fail_if (!EINA_FLT_CMP(r2.x0, 0.0) || 32 fail_if (!EINA_FLT_EQ(r2.x0, 0.0) ||
33 !EINA_FLT_CMP(r2.y0, 5.0) || 33 !EINA_FLT_EQ(r2.y0, 5.0) ||
34 !EINA_FLT_CMP(r2.x1, 5.0) || 34 !EINA_FLT_EQ(r2.x1, 5.0) ||
35 !EINA_FLT_CMP(r2.y1, 0.0) || 35 !EINA_FLT_EQ(r2.y1, 0.0) ||
36 !EINA_FLT_CMP(r2.x2, 10.0) || 36 !EINA_FLT_EQ(r2.x2, 10.0) ||
37 !EINA_FLT_CMP(r2.y2, 5.0) || 37 !EINA_FLT_EQ(r2.y2, 5.0) ||
38 !EINA_FLT_CMP(r2.x3, 5.0) || 38 !EINA_FLT_EQ(r2.x3, 5.0) ||
39 !EINA_FLT_CMP(r2.y3, 10.0)); 39 !EINA_FLT_EQ(r2.y3, 10.0));
40 40
41 eina_quad_rectangle_to(&r2, &r1); 41 eina_quad_rectangle_to(&r2, &r1);
42 fail_if (!EINA_FLT_CMP(r1.x, 0) || 42 fail_if (!EINA_FLT_EQ(r1.x, 0) ||
43 !EINA_FLT_CMP(r1.y, 0) || 43 !EINA_FLT_EQ(r1.y, 0) ||
44 !EINA_FLT_CMP(r1.w, 10) || 44 !EINA_FLT_EQ(r1.w, 10) ||
45 !EINA_FLT_CMP(r1.h, 10)); 45 !EINA_FLT_EQ(r1.h, 10));
46 46
47 eina_quad_coords_set(&r2, 47 eina_quad_coords_set(&r2,
48 0.0, 0.0, 48 0.0, 0.0,
@@ -50,21 +50,21 @@ START_TEST(eina_quad_simple)
50 0.0, 0.0, 50 0.0, 0.0,
51 0.0, 0.0); 51 0.0, 0.0);
52 eina_quad_rectangle_to(&r2, &r1); 52 eina_quad_rectangle_to(&r2, &r1);
53 fail_if (!EINA_FLT_CMP(r1.x, 0) || 53 fail_if (!EINA_FLT_EQ(r1.x, 0) ||
54 !EINA_FLT_CMP(r1.y, 0) || 54 !EINA_FLT_EQ(r1.y, 0) ||
55 !EINA_FLT_CMP(r1.w, 0) || 55 !EINA_FLT_EQ(r1.w, 0) ||
56 !EINA_FLT_CMP(r1.h, 0)); 56 !EINA_FLT_EQ(r1.h, 0));
57 57
58 EINA_RECTANGLE_SET(&r1, 5, 10, 20, 30); 58 EINA_RECTANGLE_SET(&r1, 5, 10, 20, 30);
59 eina_quad_rectangle_from(&r2, &r1); 59 eina_quad_rectangle_from(&r2, &r1);
60 fail_if (!EINA_FLT_CMP(r2.x0, 5.0) || 60 fail_if (!EINA_FLT_EQ(r2.x0, 5.0) ||
61 !EINA_FLT_CMP(r2.y0, 10.0) || 61 !EINA_FLT_EQ(r2.y0, 10.0) ||
62 !EINA_FLT_CMP(r2.x1, 25.0) || 62 !EINA_FLT_EQ(r2.x1, 25.0) ||
63 !EINA_FLT_CMP(r2.y1, 10.0) || 63 !EINA_FLT_EQ(r2.y1, 10.0) ||
64 !EINA_FLT_CMP(r2.x2, 25.0) || 64 !EINA_FLT_EQ(r2.x2, 25.0) ||
65 !EINA_FLT_CMP(r2.y2, 40.0) || 65 !EINA_FLT_EQ(r2.y2, 40.0) ||
66 !EINA_FLT_CMP(r2.x3, 5.0) || 66 !EINA_FLT_EQ(r2.x3, 5.0) ||
67 !EINA_FLT_CMP(r2.y3, 40.0)); 67 !EINA_FLT_EQ(r2.y3, 40.0));
68 68
69 eina_shutdown(); 69 eina_shutdown();
70} 70}
diff --git a/src/tests/eina/eina_test_quaternion.c b/src/tests/eina/eina_test_quaternion.c
index c832cb2863..1949af7a20 100644
--- a/src/tests/eina/eina_test_quaternion.c
+++ b/src/tests/eina/eina_test_quaternion.c
@@ -31,10 +31,10 @@
31static inline Eina_Bool 31static inline Eina_Bool
32eina_quaternion_cmp(const Eina_Quaternion *a, const Eina_Quaternion *b) 32eina_quaternion_cmp(const Eina_Quaternion *a, const Eina_Quaternion *b)
33{ 33{
34 if (EINA_FLT_CMP(a->x, b->x) && 34 if (EINA_FLT_EQ(a->x, b->x) &&
35 EINA_FLT_CMP(a->y, b->y) && 35 EINA_FLT_EQ(a->y, b->y) &&
36 EINA_FLT_CMP(a->z, b->z) && 36 EINA_FLT_EQ(a->z, b->z) &&
37 EINA_FLT_CMP(a->w, b->w)) 37 EINA_FLT_EQ(a->w, b->w))
38 return EINA_TRUE; 38 return EINA_TRUE;
39 return EINA_FALSE; 39 return EINA_FALSE;
40} 40}
@@ -42,15 +42,15 @@ eina_quaternion_cmp(const Eina_Quaternion *a, const Eina_Quaternion *b)
42static inline Eina_Bool 42static inline Eina_Bool
43eina_matrix3_cmp(const Eina_Matrix3 *a, const Eina_Matrix3 *b) 43eina_matrix3_cmp(const Eina_Matrix3 *a, const Eina_Matrix3 *b)
44{ 44{
45 if (EINA_FLT_CMP(a->xx, b->xx) && 45 if (EINA_FLT_EQ(a->xx, b->xx) &&
46 EINA_FLT_CMP(a->xy, b->xy) && 46 EINA_FLT_EQ(a->xy, b->xy) &&
47 EINA_FLT_CMP(a->xz, b->xz) && 47 EINA_FLT_EQ(a->xz, b->xz) &&
48 EINA_FLT_CMP(a->yx, b->yx) && 48 EINA_FLT_EQ(a->yx, b->yx) &&
49 EINA_FLT_CMP(a->yy, b->yy) && 49 EINA_FLT_EQ(a->yy, b->yy) &&
50 EINA_FLT_CMP(a->yz, b->yz) && 50 EINA_FLT_EQ(a->yz, b->yz) &&
51 EINA_FLT_CMP(a->zx, b->zx) && 51 EINA_FLT_EQ(a->zx, b->zx) &&
52 EINA_FLT_CMP(a->zy, b->zy) && 52 EINA_FLT_EQ(a->zy, b->zy) &&
53 EINA_FLT_CMP(a->zz, b->zz)) 53 EINA_FLT_EQ(a->zz, b->zz))
54 return EINA_TRUE; 54 return EINA_TRUE;
55 return EINA_FALSE; 55 return EINA_FALSE;
56} 56}
@@ -74,9 +74,9 @@ eina_matrix3_f16p16_cmp(const Eina_Matrix3_F16p16 *a, const Eina_Matrix3_F16p16
74static inline Eina_Bool 74static inline Eina_Bool
75eina_point_3d_cmp(const Eina_Point_3D *a, const Eina_Point_3D *b) 75eina_point_3d_cmp(const Eina_Point_3D *a, const Eina_Point_3D *b)
76{ 76{
77 if (EINA_FLT_CMP(a->x, b->x) && 77 if (EINA_FLT_EQ(a->x, b->x) &&
78 EINA_FLT_CMP(a->y, b->y) && 78 EINA_FLT_EQ(a->y, b->y) &&