[hamradio-commits] [dump1090] 70/389: Create a preamble pointer in the message detector loop
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:19:41 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit 09af545933bd445a3cb0b559016f2ac3a49b5116
Merge: 316b456 70031e1
Author: Malcolm Robb <Support at ATTAvionics.com>
Date: Wed Apr 10 01:12:50 2013 +0100
Create a preamble pointer in the message detector loop
Create a preamble pointer in the message detector loop
Create a pointer, pPreamble, which points to the start of the preamble
in the analogue sample buffer m[]. So pPreamble = &m[p] Then use this
pointer to perform the preamble detection tests. It should save a few
cpu cycles per test because accessing pPointer[2] should be quicker than
m[p+2].
Also move the decision on whether to try OutOfPhase correction to the
end of the first pass, rather than automatically going into phase
correction if the first pass fails. This saves two memcpy's if the
decision in the second pass is to not do phase correction.
dump1090.c | 76 +++++++++++++++++++++++++++++---------------------------------
1 file changed, 35 insertions(+), 41 deletions(-)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list