fixed merging

This commit is contained in:
ALEXks
2025-06-11 11:31:48 +03:00
parent 1895a4b02a
commit 8ad19cbfa5
5 changed files with 17 additions and 17 deletions

View File

@@ -101,3 +101,16 @@ std::set<std::string> fillDistributedArrays(const DataDirective& dataDirectives,
void copyStringToShort(short*& result, const std::string& resVal, bool withEnd = true);
void dumpMessages(bool inCatch, const std::map<std::string, std::vector<Messages>>& messages, const char* vis_path);
template<typename T>
inline T gcd(T a, T b)
{
while (a != b)
{
if (a > b)
a = a - b;
else
b = b - a;
}
return a;
}