src/aubio_priv.h: add missing CEIL, rename TRUNC to ROUND, use FLOOR(x+.5) to avoid...
authorPaul Brossier <piem@piem.org>
Fri, 11 Sep 2009 22:06:19 +0000 (00:06 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 11 Sep 2009 22:06:19 +0000 (00:06 +0200)
src/aubio_priv.h

index 314a72a..ff43e4a 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)