aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/convert/convert_with_tables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/convert/convert_with_tables.cpp')
-rw-r--r--host/lib/convert/convert_with_tables.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/host/lib/convert/convert_with_tables.cpp b/host/lib/convert/convert_with_tables.cpp
index 86637171a..3df510092 100644
--- a/host/lib/convert/convert_with_tables.cpp
+++ b/host/lib/convert/convert_with_tables.cpp
@@ -26,7 +26,7 @@ class convert_sc16_1_to_sc8_item32_1 : public converter
public:
convert_sc16_1_to_sc8_item32_1(void) : _table(sc16_table_len) {}
- void set_scalar(const double scalar)
+ void set_scalar(const double scalar) override
{
for (size_t i = 0; i < sc16_table_len; i++) {
const int16_t val = uint16_t(i);
@@ -34,8 +34,9 @@ public:
}
}
- void operator()(
- const input_type& inputs, const output_type& outputs, const size_t nsamps)
+ void operator()(const input_type& inputs,
+ const output_type& outputs,
+ const size_t nsamps) override
{
const sc16_t* input = reinterpret_cast<const sc16_t*>(inputs[0]);
item32_t* output = reinterpret_cast<item32_t*>(outputs[0]);
@@ -79,7 +80,7 @@ class convert_sc16_item32_1_to_fcxx_1 : public converter
public:
convert_sc16_item32_1_to_fcxx_1(void) : _table(sc16_table_len) {}
- void set_scalar(const double scalar)
+ void set_scalar(const double scalar) override
{
for (size_t i = 0; i < sc16_table_len; i++) {
const uint16_t val = tohost(uint16_t(i & 0xffff));
@@ -87,8 +88,9 @@ public:
}
}
- void operator()(
- const input_type& inputs, const output_type& outputs, const size_t nsamps)
+ void operator()(const input_type& inputs,
+ const output_type& outputs,
+ const size_t nsamps) override
{
const item32_t* input = reinterpret_cast<const item32_t*>(inputs[0]);
std::complex<type>* output = reinterpret_cast<std::complex<type>*>(outputs[0]);
@@ -123,7 +125,7 @@ public:
return type(num * scalar);
}
- void set_scalar(const double scalar)
+ void set_scalar(const double scalar) override
{
for (size_t i = 0; i < sc16_table_len; i++) {
const uint16_t val = tohost(uint16_t(i & 0xffff));
@@ -133,8 +135,9 @@ public:
}
}
- void operator()(
- const input_type& inputs, const output_type& outputs, const size_t nsamps)
+ void operator()(const input_type& inputs,
+ const output_type& outputs,
+ const size_t nsamps) override
{
const item32_t* input =
reinterpret_cast<const item32_t*>(size_t(inputs[0]) & ~0x3);