Mercurial > hg > audiodb
comparison audioDB-internals.h @ 425:d65410f4bb85 api-inversion
Begin pushing information through.
Create and initialize an adb_query_refine_t struct in audioDB::query,
and pass it through to various callees, which can then use it instead of
the automagic class member variables.
This allows conversion of some routines into ordinary static C
functions. Begin doing so.
author | mas01cr |
---|---|
date | Wed, 24 Dec 2008 10:55:16 +0000 |
parents | 6e6f4c1cc14d |
children | 4a22a0bdf9a9 |
comparison
equal
deleted
inserted
replaced
424:c6046dd80570 | 425:d65410f4bb85 |
---|---|
100 return 0; | 100 return 0; |
101 | 101 |
102 error: | 102 error: |
103 return 1; | 103 return 1; |
104 } | 104 } |
105 | |
106 static inline double audiodb_dot_product(double *p, double *q, size_t count) { | |
107 double result = 0; | |
108 while(count--) { | |
109 result += *p++ * *q++; | |
110 } | |
111 return result; | |
112 } |