add dblequal() util function to be used for addressing the infinite comparison warnings

This commit is contained in:
Mike Blumenkrantz 2014-09-07 23:01:54 -04:00
parent 6f1e58b922
commit a69a5a1796
1 changed files with 6 additions and 0 deletions

View File

@ -93,5 +93,11 @@ isedje(const Evas_Object *obj)
return obj && !e_util_strcmp(evas_object_type_get(obj), "edje");
}
static inline Eina_Bool
dblequal(double a, double b)
{
return fabs(a - b) < DBL_EPSILON;
}
#endif
#endif