ref: c3f841f0c6010a9818c959e75a29ba622fc97ba1
parent: e00161c954c73c20357b839052ee235d11d88200
author: Erik de Castro Lopo <erikd@miles>
date: Sat Nov 6 06:28:47 EST 2004
Move definition of ARRAY_LEN from src_sinc.c to common.h.
--- a/src/common.h
+++ b/src/common.h
@@ -33,6 +33,8 @@
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))
+
#define MAKE_MAGIC(a,b,c,d,e,f) ((a) + ((b) << 4) + ((c) << 8) + ((d) << 12) + ((e) << 16) + ((f) << 20))
#include "samplerate.h"
--- a/src/src_sinc.c
+++ b/src/src_sinc.c
@@ -26,8 +26,6 @@
#define SINC_MAGIC_MARKER MAKE_MAGIC (' ', 's', 'i', 'n', 'c', ' ')
-#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))
-
/*========================================================================================
** Macros for handling the index into the array for the filter.
** Double precision floating point is not accurate enough so use a 64 bit