Skip to content

Commit

Permalink
Merge pull request #13 from akien-mga/fix-msvc-sse2-detection
Browse files Browse the repository at this point in the history
Fix detection of SSE2 with Visual Studio
  • Loading branch information
richgel999 committed May 7, 2020
2 parents 1eb17d5 + ae74fa2 commit ec81d71
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions jpgd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,14 @@

#ifndef JPGD_USE_SSE2

#if defined(__GNUC__)

#if (defined(__x86_64__) || defined(_M_X64))
#if defined(__SSE2__)
#define JPGD_USE_SSE2 (1)
#endif
#if defined(__GNUC__)
#if defined(__SSE2__)
#define JPGD_USE_SSE2 (1)
#endif
#elif defined(_MSC_VER)
#if defined(_M_X64)
#define JPGD_USE_SSE2 (1)
#endif

#else
#define JPGD_USE_SSE2 (1)
#endif

#endif
Expand Down

0 comments on commit ec81d71

Please sign in to comment.