diff options
author | Tom Rondeau | 2012-02-02 17:26:39 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-02-13 14:56:34 -0500 |
commit | ae663decab658be25ac01072fa2f5c8454bd6167 (patch) | |
tree | c9bf58b3a8624764ed92f5c4bb9a8df6d54dc07b /gnuradio-core/src/python | |
parent | a3b19015cb1c896aef19a7817458878337b3f5e3 (diff) | |
download | gnuradio-ae663decab658be25ac01072fa2f5c8454bd6167.tar.gz gnuradio-ae663decab658be25ac01072fa2f5c8454bd6167.tar.bz2 gnuradio-ae663decab658be25ac01072fa2f5c8454bd6167.zip |
core: moving multiply_const_ff from gengen to general to take advantage of volk.
Also adds SSE and AVX and unaligned Volk versions for this.
Diffstat (limited to 'gnuradio-core/src/python')
-rwxr-xr-x | gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py b/gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py index c1d8dafd1..aad57e580 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py @@ -78,6 +78,12 @@ class test_add_and_friends (gr_unittest.TestCase): op = gr.multiply_const_ii (5) self.help_ii ((src_data,), expected_result, op) + def test_mult_const_ff (self): + src_data = (-1, 0, 1, 2, 3) + expected_result = (-5, 0, 5, 10, 15) + op = gr.multiply_const_cc (5) + self.help_cc ((src_data,), expected_result, op) + def test_mult_const_cc (self): src_data = (-1-1j, 0+0j, 1+1j, 2+2j, 3+3j) expected_result = (-5-5j, 0+0j, 5+5j, 10+10j, 15+15j) |