Skip to content

Commit

Permalink
Add __SSE4_2__ for MSCC
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Jul 6, 2024
1 parent 0eb1384 commit 0b4b3b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libImaging/ImagingSIMD.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
This macro is set only on x86 and means SSE2 and above including AVX2. */
#if defined(_M_X64) || _M_IX86_FP == 2
#define __SSE2__
/* However, Microsoft compiler set __AVX2__ if /arch:AVX2 option is set */
#ifdef __AVX2__
#ifdef __SSE4_2__
#endif
#endif

/* For better readability */
#ifdef __SSE4_2__
#define __SSE4__
#endif
Expand Down

0 comments on commit 0b4b3b0

Please sign in to comment.