]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Use TRIGGER_LEVEL in sse optimization too.
authorMika Lindqvist <postmaster@raasu.org>
Wed, 25 May 2016 23:05:33 +0000 (02:05 +0300)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Tue, 31 Jan 2017 09:54:54 +0000 (10:54 +0100)
arch/x86/insert_string_sse.c

index a5d9962d8d5e4f173b9764add65ce9acc93bce75..a927dc0cb02c835ee878f67bf8ed89cf847c18f9 100644 (file)
@@ -26,7 +26,7 @@ Pos insert_string_sse(deflate_state *const s, const Pos str, unsigned int count)
         val = *ip;
         h = 0;
 
-        if (s->level >= 6)
+        if (s->level >= TRIGGER_LEVEL)
             val &= 0xFFFFFF;
 
 #ifdef _MSC_VER