| 93 | } |
| 94 | |
| 95 | std::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). |