]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
enable INFFAST_CHUNKSIZE on x86
authorSebastian Pop <s.pop@samsung.com>
Fri, 1 Mar 2019 15:48:58 +0000 (09:48 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 21 Mar 2019 10:22:36 +0000 (11:22 +0100)
memcopy.h

index b14e3ec795833c54824b9620370a59c16458e65e..b294711e6839edfb56d2674901c522fe0aee82f6 100644 (file)
--- a/memcopy.h
+++ b/memcopy.h
@@ -22,6 +22,12 @@ typedef uint8x16_t inffast_chunk_t;
   #define INFFAST_CHUNKSIZE sizeof(inffast_chunk_t)
  #endif
 
+ #if defined(X86_SSE2)
+  #include <immintrin.h>
+typedef __m128i inffast_chunk_t;
+  #define INFFAST_CHUNKSIZE sizeof(inffast_chunk_t)
+ #endif
+
  #ifdef INFFAST_CHUNKSIZE
 /*
    Ask the compiler to perform a wide, unaligned load with an machine