1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

FT8 demod: removed string.h dependency

This commit is contained in:
f4exb 2023-01-11 17:08:57 +01:00
parent ea49a8813b
commit aaab8b5351
3 changed files with 5 additions and 8 deletions

View File

@ -36,7 +36,6 @@
#include <vector>
#include <algorithm>
#include <complex>
#include <string.h>
#include <random>
#include <functional>
#include <map>
@ -3046,7 +3045,7 @@ int FT8::one_iter1(
if (ret)
return ret;
if (params.soft_ones == 0)
memcpy(ll174, p174, sizeof(ll174));
std::copy(p174, p174 + 174, ll174);
}
if (params.soft_triples)

View File

@ -27,7 +27,6 @@
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include "libldpc.h"
#include "osd.h"
@ -262,14 +261,14 @@ int osd_decode(float codeword[174], int depth, int out[91], int *out_depth)
if (1)
{
// just accept this, since no bits had to be flipped.
memcpy(out, xplain, sizeof(xplain));
std::copy(xplain, xplain + 91, out);
*out_depth = 0;
return 1;
}
else
{
got_a_best = 1;
memcpy(best_plain, xplain, sizeof(best_plain));
std::copy(xplain, xplain + 91, best_plain);
best_score = xscore;
best_depth = 0;
}
@ -290,7 +289,7 @@ int osd_decode(float codeword[174], int depth, int out[91], int *out_depth)
if (got_a_best == 0 || xscore < best_score)
{
got_a_best = 1;
memcpy(best_plain, xplain, sizeof(best_plain));
std::copy(xplain, xplain + 91, best_plain);
best_score = xscore;
best_depth = ii;
}
@ -299,7 +298,7 @@ int osd_decode(float codeword[174], int depth, int out[91], int *out_depth)
if (got_a_best)
{
memcpy(out, best_plain, sizeof(best_plain));
std::copy(best_plain, best_plain + 91, out);
*out_depth = best_depth;
return 1;
}

View File

@ -19,7 +19,6 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#include <string>
#include <string.h>
#include <assert.h>
#include "unpack.h"