From: Hans Kristian Rosbach Date: Wed, 24 Jun 2015 21:06:13 +0000 (+0200) Subject: Make insert_string_sse more similar to insert_string_c. X-Git-Tag: 1.9.9-b1~796^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43580a20b6b78873605109e6d661bc3dc1677cd6;p=thirdparty%2Fzlib-ng.git Make insert_string_sse more similar to insert_string_c. --- diff --git a/deflate_p.h b/deflate_p.h index e43f1be03..6b135287a 100644 --- a/deflate_p.h +++ b/deflate_p.h @@ -51,9 +51,8 @@ local inline Pos insert_string_sse(deflate_state *const s, const Pos str, uInt c : "r" (val) ); - ret = s->head[h & s->hash_mask]; + ret = s->prev[(str+idx) & s->w_mask] = s->head[h & s->hash_mask]; s->head[h & s->hash_mask] = str+idx; - s->prev[(str+idx) & s->w_mask] = ret; } return ret; }