src/aubio_priv.h: fix typo in ROUND
[aubio.git] / src / aubio_priv.h
index 299d24c..cdb8269 100644 (file)
@@ -131,7 +131,8 @@ typedef enum {
 #define LOG10      log10f
 #define LOG        logf
 #define FLOOR      floorf
-#define TRUNC      truncf
+#define CEIL       ceilf
+#define ROUND(x)   FLOOR(x+.5)
 
 /* aliases to complex.h functions */
 #if !defined(HAVE_COMPLEX_H) || defined(WIN32)
@@ -169,6 +170,8 @@ typedef enum {
 
 #define ELEM_SWAP(a,b) { register smpl_t t=(a);(a)=(b);(b)=t; }
 
+#define ISDENORMAL(f) f < 1.e-37
+
 #define UNUSED __attribute__((unused))
 
 #endif/*_AUBIO_PRIV_H*/