MCPcopy Create free account
hub / github.com/Niko1221/Strata / compiler_name

Function compiler_name

engine/tests/quant/quant_parity.cpp:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95std::string compiler_name() {
96#if defined(__clang__)
97 return std::string("clang ") + __clang_version__;
98#elif defined(__GNUC__)
99 return std::string("GCC ") + __VERSION__;
100#elif defined(_MSC_FULL_VER)
101 return "MSVC " + std::to_string(_MSC_FULL_VER);
102#else
103 return "unknown compiler";
104#endif
105}
106
107// Toolchain families of the golden file. "gcc" lines are made by GCC 13.x on x86 and hold for every toolchain; "msvc" lines, made by MSVC 19.4x, stand
108// beside them only for the groups where MSVC's arithmetic differs (MSVC does not contract the intrinsics' add-of-mul into FMA where GCC does).

Callers 1

mainFunction · 0.85

Calls 2

stringFunction · 0.50
to_stringFunction · 0.50

Tested by

no test coverage detected