Optimise the hot function empty_hash even further.

This commit is contained in:
Con Kolivas 2012-03-11 09:25:58 +11:00
parent 2fada9fb76
commit 261f2ff1e4

2
rzip.c
View file

@ -318,7 +318,7 @@ static bool put_literal(rzip_control *control, struct rzip_state *st, i64 last,
/* Could give false positive on offset 0. Who cares. */ /* Could give false positive on offset 0. Who cares. */
static inline bool empty_hash(struct hash_entry *he) static inline bool empty_hash(struct hash_entry *he)
{ {
return !he->offset && !he->t; return !(he->offset | he->t);
} }
static i64 primary_hash(struct rzip_state *st, tag t) static i64 primary_hash(struct rzip_state *st, tag t)