Hello. On 08/09/14 05:02, Mike Blumenkrantz wrote: > discomfitor pushed a commit to branch master. > > http://git.enlightenment.org/core/enlightenment.git/commit/?id=a69a5a1796d5aafe5c45167bca43769562b70dd0 > > commit a69a5a1796d5aafe5c45167bca43769562b70dd0 > Author: Mike Blumenkrantz <[email protected]> > Date: Sun Sep 7 23:01:54 2014 -0400 > > add dblequal() util function to be used for addressing the infinite > comparison warnings > --- > src/bin/e_utils.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/src/bin/e_utils.h b/src/bin/e_utils.h > index ae5d8bc..39c1a71 100644 > --- a/src/bin/e_utils.h > +++ b/src/bin/e_utils.h > @@ -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 >
Any special reason you did your own macro instead of using islessequal() and friends? They need C99 but we require that for E anyway. regards Stefan Schmidt ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce. Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
