From ae225e8c3bac331eb9ebf762b5eeb39874fa779f Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 5 Nov 2015 22:26:36 -0800 Subject: [PATCH] Further MatchedFilter optimization using algebraic identities and stuff. Can't stop premature optimization!!! --- firmware/baseband/matched_filter.cpp | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/firmware/baseband/matched_filter.cpp b/firmware/baseband/matched_filter.cpp index bd378c02..5040349a 100644 --- a/firmware/baseband/matched_filter.cpp +++ b/firmware/baseband/matched_filter.cpp @@ -31,27 +31,27 @@ bool MatchedFilter::execute_once( advance_decimation_phase(); if( is_new_decimation_cycle() ) { - float r_n = 0.0f; - float i_n = 0.0f; - float r_p = 0.0f; - float i_p = 0.0f; + float sr_tr = 0.0f; + float si_tr = 0.0f; + float si_ti = 0.0f; + float sr_ti = 0.0f; for(size_t n=0; n