#ifndef EINA_UTIL_H_
#define EINA_UTIL_H_
+#include <float.h>
+
/**
* @addtogroup Eina_Tools_Group Tools
*
EAPI const char *eina_environment_tmp_get(void);
/**
+ * @brief Safe comparison of float
+ * @param a First member to compar
+ * @param b Second member to compar
+ *
+ * @return @c true if two floats match
+ */
+#define EINA_FLT_CMP(a, b) (fabsf((float)a - (float)b) <= FLT_EPSILON)
+
+/**
+ * @brief Safe comparison of double
+ * @param a First member to compar
+ * @param b Second member to compar
+ *
+ * @return @c true if two double match
+ */
+#define EINA_DBL_CMP(a, b) (fabs((double)a - (double)b) <= DBL_EPSILON)
+
+/**
* @}
*/