]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Use 15-bit window for quick strategy when compiling with DFLTCC
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 21 Jul 2020 12:05:25 +0000 (14:05 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 21 Aug 2020 19:54:12 +0000 (21:54 +0200)
Hardware accelerator does not support 13-bit window.

deflate.c

index 1cc7642bf07c363abc7f1ed2a32e3f3f27af7561..37cb5675bc540e12db4636a2b3b1f38cf9f38f7c 100644 (file)
--- a/deflate.c
+++ b/deflate.c
@@ -302,7 +302,7 @@ int32_t ZEXPORT PREFIX(deflateInit2_)(PREFIX3(stream) *strm, int32_t level, int3
     if (windowBits == 8)
         windowBits = 9;  /* until 256-byte window bug fixed */
 
-#ifndef NO_QUICK_STRATEGY
+#if !defined(NO_QUICK_STRATEGY) && !defined(S390_DFLTCC_DEFLATE)
     if (level == 1)
         windowBits = 13;
 #endif