annotate maths/nan-inf.h @ 304:702ff8c08137

* Solaris build fixes
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 14 Sep 2009 13:01:44 +0000
parents
children c313a173f4a9
rev   line source
c@304 1
c@304 2 #ifndef NAN_INF_H
c@304 3 #define NAN_INF_H
c@304 4
c@304 5 #include <math.h>
c@304 6
c@304 7 #ifdef sun
c@304 8
c@304 9 #include <ieeefp.h>
c@304 10 #define ISNAN(x) ((sizeof(x)==sizeof(float))?isnanf(x):isnand(x))
c@304 11 #define ISINF(x) (!finite(x))
c@304 12
c@304 13 #else
c@304 14
c@304 15 #define ISNAN(x) isnan(x)
c@304 16 #define ISINF(x) isinf(x)
c@304 17
c@304 18 #endif
c@304 19
c@304 20 #endif