add queen mary DSP library
[ardour2.git] / libs / qm-dsp / maths / nan-inf.h
blob8191713000ec04055a0f4141094c01a14b3c1476
2 #ifndef NAN_INF_H
3 #define NAN_INF_H
5 #include <math.h>
7 #ifdef sun
9 #include <ieeefp.h>
10 #define ISNAN(x) ((sizeof(x)==sizeof(float))?isnanf(x):isnand(x))
11 #define ISINF(x) (!finite(x))
13 #else
15 #define ISNAN(x) isnan(x)
16 #define ISINF(x) isinf(x)
18 #endif
20 #endif