summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib
diff options
context:
space:
mode:
authortrondeau2006-12-17 01:40:33 +0000
committertrondeau2006-12-17 01:40:33 +0000
commit45221bd3e8ad6be56cb0ba471aa6a1d06e9efc0b (patch)
treeb96cbd89cd521e0af0fdf69e1bdeb441b36096d5 /gnuradio-core/src/lib
parent367b9c4766edf249352e525411ad7da73ef62c05 (diff)
downloadgnuradio-45221bd3e8ad6be56cb0ba471aa6a1d06e9efc0b.tar.gz
gnuradio-45221bd3e8ad6be56cb0ba471aa6a1d06e9efc0b.tar.bz2
gnuradio-45221bd3e8ad6be56cb0ba471aa6a1d06e9efc0b.zip
changed complex_to_arg to use fast atan and updated QA
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4109 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r--gnuradio-core/src/lib/general/gr_complex_to_xxx.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc b/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc
index 2bfc24166..2bd4acac7 100644
--- a/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc
+++ b/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc
@@ -26,6 +26,7 @@
#include <gr_complex_to_xxx.h>
#include <gr_io_signature.h>
+#include <gr_math.h>
// ----------------------------------------------------------------
@@ -226,7 +227,8 @@ gr_complex_to_arg::work (int noutput_items,
int noi = noutput_items * d_vlen;
for (int i = 0; i < noi; i++){
- out[i] = std::arg (in[i]);
+ // out[i] = std::arg (in[i]);
+ out[i] = gr_fast_atan2f(in[i]);
}
return noutput_items;
}