Mercurial > hg > audiodb
changeset 478:3171089ecfd7 memory-leaks
removed defunct EXACT_MULT from query_loop_points()
author | mas01mc |
---|---|
date | Sat, 10 Jan 2009 13:12:52 +0000 |
parents | e7c7caa25e6d |
children | 0af0c31dfa14 |
files | audioDB.h query.cpp |
diffstat | 2 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/audioDB.h Sat Jan 10 11:28:51 2009 +0000 +++ b/audioDB.h Sat Jan 10 13:12:52 2009 +0000 @@ -69,8 +69,6 @@ // Because we work in Radius^2 units, // The sqrt of this number is the multiplier on the radius -#define O2_LSH_EXACT_MULT 1 - #define O2_OLD_MAGIC ('O'|'2'<<8|'D'<<16|'B'<<24) #define O2_MAGIC ('o'|'2'<<8|'d'<<16|'b'<<24) #define O2_FORMAT_VERSION (4U)
--- a/query.cpp Sat Jan 10 11:28:51 2009 +0000 +++ b/query.cpp Sat Jan 10 13:12:52 2009 +0000 @@ -589,7 +589,7 @@ dist = qn*qn + sn*sn - 2*dist; // else // dist = dist; - if((!radius) || dist <= (O2_LSH_EXACT_MULT*radius+O2_DISTANCE_TOLERANCE)) + if((!radius) || dist <= (radius+O2_DISTANCE_TOLERANCE)) reporter->add_point(pp.trackID, pp.qpos, pp.spos, dist); } exact_evaluation_queue->pop();