# HG changeset patch # User mas01mc # Date 1231647864 0 # Node ID eb9a7ef110c1cdeff15d162cb92c80afe4d74aad # Parent 081ced1b2da27c7fb46ca4ee58358f2dff6017a1 generalized LSH_N_POINT_BITS compile-time option. Set to <=15 or omit for default (backwards-compatible) behaviour. diff -r 081ced1b2da2 -r eb9a7ef110c1 audioDB.h --- 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