diff options
author | Ferenc Arn <tagcup@yahoo.com> | 2017-04-28 12:47:35 -0500 |
---|---|---|
committer | Ferenc Arn <tagcup@yahoo.com> | 2017-04-28 12:47:35 -0500 |
commit | b6259661cebd0e03fe4849425fbbdc7be03dcaf5 (patch) | |
tree | a5461c0f9a2943e002d08d49861bd7b6f919f749 | |
parent | b6e0eaf3ca74d9777c6869d8519db6264866d1e6 (diff) |
Detect SSE/SSE2 for libsquish.
-rw-r--r-- | modules/squish/image_compress_squish.cpp | 6 |
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) { |