comparison audioDB-internals.h @ 526:cbd5841e6b70 multiprobeLSH

Set ADB_FIXME_DEFAULT_LSH_N_POINT_BITS to 15 so we can get about 20k vectors per file in the LSH point encoding. This pain and suffering will go away soon, I promise.
author mas01mc
date Wed, 28 Jan 2009 17:54:18 +0000
parents cc2b97d020b1
children 561339c7fd26
comparison
equal deleted inserted replaced
525:11dd6eab15c8 526:cbd5841e6b70
280 280
281 static inline uint32_t audiodb_index_from_trackinfo(uint32_t track_id, uint32_t track_pos, uint32_t n_point_bits) { 281 static inline uint32_t audiodb_index_from_trackinfo(uint32_t track_id, uint32_t track_pos, uint32_t n_point_bits) {
282 return ((track_id << n_point_bits) | track_pos); 282 return ((track_id << n_point_bits) | track_pos);
283 } 283 }
284 284
285 #define ADB_FIXME_DEFAULT_LSH_N_POINT_BITS 14 285 #define ADB_FIXME_DEFAULT_LSH_N_POINT_BITS 15
286 #ifndef ADB_FIXME_LSH_N_POINT_BITS 286 #ifndef ADB_FIXME_LSH_N_POINT_BITS
287 #define ADB_FIXME_LSH_N_POINT_BITS ADB_FIXME_DEFAULT_LSH_N_POINT_BITS 287 #define ADB_FIXME_LSH_N_POINT_BITS ADB_FIXME_DEFAULT_LSH_N_POINT_BITS
288 #endif 288 #endif
289 289
290 static inline uint32_t audiodb_lsh_n_point_bits(adb_t *adb) { 290 static inline uint32_t audiodb_lsh_n_point_bits(adb_t *adb) {