Fix MXVC boost multiprecision issue

pull/2039/head
f4exb 2024-03-28 22:12:27 +01:00
rodzic 2e9fc9db64
commit 8f33bad363
3 zmienionych plików z 11 dodań i 8 usunięć

Wyświetl plik

@ -934,4 +934,13 @@ bool Packing::packfree(int a77[], const std::string& msg)
return true; return true;
} }
void Packing::pack1(int a77[], int c28_1, int c28_2, int g15, int report)
{
pa64(a77, 0, 28, c28_1);
pa64(a77, 28+1, 28, c28_2);
a77[28+1+28+1] = report;
pa64(a77, 28+1+28+2, 15, g15);
pa64(a77, 28+1+28+2+15, 3, 1);
}
} // namespace FT8 } // namespace FT8

Wyświetl plik

@ -40,6 +40,7 @@ public:
static bool packcall_std(int& c28, const std::string& callstr); static bool packcall_std(int& c28, const std::string& callstr);
static bool packgrid(int& g15, const std::string& locstr); static bool packgrid(int& g15, const std::string& locstr);
static bool packfree(int a77[], const std::string& msg); static bool packfree(int a77[], const std::string& msg);
static void pack1(int a77[], int c28_1, int c28_2, int g15, int report);
private: private:
static int ihashcall(std::string call, int m); static int ihashcall(std::string call, int m);

Wyświetl plik

@ -34,7 +34,6 @@ void MainBench::testFT8(const QString& wavFile, const QString& argsStr)
#include "ft8/ft8.h" #include "ft8/ft8.h"
#include "ft8/packing.h" #include "ft8/packing.h"
#include "ft8/pack0.h"
class TestFT8Protocols class TestFT8Protocols
{ {
@ -122,13 +121,7 @@ void TestFT8Protocols::testMsg1(const QStringList& argElements, bool runLDPC)
int a77[77]; int a77[77];
std::fill(a77, a77 + 77, 0); std::fill(a77, a77 + 77, 0);
FT8::Packing::pack1(a77, c28_1, c28_2, g15, report);
FT8::pa64(a77, 0, 28, c28_1);
FT8::pa64(a77, 28+1, 28, c28_2);
a77[28+1+28+1] = report;
FT8::pa64(a77, 28+1+28+2, 15, g15);
FT8::pa64(a77, 28+1+28+2+15, 3, 1);
FT8::Packing packing; FT8::Packing packing;
std::string call1, call2, loc; std::string call1, call2, loc;