Brent Stapleton
967be2a4e8
uhd: mpm: apply clang-format to all files
...
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.
2019-01-16 11:40:23 -08:00
Martin Braun
7fa1f6ed07
uhd: Moved get_system_time outside of public API
...
uhd::get_system_time() is an abstracted way of reading back a time, and
is not UHD-specific. As such, there's no reason to keep it in the public
part of the API where we're contractually obligated not to touch it.
Instead, moving it to the internal API space.
2018-03-05 13:53:45 -08:00
Martin Braun
ae5211d71d
uhd: Update license headers
...
All copyright is now attributed to "Ettus Research, a National
Instruments company".
SPDX headers were also updated to latest version 3.0.
2018-02-19 16:54:52 -08:00
Martin Braun
4f948e2c8b
Move all license headers to SPDX format.
2017-12-22 10:45:51 -08:00
Andrej Rode
26cc20847c
uhd: replace BOOST_FOREACH with C++11 range-based for loop
...
Note: This is the first commit that uses for-range, and range-based
for-loops are now usable for UHD development.
2017-02-10 16:44:33 -08:00
Martin Braun
99c2730bc9
Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width 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).
2016-11-08 08:02:22 -08:00
Michael Dickens
a7049e4ff7
uhd: Fixed multiple compiler warnings
...
- Use ULL and LL etc. so compiler doesn't need to decide constant's types
- define the empty 'while' loop to include {} to make older compilers happy
- Use explicit type names for BOOST_CHECK_EQUAL
2015-03-11 15:33:17 -07:00
Ben Hilburn
9e47ad607b
Squashed merge of Coverity fixes.
2013-11-27 12:11:23 -08:00
Josh Blum
0f0ad387e8
uhd: added missing include iomanip
2013-04-24 14:19:02 -07:00
Josh Blum
cb3f554658
uhd: fixes for time_spec's to_ticks and from_ticks calls
...
The fixes address rouding issues when the tick_rate is a non-integer.
Conflicts:
host/tests/time_spec_test.cpp
2013-04-12 11:20:10 -07:00
Josh Blum
5eec31fab4
dsp rework: implement 64 bit ticks, no seconds
2012-02-06 16:40:42 -08:00
Josh Blum
be1be806d2
uhd: also normalise the time spec when adding/subtracting (added unit test)
2011-08-30 17:24:40 -07:00
Josh Blum
465431b1a3
uhd: fix for dealing with negative wrapping in time_spec
2011-08-29 09:55:22 -07:00
Josh Blum
95b966a599
uhd: update copyright headers with automated script
2011-03-23 18:48:30 -07:00
Josh Blum
7ffc73fe67
uhd: implemented high-res get time in time_spec_t
...
clock_gettime for linux,
mach_absolute_time for macos,
QueryPerformanceFrequency for windows,
and fallback to boost microsec_clock
2011-01-30 19:08:30 -08:00
Josh Blum
132e622379
uhd: renamed test directory to tests to be consitent
2011-01-14 10:50:07 -08:00