diff options
author | Umesh Tanwar <umesh.tanwar@samsung.com> | 2017-03-21 11:11:19 -0700 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2017-03-21 11:11:23 -0700 |
commit | b313b30cf7922217529fb66e665170c1b43fef1c (patch) | |
tree | 7982ffbef7704685424e52e6bf1e280def7cc000 | |
parent | 38e6780262906ffd8f6ad8de7c8a42868a13a914 (diff) | |
download | efl-b313b30cf7922217529fb66e665170c1b43fef1c.tar.gz |
ecore: proper macro usage for double comparision. Summary: The comparisions are done between doubles. EINA_FLT_EQ -> EINA_DBL_EQ
Summary: Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>
Reviewers: singh.amitesh, cedric
Subscribers: jpeg, atulfokk
Differential Revision: https://phab.enlightenment.org/D4719
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r-- | src/lib/ecore/ecore_main.c | 2 | ||||
-rw-r--r-- | src/lib/ecore/ecore_pipe.c | 2 | ||||
-rw-r--r-- | src/lib/ecore/ecore_poller.c | 2 | ||||
-rw-r--r-- | src/lib/ecore/ecore_thread.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index da573cc6da..758bad624f 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -1695,7 +1695,7 @@ _ecore_main_select(double timeout) int max_fd, ret, err_no; t = NULL; - if ((!ECORE_FINITE(timeout)) || (EINA_FLT_EQ(timeout, 0.0))) /* finite() tests for NaN, too big, too small, and infinity. */ + if ((!ECORE_FINITE(timeout)) || (EINA_DBL_EQ(timeout, 0.0))) /* finite() tests for NaN, too big, too small, and infinity. */ { tv.tv_sec = 0; tv.tv_usec = 0; diff --git a/src/lib/ecore/ecore_pipe.c b/src/lib/ecore/ecore_pipe.c index 23a4c1fed9..4bdce6e09a 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, if (wait >= 0.0) { /* finite() tests for NaN, too big, too small, and infinity. */ - if ((!ECORE_FINITE(timeout)) || (EINA_FLT_EQ(timeout, 0.0))) + if ((!ECORE_FINITE(timeout)) || (EINA_DBL_EQ(timeout, 0.0))) { tv.tv_sec = 0; tv.tv_usec = 0; diff --git a/src/lib/ecore/ecore_poller.c b/src/lib/ecore/ecore_poller.c index 839c6f646b..ee4ebce767 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) else { t = ecore_loop_time_get(); - if (!EINA_FLT_EQ(interval, poll_cur_interval)) + if (!EINA_DBL_EQ(interval, poll_cur_interval)) { t -= last_tick; /* time since we last ticked */ /* 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 15128a17ed..91e6aacfa7 100644 --- a/src/lib/ecore/ecore_thread.c +++ b/src/lib/ecore/ecore_thread.c @@ -1465,7 +1465,7 @@ ecore_thread_global_data_wait(const char *key, ret = eina_hash_find(_ecore_thread_global_hash, key); LRWKU(_ecore_thread_global_hash_lock); if ((ret) || - (!EINA_FLT_EQ(seconds, 0.0)) || + (!EINA_DBL_EQ(seconds, 0.0)) || ((seconds > 0) && (tm <= ecore_time_get()))) break; LKL(_ecore_thread_global_hash_mutex); |