summaryrefslogtreecommitdiff
path: root/modules/squish
diff options
context:
space:
mode:
authorFerenc Arn <tagcup@yahoo.com>2017-04-28 12:47:35 -0500
committerFerenc Arn <tagcup@yahoo.com>2017-04-28 12:47:35 -0500
commitb6259661cebd0e03fe4849425fbbdc7be03dcaf5 (patch)
treea5461c0f9a2943e002d08d49861bd7b6f919f749 /modules/squish
parentb6e0eaf3ca74d9777c6869d8519db6264866d1e6 (diff)
Detect SSE/SSE2 for libsquish.
Diffstat (limited to 'modules/squish')
-rw-r--r--modules/squish/image_compress_squish.cpp6
1 files changed, 6 insertions, 0 deletions
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 <squish.h>
void image_compress_squish(Image *p_image) {