Paul Davis
3deba1921b
git-svn-id: svn://localhost/ardour2/branches/3.0@9029 d708f5d6-7413-0410-9779-e7cbd77b26cf
21 lines
261 B
C
21 lines
261 B
C
|
|
#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
|