diff options
author | Tom Rondeau | 2012-06-10 12:43:06 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-06-10 12:43:06 -0400 |
commit | ec30d89449f48fdd2f88420b4c87aba2e1a5abd1 (patch) | |
tree | 682335f5adb3a2e2818a59fcc3f2a64b06c7d247 /docs/doxygen/other/volk_guide.dox | |
parent | fc22309289b88dfd7dd0b63aa1cd9557de3accb6 (diff) | |
download | gnuradio-ec30d89449f48fdd2f88420b4c87aba2e1a5abd1.tar.gz gnuradio-ec30d89449f48fdd2f88420b4c87aba2e1a5abd1.tar.bz2 gnuradio-ec30d89449f48fdd2f88420b4c87aba2e1a5abd1.zip |
volk: make sure the alignment call for a block passes at least 1.
For machines with an alignment of 1, the blocks were truncating the aligment to 0. This makes sure that it gets set to a minimum of 1.
Diffstat (limited to 'docs/doxygen/other/volk_guide.dox')
-rw-r--r-- | docs/doxygen/other/volk_guide.dox | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/doxygen/other/volk_guide.dox b/docs/doxygen/other/volk_guide.dox index 24882ed1a..0e444ebba 100644 --- a/docs/doxygen/other/volk_guide.dox +++ b/docs/doxygen/other/volk_guide.dox @@ -63,7 +63,7 @@ calls with: \code const int alignment_multiple = volk_get_alignment() / output_item_size; - set_alignment(alignment_multiple); + set_alignment(std::max(1,alignment_multiple)); \endcode The Volk function 'volk_get_alignment' provides the alignment of the |