mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Optimise the hot function empty_hash even further.
This commit is contained in:
parent
2fada9fb76
commit
261f2ff1e4
2
rzip.c
2
rzip.c
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue