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>
This commit is contained in:
Umesh Tanwar 2017-03-21 11:11:19 -07:00 committed by Cedric BAIL
parent 38e6780262
commit b313b30cf7
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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);