add dblequal() util function to be used for addressing the infinite comparison warnings
This commit is contained in:
parent
6f1e58b922
commit
a69a5a1796
|
@ -93,5 +93,11 @@ isedje(const Evas_Object *obj)
|
||||||
return obj && !e_util_strcmp(evas_object_type_get(obj), "edje");
|
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
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue