Mercurial > hg > audiodb
comparison 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 |
comparison
equal
deleted
inserted
replaced
501:081ced1b2da2 | 502:eb9a7ef110c1 |
---|---|
86 // Override the default point bit width for large database support | 86 // Override the default point bit width for large database support |
87 #ifndef LSH_N_POINT_BITS | 87 #ifndef LSH_N_POINT_BITS |
88 #define LSH_N_POINT_BITS O2_DEFAULT_LSH_N_POINT_BITS | 88 #define LSH_N_POINT_BITS O2_DEFAULT_LSH_N_POINT_BITS |
89 #endif | 89 #endif |
90 | 90 |
91 // Backwards-compatible nbits field size, control at compile time with -DLSH_N_POINT_BITS | |
92 #if LSH_N_POINT_BITS > 15 | |
91 #define LSH_POINT_BITS_FIELD_POSITION 27 // LSB bit position in 32-bit int for n_point_bits | 93 #define LSH_POINT_BITS_FIELD_POSITION 27 // LSB bit position in 32-bit int for n_point_bits |
92 #define LSH_POINT_BITS_FIELD_MAX 31 // maximum value possible given LSH_POINT_BITS_FIELD_POSITION | 94 #define LSH_POINT_BITS_FIELD_MAX 31 // maximum value possible given LSH_POINT_BITS_FIELD_POSITION |
95 #else | |
96 #define LSH_POINT_BITS_FIELD_POSITION 28 // LSB bit position in 32-bit int for n_point_bits | |
97 #define LSH_POINT_BITS_FIELD_MAX 15 // maximum value possible given LSH_POINT_BITS_FIELD_POSITION | |
98 #endif | |
99 | |
100 | |
93 | 101 |
94 | 102 |
95 // LIMIT PARAMETERS | 103 // LIMIT PARAMETERS |
96 #define O2_DEFAULT_DATASIZE (1355U) // in MB | 104 #define O2_DEFAULT_DATASIZE (1355U) // in MB |
97 #define O2_DEFAULT_NTRACKS (20000U) | 105 #define O2_DEFAULT_NTRACKS (20000U) |