base: add ETC__I_KNOW_THAT_ETC_BEST_WITH_ARCH_AVX2

Updates #148
This commit is contained in:
Nigel Tao
2024-07-09 10:34:35 +10:00
parent b64a761067
commit 495f0280a8
2 changed files with 4 additions and 0 deletions

View File

@@ -144,7 +144,9 @@
// For MSVC's cl.exe (unlike clang or gcc), SIMD capability is a compile-time
// property of the source file (e.g. a /arch:AVX2 or -mavx2 compiler flag), not
// of individual functions (that can be conditionally selected at runtime).
#if !defined(WUFFS_CONFIG__I_KNOW_THAT_WUFFS_MSVC_PERFORMS_BEST_WITH_ARCH_AVX2)
#pragma message("Wuffs with MSVC+IX86/X64 performs best with /arch:AVX2")
#endif
#endif // defined(__AVX2__) || defined(__clang__)
#endif // defined(_M_X64)

View File

@@ -200,7 +200,9 @@ extern "C" {
// For MSVC's cl.exe (unlike clang or gcc), SIMD capability is a compile-time
// property of the source file (e.g. a /arch:AVX2 or -mavx2 compiler flag), not
// of individual functions (that can be conditionally selected at runtime).
#if !defined(WUFFS_CONFIG__I_KNOW_THAT_WUFFS_MSVC_PERFORMS_BEST_WITH_ARCH_AVX2)
#pragma message("Wuffs with MSVC+IX86/X64 performs best with /arch:AVX2")
#endif
#endif // defined(__AVX2__) || defined(__clang__)
#endif // defined(_M_X64)