aboutsummaryrefslogtreecommitdiffstats
path: root/src/QpskSymbolMapper.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-27 16:29:38 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-27 16:29:38 +0200
commit4fe6a33685ce9cc0be44319fca5ce30e05bfb090 (patch)
treec11d2171eeb0a11fdeec87770baa47fbeb6452b5 /src/QpskSymbolMapper.cpp
parentc3f5387d9d8d3fd36e8bcf562c1ad4cc99e38a91 (diff)
downloaddabmod-4fe6a33685ce9cc0be44319fca5ce30e05bfb090.tar.gz
dabmod-4fe6a33685ce9cc0be44319fca5ce30e05bfb090.tar.bz2
dabmod-4fe6a33685ce9cc0be44319fca5ce30e05bfb090.zip
Replace some unsigned types
Diffstat (limited to 'src/QpskSymbolMapper.cpp')
-rw-r--r--src/QpskSymbolMapper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/QpskSymbolMapper.cpp b/src/QpskSymbolMapper.cpp
index 05d847c..b82cc61 100644
--- a/src/QpskSymbolMapper.cpp
+++ b/src/QpskSymbolMapper.cpp
@@ -58,7 +58,7 @@ int QpskSymbolMapper::process(Buffer* const dataIn, Buffer* dataOut)
dataOut->setLength(dataIn->getLength() * 4 * 2 * sizeof(float)); // 4 output complex symbols per input byte
#ifdef __SSE__
- const unsigned char* in = reinterpret_cast<const unsigned char*>(dataIn->getData());
+ const uint8_t* in = reinterpret_cast<const uint8_t*>(dataIn->getData());
__m128* out = reinterpret_cast<__m128*>(dataOut->getData());
if (dataIn->getLength() % (d_carriers / 4) != 0) {
@@ -88,7 +88,7 @@ int QpskSymbolMapper::process(Buffer* const dataIn, Buffer* dataOut)
};
size_t inOffset = 0;
size_t outOffset = 0;
- unsigned char tmp = 0;
+ uint8_t tmp = 0;
for (size_t i = 0; i < dataIn->getLength(); i += d_carriers / 4) {
for (size_t j = 0; j < d_carriers / 8; ++j) {
tmp = (in[inOffset] & 0xc0) >> 4;
@@ -109,7 +109,7 @@ int QpskSymbolMapper::process(Buffer* const dataIn, Buffer* dataOut)
inOffset += d_carriers / 8;
}
#else // !__SSE__
- const unsigned char* in = reinterpret_cast<const unsigned char*>(dataIn->getData());
+ const uint8_t* in = reinterpret_cast<const uint8_t*>(dataIn->getData());
float* out = reinterpret_cast<float*>(dataOut->getData());
if (dataIn->getLength() % (d_carriers / 4) != 0) {
throw std::runtime_error(
@@ -140,7 +140,7 @@ int QpskSymbolMapper::process(Buffer* const dataIn, Buffer* dataOut)
};
size_t inOffset = 0;
size_t outOffset = 0;
- unsigned char tmp;
+ uint8_t tmp;
for (size_t i = 0; i < dataIn->getLength(); i += d_carriers / 4) {
for (size_t j = 0; j < d_carriers / 8; ++j) {
tmp = (in[inOffset] & 0xc0) >> 4;