Skip to content

Commit

Permalink
base: add ETC__I_KNOW_THAT_ETC_BEST_WITH_ARCH_AVX2
Browse files Browse the repository at this point in the history
Updates #148
  • Loading branch information
nigeltao committed Jul 9, 2024
1 parent b64a761 commit 495f028
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/cgen/base/fundamental-public.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions release/c/wuffs-unsupported-snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 495f028

Please sign in to comment.