diff audioDB.h @ 502:eb9a7ef110c1 memory-leaks

generalized LSH_N_POINT_BITS compile-time option. Set to <=15 or omit for default (backwards-compatible) behaviour.
author mas01mc
date Sun, 11 Jan 2009 04:24:24 +0000
parents fbcc1303dfeb
children
line wrap: on
line diff
--- a/audioDB.h	Sun Jan 11 03:57:01 2009 +0000
+++ b/audioDB.h	Sun Jan 11 04:24:24 2009 +0000
@@ -88,8 +88,16 @@
 #define LSH_N_POINT_BITS O2_DEFAULT_LSH_N_POINT_BITS
 #endif
 
+// Backwards-compatible nbits field size, control at compile time with -DLSH_N_POINT_BITS
+#if LSH_N_POINT_BITS > 15
 #define LSH_POINT_BITS_FIELD_POSITION 27  // LSB bit position in 32-bit int for n_point_bits
 #define LSH_POINT_BITS_FIELD_MAX 31       // maximum value possible given LSH_POINT_BITS_FIELD_POSITION
+#else
+#define LSH_POINT_BITS_FIELD_POSITION 28  // LSB bit position in 32-bit int for n_point_bits
+#define LSH_POINT_BITS_FIELD_MAX 15       // maximum value possible given LSH_POINT_BITS_FIELD_POSITION
+#endif
+
+
 
 
 // LIMIT PARAMETERS