view maths/nan-inf.h @ 88:e4d055c240b3

* Oops -- restore a file that was actually used (by qm-vamp-plugins)
author Chris Cannam
date Tue, 04 Jan 2011 13:49:19 +0000
parents 054c384d860d
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