2 #ifndef QM_DSP_NAN_INF_H 3 #define QM_DSP_NAN_INF_H 5 #define ISNAN(x) (sizeof(x) == sizeof(double) ? ISNANd(x) : ISNANf(x)) 6 static inline int ISNANf(
float x) {
return x != x; }
7 static inline int ISNANd(
double x) {
return x != x; }
9 #define ISINF(x) (sizeof(x) == sizeof(double) ? ISINFd(x) : ISINFf(x)) static int ISINFd(double x)
static int ISNANd(double x)
static int ISNANf(float x)
static int ISINFf(float x)