mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-13 19:57:11 +01:00
Added work around for old volk versions
This commit is contained in:
parent
78c7ef0242
commit
ed29f9dcc5
@ -30,7 +30,11 @@ namespace dsp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if constexpr (std::is_same_v<T, complex_t> || std::is_same_v<T, stereo_t>) {
|
if constexpr (std::is_same_v<T, complex_t> || std::is_same_v<T, stereo_t>) {
|
||||||
|
#ifdef USE_OLD_VOLK_ADD
|
||||||
|
volk_32f_x2_add_32f((float*)out.writeBuf, (float*)_a->readBuf, (float*)_b->readBuf, a_count * 2);
|
||||||
|
#else
|
||||||
volk_32fc_x2_add_32fc((lv_32fc_t*)out.writeBuf, (lv_32fc_t*)_a->readBuf, (lv_32fc_t*)_b->readBuf, a_count);
|
volk_32fc_x2_add_32fc((lv_32fc_t*)out.writeBuf, (lv_32fc_t*)_a->readBuf, (lv_32fc_t*)_b->readBuf, a_count);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
volk_32f_x2_add_32f(out.writeBuf, _a->readBuf, _b->readBuf, a_count);
|
volk_32f_x2_add_32f(out.writeBuf, _a->readBuf, _b->readBuf, a_count);
|
||||||
|
@ -15,7 +15,7 @@ cd SDRPlusPlus
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make -j2
|
make CXX_FLAGS=-DUSE_OLD_VOLK_ADD=1 -j2
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
sh make_debian_package.sh ./build
|
sh make_debian_package.sh ./build
|
Loading…
Reference in New Issue
Block a user