diff options
Diffstat (limited to '')
-rw-r--r-- | common.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -145,6 +145,12 @@ tolerant_eq(double a, double b) return iszeroish((a - b) / 100.0); } +static inline int +intolerant_eq(double a, double b) +{ + return fabs(a - b) < 1e-11; +} + # define ASSERT(ASSERTION)\ do {\ if (!(ASSERTION)) {\ |