aboutsummaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/deflate.c b/deflate.c
index ac4270b..0345980 100644
--- a/deflate.c
+++ b/deflate.c
@@ -87,13 +87,7 @@ local void lm_init OF((deflate_state *s));
87local void putShortMSB OF((deflate_state *s, uInt b)); 87local void putShortMSB OF((deflate_state *s, uInt b));
88local void flush_pending OF((z_streamp strm)); 88local void flush_pending OF((z_streamp strm));
89local unsigned read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); 89local unsigned read_buf OF((z_streamp strm, Bytef *buf, unsigned size));
90#ifdef ASMV
91# pragma message("Assembler code may have bugs -- use at your own risk")
92 void match_init OF((void)); /* asm code initialization */
93 uInt longest_match OF((deflate_state *s, IPos cur_match));
94#else
95local uInt longest_match OF((deflate_state *s, IPos cur_match)); 90local uInt longest_match OF((deflate_state *s, IPos cur_match));
96#endif
97 91
98#ifdef ZLIB_DEBUG 92#ifdef ZLIB_DEBUG
99local void check_match OF((deflate_state *s, IPos start, IPos match, 93local void check_match OF((deflate_state *s, IPos start, IPos match,
@@ -1267,11 +1261,6 @@ local void lm_init(s)
1267 s->match_length = s->prev_length = MIN_MATCH-1; 1261 s->match_length = s->prev_length = MIN_MATCH-1;
1268 s->match_available = 0; 1262 s->match_available = 0;
1269 s->ins_h = 0; 1263 s->ins_h = 0;
1270#ifndef FASTEST
1271#ifdef ASMV
1272 match_init(); /* initialize the asm code */
1273#endif
1274#endif
1275} 1264}
1276 1265
1277#ifndef FASTEST 1266#ifndef FASTEST
@@ -1284,10 +1273,6 @@ local void lm_init(s)
1284 * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1 1273 * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
1285 * OUT assertion: the match length is not greater than s->lookahead. 1274 * OUT assertion: the match length is not greater than s->lookahead.
1286 */ 1275 */
1287#ifndef ASMV
1288/* For 80x86 and 680x0, an optimized version will be provided in match.asm or
1289 * match.S. The code will be functionally equivalent.
1290 */
1291local uInt longest_match(s, cur_match) 1276local uInt longest_match(s, cur_match)
1292 deflate_state *s; 1277 deflate_state *s;
1293 IPos cur_match; /* current match */ 1278 IPos cur_match; /* current match */
@@ -1433,7 +1418,6 @@ local uInt longest_match(s, cur_match)
1433 if ((uInt)best_len <= s->lookahead) return (uInt)best_len; 1418 if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
1434 return s->lookahead; 1419 return s->lookahead;
1435} 1420}
1436#endif /* ASMV */
1437 1421
1438#else /* FASTEST */ 1422#else /* FASTEST */
1439 1423