From b6259661cebd0e03fe4849425fbbdc7be03dcaf5 Mon Sep 17 00:00:00 2001 From: Ferenc Arn Date: Fri, 28 Apr 2017 12:47:35 -0500 Subject: Detect SSE/SSE2 for libsquish. --- modules/squish/image_compress_squish.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/squish') diff --git a/modules/squish/image_compress_squish.cpp b/modules/squish/image_compress_squish.cpp index c6835d4b62..3f7ad8b2c2 100644 --- a/modules/squish/image_compress_squish.cpp +++ b/modules/squish/image_compress_squish.cpp @@ -31,6 +31,12 @@ #include "print_string.h" +#if defined(__SSE2__) +#define SQUISH_USE_SSE 2 +#elif defined(__SSE__) +#define SQUISH_USE_SSE 1 +#endif + #include void image_compress_squish(Image *p_image) { -- cgit v1.2.3