gzip: trivial code shrink -5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
a977778893
commit
b62d4d9d57
@ -442,19 +442,19 @@ static void put_16bit(ush w)
|
|||||||
*dst = (uch)w;
|
*dst = (uch)w;
|
||||||
w >>= 8;
|
w >>= 8;
|
||||||
#else
|
#else
|
||||||
*dst++ = (uch)w;
|
*dst = (uch)w;
|
||||||
w >>= 8;
|
w >>= 8;
|
||||||
if (outcnt < OUTBUFSIZ-2) {
|
if (outcnt < OUTBUFSIZ-2) {
|
||||||
/* Common case */
|
/* Common case */
|
||||||
*dst = w;
|
dst[1] = w;
|
||||||
G1.outcnt = outcnt + 2;
|
G1.outcnt = outcnt + 2;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Slowpath: we will need to do flush_outbuf() */
|
/* Slowpath: we will need to do flush_outbuf() */
|
||||||
G1.outcnt++;
|
G1.outcnt = ++outcnt;
|
||||||
if (G1.outcnt == OUTBUFSIZ)
|
if (outcnt == OUTBUFSIZ)
|
||||||
flush_outbuf();
|
flush_outbuf();
|
||||||
put_8bit(w);
|
put_8bit(w);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user