Sfoglia il codice sorgente

re-enable SSE2 code on x64 except with gcc

Sean Barrett 9 anni fa
parent
commit
7a694bdcca
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 #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
 #include <emmintrin.h>