mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
git-svn-id: svn://localhost/ardour2/branches/3.0@9029 d708f5d6-7413-0410-9779-e7cbd77b26cf
20 lines
261 B
C
20 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
|