From b3230fbfae987be002718a5a035db2030b880871 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 24 Aug 2009 12:02:32 +0000 Subject: [PATCH] call fpclass only once when replacing isnan for solaris git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1904 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_config_bottom.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rrd_config_bottom.h b/src/rrd_config_bottom.h index d04e592..a569197 100644 --- a/src/rrd_config_bottom.h +++ b/src/rrd_config_bottom.h @@ -175,7 +175,8 @@ char *strchr (), *strrchr (); # ifdef isinf # undef isinf # endif -# define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF) +# define isinf(a) (!!(fpclass(a) & (FP_SNAN|FP_QNAN))) + #endif /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */ -- 2.30.2