浏览代码

Detect SSE/SSE2 for libsquish.

Ferenc Arn 8 年之前
父节点
当前提交
b6259661ce
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      modules/squish/image_compress_squish.cpp

+ 6 - 0
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) {