ref: ab4281b3a6bd6edb7f4d071a88aa7ec67b7ab5e4
parent: c23eb221ef37728e99b6f4640c94095c3bc99b6e
author: lieff <[email protected]>
date: Fri Jan 12 09:45:28 EST 2018
check __SSE2__ for gcc/clang sse intrinsics
--- a/minimp3.h
+++ b/minimp3.h
@@ -82,7 +82,7 @@
#define MINIMP3_MIN(a, b) ((a) > (b) ? (b) : (a))
#define MINIMP3_MAX(a, b) ((a) < (b) ? (b) : (a))
-#if defined(_MSC_VER) || defined(__i386__) || defined(__x86_64__)
+#if defined(_MSC_VER) || ((defined(__i386__) || defined(__x86_64__)) && defined(__SSE2__))
# include <immintrin.h>
# define HAVE_SSE 1
# define HAVE_SIMD 1