projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e19e5b
)
src/aubio_priv.h: add MIN and MAX
author
Paul Brossier
<piem@piem.org>
Sat, 12 Sep 2009 12:26:17 +0000
(14:26 +0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 12 Sep 2009 12:26:17 +0000
(14:26 +0200)
src/aubio_priv.h
patch
|
blob
|
history
diff --git
a/src/aubio_priv.h
b/src/aubio_priv.h
index cdb826967a2fd69d2ba106ce0275f2825fb58c66..d51f8da8f00b88ceca014002397ba04d441f8f3f 100644
(file)
--- a/
src/aubio_priv.h
+++ b/
src/aubio_priv.h
@@
-168,6
+168,9
@@
typedef enum {
#define LIN2DB(v) (20.0f*LOG10(v))
#define SQR(_a) (_a*_a)
+#define MAX(a,b) ( a > b ? a : b)
+#define MIN(a,b) ( a < b ? a : b)
+
#define ELEM_SWAP(a,b) { register smpl_t t=(a);(a)=(b);(b)=t; }
#define ISDENORMAL(f) f < 1.e-37