aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/convert_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* uhd: mpm: apply clang-format to all filesBrent Stapleton2019-01-161-274/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applying formatting changes to all .cpp and .hpp files in the following directories: ``` find host/examples/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/tests/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/utils/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find mpm/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Also formatted host/include/, except Cpp03 was used as a the language standard instead of Cpp11. ``` sed -i 's/ Cpp11/ Cpp03/g' .clang-format find host/include/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Formatting style was designated by the .clang-format file.
* lib: Purge use of boost::assign, except for uhd::dictMartin Braun2018-05-021-6/+7
| | | | | | | Replaced with initialization lists. Note: uhd::dict does not work with initializer lists without making changes to said data structure. This commit has no functional changes, so keeping the boost::assigns for uhd::dict.
* uhd: Update license headersMartin Braun2018-02-191-1/+2
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* convert: Add sc12-sc16 convertersTom Tsou2017-07-181-3/+28
| | | | | | | | | | | | | | | | | Create missing sc12-sc16 and sc16-sc12 type converters. To avoid replicating the full sc12 converter class object, overload the converter calls with C++11 std::enable_if metafunctions. When used with std::is_floating and std::is_integral templates, this allow a single template interface with compile time function selection and static type checking. Note the below std::enable_if interface is confusing, but quite effective in this case. typename enable_if<is_floating_point<type>::value>::type* = NULL Fixes: #966 Related: #967, #1721
* Merge branch 'maint'Martin Braun2017-07-171-2/+7
|\
| * converters: Added some tolerance for floating point-based tests to account ↵Martin Braun2017-07-071-2/+7
| | | | | | | | for acceptable rounding
* | uhd: replace BOOST_FOREACH with C++11 range-based for loopAndrej Rode2017-02-101-12/+11
|/ | | | | Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
* utils: tests: cast RAND_MAX to double before divisionAndrej Rode2017-01-121-2/+2
|
* tests: fix coverity reportsAndrej Rode2017-01-121-1/+1
|
* Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width ↵Martin Braun2016-11-081-13/+13
| | | | | | | | types) - Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be <cstdint>, but not all of our compilers support that).
* Fixed floating point rounding error in converter testsDerek Kozel2016-09-261-4/+4
| | | | | Integer rounding was producing out of range values and causing tests to fail
* convert: Added s8, s16 types and did some refactoringMartin Braun2015-09-011-4/+159
|
* convert: Added converters for raw stringsMartin Braun2015-07-311-0/+40
| | | | | - u8: Converts arbitrary-length strings from and to item32 - item32->item32 memcpy non-conversion
* Merging USRP X300 and X310 support!!Ben Hilburn2014-02-041-4/+64
|
* convert: added prio param to get converterJosh Blum2012-04-271-7/+21
| | | | We can now test generic conversion implementations against SIMD (for example)
* uhd: various tweaks for compiler warns and valgrindJosh Blum2012-02-091-2/+2
|
* uhd: added sse2 conversions for fc64 to sc8Josh Blum2012-02-081-1/+1
|
* uhd: better quantization check for convert testJosh Blum2012-02-081-4/+5
|
* uhd: added sc8 conversion testsJosh Blum2012-02-071-7/+67
|
* convert: made conversion functions into classes so they can keep stateJosh Blum2011-11-121-6/+18
|
* uhd: renamed convert markup to formatJosh Blum2011-11-031-22/+22
| | | | | | | | removed convert args added simd level got orc and neon updated
* convert: restored unit test functionalityJosh Blum2011-11-031-70/+78
|
* UHD: Fixed convert_test (scalars backwards), fixed Orc conversions ↵Nick Foster2011-06-141-5/+5
| | | | (endianness backwards).
* uhd: added scaling factor to conversion routinesJosh Blum2011-06-141-6/+6
|
* uhd: use ref vector class for the conversion routines I/OJosh Blum2011-02-101-6/+6
|
* uhd: added io type and conversion for complex64 (its not really useful)Josh Blum2011-02-031-9/+37
|
* uhd: renamed test directory to tests to be consitentJosh Blum2011-01-141-0/+234