summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/packed_to_unpacked_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* modules: include boost/format where usedMarcus Müller2021-09-071-0/+1
| | | | | | | | | | | | | | | | | | | in the classic modules: audio blocks digital dtv fec fft filter qtgui trellis/fsm uhd video-sdl vocoder/freedv_rx Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* digital: packed<->unpacked: check chunk sizes, incl. NDBEBUG buildsMarcus Müller2021-02-181-9/+9
| | | | | | | | Also, get rid of impossible asserts(), and throw exceptions instead of assert(0)-aborting, as we now have facilities to handle failed block::work(). Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* clang-tidy: run full .clang-tidy on C++17 codebaseMarcus Müller2021-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | run /usr/share/clang/run-clang-tidy.py -checks=file '-header-filter=.*' -fix .. from build directory. Then, clang-format -i $(git diff --name-only origin/master) to clang-format changed files. Then, refresh all header hashes in pybind bindings (*/python/bindings/*.cc) Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* blocks: fix typo, artifact of log2_l_type renamingmormj2020-08-241-1/+1
|
* blocks: remove log2_constMarcus Müller2020-08-141-3/+17
| | | | | | | | | | | | Was not standards-compliant (assert(0) in constexpr) Only used in packed_to_unpacked to get the log2(number of bits(type)) in packed_to_unpacked<type>. Was not wrapped to python nor public API. To little surprise, a static method compiles faster, and gets compile-time-calculated by a modern compiler, too.
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-301-2/+2
| | | | | | | | | | | | | | First batch of changes: ``` find […] -print0 | xargs -0 sed -i -r '/get_initial_sptr/{:nxt N;/;/!b nxt;s/get_initial_sptr\(\s*new ([^(]+)(.*)\)\)/make_block_sptr<\1>\2)/}' ``` Then: * Back out `sptr_magic.h` edits * Change some `friend` clauses * clang-format the whole thing * Update checksums in the pybind11 bindings files
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Fix all formatting issuesMartin Braun2020-01-101-1/+1
| | | | | This fixes every leftover file in the GNU Radio source tree to match our clang-format definition.
* gr-blocks/packed&unpacked: Add constThomas Habets2020-01-061-5/+5
|
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-100/+102
|
* blocks: unpacked/packed use member variable for bits_per_typeAndrej Rode2018-09-011-1/+1
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-311-1/+1
|
* blocks: replace gengen with C++ templatesAndrej Rode2018-08-251-0/+152