Commit 7533e626 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

DBL_IS_EQUAL: simplfy statement.

parent ea545fba
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
static inline bool static inline bool
DBL_IS_EQUAL(double x, double y) DBL_IS_EQUAL(double x, double y)
{ {
return (std::isnan(x) || std::isnan(y) ? (std::isnan(x) && std::isnan(y) ? 1 : 0) : !(x < y || y < x)); return (std::isnan(x) || std::isnan(y) ? (std::isnan(x) && std::isnan(y)) : !(x < y || y < x));
} }
//#define IS_NOT_EQUAL(x, y) (x < y || y < x) //#define IS_NOT_EQUAL(x, y) (x < y || y < x)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment