From ae4d5de65d7b89f4010cef3a6f57d81a71f27b16 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 12 Sep 2009 14:26:17 +0200 Subject: [PATCH] src/aubio_priv.h: add MIN and MAX --- src/aubio_priv.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aubio_priv.h b/src/aubio_priv.h index cdb82696..d51f8da8 100644 --- 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 -- 2.26.2