summaryrefslogtreecommitdiff
path: root/libs/qm-dsp/maths/nan-inf.h
blob: 8191713000ec04055a0f4141094c01a14b3c1476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#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