From: Sebastian Pop Date: Fri, 1 Mar 2019 15:48:58 +0000 (-0600) Subject: enable INFFAST_CHUNKSIZE on x86 X-Git-Tag: 1.9.9-b1~508 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f6bacbfed2a6da3734a273be28b1891bb4d0dfb;p=thirdparty%2Fzlib-ng.git enable INFFAST_CHUNKSIZE on x86 --- diff --git a/memcopy.h b/memcopy.h index b14e3ec7..b294711e 100644 --- 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 +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