浏览代码

re-enable SSE2 code on x64 except with gcc

Sean Barrett 9 年之前
父节点
当前提交
7a694bdcca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      stb_image.h

+ 1 - 1
stb_image.h

@@ -673,7 +673,7 @@ typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1];
 #define STBI_NO_SIMD
 #define STBI_NO_SIMD
 #endif
 #endif
 
 
-#if !defined(STBI_NO_SIMD) && defined(STBI__X86_TARGET)
+#if !defined(STBI_NO_SIMD) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET))
 #define STBI_SSE2
 #define STBI_SSE2
 #include <emmintrin.h>
 #include <emmintrin.h>