diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/pm_c_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/pm_c_util.h b/lib/util/pm_c_util.h index 07913f30..f17d1e03 100644 --- a/lib/util/pm_c_util.h +++ b/lib/util/pm_c_util.h @@ -1,6 +1,11 @@ #ifndef PM_C_UTIL_INCLUDED #define PM_C_UTIL_INCLUDED +/* Note that for MAX and MIN, if either of the operands is a floating point + Not-A-Number, the result is the second operand. So if you're computing a + running maximum and want to ignore the NaNs in the computation, put the + running maximum variable second. +*/ #undef MAX #define MAX(a,b) ((a) > (b) ? (a) : (b)) #undef MIN |