diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-05-02 11:29:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-02 11:29:16 +0200 |
commit | 9a40b92b8a920b4721625dc55956e593931ff993 (patch) | |
tree | a3d1210d7330baa391d3b9d04b1a11d955edb379 /modules | |
parent | a37364620f481e886f695ea63ef858659246cff1 (diff) | |
parent | b6259661cebd0e03fe4849425fbbdc7be03dcaf5 (diff) |
Merge pull request #8571 from tagcup/squish_sse
Detect SSE/SSE2 for libsquish.
Diffstat (limited to 'modules')
-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) { |