repo.or.cz
/
ardour2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add queen mary DSP library
[ardour2.git]
/
libs
/
qm-dsp
/
maths
/
nan-inf.h
blob
8191713000ec04055a0f4141094c01a14b3c1476
1
2
#ifndef NAN_INF_H
3
#define NAN_INF_H
4
5
#include <math.h>
6
7
#ifdef sun
8
9
#include <ieeefp.h>
10
#define ISNAN(x) ((sizeof(x)==sizeof(float))?isnanf(x):isnand(x))
11
#define ISINF(x) (!finite(x))
12
13
#else
14
15
#define ISNAN(x) isnan(x)
16
#define ISINF(x) isinf(x)
17
18
#endif
19
20
#endif