Mercurial > hg > qm-dsp
view maths/nan-inf.h @ 314:b5987e82c5f6
* First bit of work on non-qmake make
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 09 Feb 2011 09:51:54 +0000 |
parents | 702ff8c08137 |
children | c313a173f4a9 |
line wrap: on
line source
#ifndef NAN_INF_H #define NAN_INF_H #include <math.h> #ifdef sun #include <ieeefp.h> #define ISNAN(x) ((sizeof(x)==sizeof(float))?isnanf(x):isnand(x)) #define ISINF(x) (!finite(x)) #else #define ISNAN(x) isnan(x) #define ISINF(x) isinf(x) #endif #endif