summaryrefslogtreecommitdiff
path: root/deflate_medium.c
diff options
context:
space:
mode:
authorhansr <hk-git@circlestorm.org>2014-10-09 15:10:33 +0200
committerhansr <hk-git@circlestorm.org>2014-10-09 15:10:33 +0200
commit1eecc12f19f75fd59f59fad5d36daa5e520f43fc (patch)
tree461b1749c5894080e4ba40a197c20cc6bba12636 /deflate_medium.c
parent279e637d951d3101d5509e60f4ca8c39178e3518 (diff)
Clean up likely/unlikely definitions
Diffstat (limited to 'deflate_medium.c')
-rw-r--r--deflate_medium.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/deflate_medium.c b/deflate_medium.c
index 4beada8..0d4d98a 100644
--- a/deflate_medium.c
+++ b/deflate_medium.c
@@ -54,7 +54,7 @@ static int emit_match(deflate_state *s, struct match match, IPos hash_head)
static void insert_match(deflate_state *s, struct match match)
{
- if (zunlikely(s->lookahead <= match.match_length + MIN_MATCH))
+ if (unlikely(s->lookahead <= match.match_length + MIN_MATCH))
return;
/* matches that are not long enough we need to emit as litterals */
@@ -80,7 +80,7 @@ static void insert_match(deflate_state *s, struct match match)
match.match_length--; /* string at strstart already in table */
do {
match.strstart++;
- if (zlikely(match.strstart >= match.orgstart)) {
+ if (likely(match.strstart >= match.orgstart)) {
insert_string(s, match.strstart);
}
/* strstart never exceeds WSIZE-MAX_MATCH, so there are
@@ -118,7 +118,7 @@ static void fizzle_matches(deflate_state *s, struct match *current, struct match
orig = s->window - current->match_length + 1 + next->strstart ;
/* quick exit check.. if this fails then don't bother with anything else */
- if (zlikely(*match != *orig))
+ if (likely(*match != *orig))
return;
/*