Mercurial > hg > aimc
diff trunk/carfac/ear.cc @ 670:443b522fb593
Remove dependency on google logging library in favor of simple asserts.
author | ronw@google.com |
---|---|
date | Thu, 23 May 2013 16:56:38 +0000 |
parents | 933cf18d9a59 |
children | 7f424c1a8b78 |
line wrap: on
line diff
--- a/trunk/carfac/ear.cc Thu May 23 04:28:43 2013 +0000 +++ b/trunk/carfac/ear.cc Thu May 23 16:56:38 2013 +0000 @@ -20,6 +20,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <assert.h> + #include "ear.h" // The 'InitEar' function takes a set of model parameters and initializes the @@ -275,9 +277,8 @@ (fir_coeffs[2] * (ss_tap2 + ss_tap4)); break; default: + assert(true && "Bad n_taps in AGCSpatialSmooth; should be 3 or 5."); break; - CHECK_EQ(5, n_taps) << - "Bad n_taps in AGCSpatialSmooth; should be 3 or 5."; } } else { stage_state = AGCSmoothDoubleExponential(stage_state, @@ -318,4 +319,4 @@ return (1 - 2 * r * car_coeffs_.a0_coeffs_ + (r * r)) / (1 - 2 * r * car_coeffs_.a0_coeffs_ + car_coeffs_.h_coeffs_ * r * car_coeffs_.c0_coeffs_ + (r * r)); -} \ No newline at end of file +}