[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r4084 - gnuradio/trunk/gnuradio-core/src/lib/general
From: |
n4hy |
Subject: |
[Commit-gnuradio] r4084 - gnuradio/trunk/gnuradio-core/src/lib/general |
Date: |
Thu, 14 Dec 2006 11:03:00 -0700 (MST) |
Author: n4hy
Date: 2006-12-14 11:03:00 -0700 (Thu, 14 Dec 2006)
New Revision: 4084
Modified:
gnuradio/trunk/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc
gnuradio/trunk/gnuradio-core/src/lib/general/gr_pll_refout_cc.cc
Log:
These routines have been modified to use fast atan2
Modified: gnuradio/trunk/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc
2006-12-14 16:28:36 UTC (rev 4083)
+++ gnuradio/trunk/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc
2006-12-14 18:03:00 UTC (rev 4084)
@@ -29,6 +29,7 @@
#include <gr_pll_freqdet_cf.h>
#include <gr_io_signature.h>
#include <math.h>
+#include <gr_math.h>
#define M_TWOPI (2*M_PI)
@@ -63,7 +64,7 @@
gr_pll_freqdet_cf::phase_detector(gr_complex sample,float ref_phase)
{
float sample_phase;
- sample_phase = atan2(sample.imag(),sample.real());
+ sample_phase = gr_fast_atan2f(sample.imag(),sample.real());
return mod_2pi(sample_phase-ref_phase);
}
Modified: gnuradio/trunk/gnuradio-core/src/lib/general/gr_pll_refout_cc.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/general/gr_pll_refout_cc.cc
2006-12-14 16:28:36 UTC (rev 4083)
+++ gnuradio/trunk/gnuradio-core/src/lib/general/gr_pll_refout_cc.cc
2006-12-14 18:03:00 UTC (rev 4084)
@@ -30,6 +30,7 @@
#include <gr_io_signature.h>
#include <gr_sincos.h>
#include <math.h>
+#include <gr_math.h>
#define M_TWOPI (2*M_PI)
@@ -64,7 +65,7 @@
gr_pll_refout_cc::phase_detector(gr_complex sample,float ref_phase)
{
float sample_phase;
- sample_phase = atan2(sample.imag(),sample.real());
+ sample_phase = gr_fast_atan2f(sample.imag(),sample.real());
return mod_2pi(sample_phase-ref_phase);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r4084 - gnuradio/trunk/gnuradio-core/src/lib/general,
n4hy <=