Commit graph

16 commits

Author SHA1 Message Date
Martin Braun
876d4150aa uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
2020-03-03 08:51:32 -06:00
Martin Braun
b459e02eed endianness: Replace Boost macros with custom ones
Boost changed the macros for endianness identification in 1.69, and the
deprecation warning is a pretty noisy one during compilation. This
abstracts away the Boost macro, so we have two UHD macros,
UHD_BIG_ENDIAN and UHD_LITTLE_ENDIAN. They indicate big and little
endian byte order.
2019-01-21 14:00:34 -08:00
Brent Stapleton
764c5cd808 lib: transport: convert: apply clang-format
This is a continuation of 967be2a4. Applying clang-format to files
needed for endianness changes.

$ clang-format -i --style=file \
    host/include/uhd/types/endianness.hpp \
    host/include/uhd/utils/byteswap.hpp \
    host/include/uhd/utils/byteswap.ipp
$ clang-format -i --style=file \
    host/lib/convert/convert_with_tables.cpp \
    host/lib/transport/chdr.cpp
2019-01-21 14:00:34 -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
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
Josh Blum
9f993843e5 convert: sc8 swap for vita compliance 2013-08-28 17:07:07 -07:00
Josh Blum
a58ee6e29a uhd: fix sc16 to sc8 conversion table
1) this was registered as the sc8 to sc16 converter,
probably messed that up as well

2) the cast to index was wrong, now unit test passes
2012-02-29 09:52:46 -08:00
Josh Blum
893af3dc28 uhd: added sc8 conversion tests 2012-02-07 11:59:42 -08:00
Josh Blum
d46c176af3 dsp rework: tx trailer, scaling work (peak) 2012-01-31 14:56:31 -08:00
Josh Blum
72359ea158 uhd: implement convert_sc8to_sc16 table w/ scalar 2012-01-31 14:56:31 -08:00
Josh Blum
986f6f8d0b convert: msvc warning fixes for sc8 table gen 2011-11-13 17:22:49 -08:00
Josh Blum
7a1bd6135a uhd: fixed sc8 table conversion, and simplified shifts 2011-11-13 17:11:15 -08:00
Josh Blum
ff49029e39 convert: added table conversion routines for sc8 2011-11-12 17:13:13 -08:00
Josh Blum
4c5db96c36 convert: simplify table conversion with templates 2011-11-12 16:52:03 -08:00
Josh Blum
f31afff6dd convert: added table conversion routine for sc16 to floats 2011-11-12 16:33:26 -08:00