mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 22:09:01 +08:00
QUIC: microoptimization in varint parsing.
Removed a useless mask from the value being shifted, since it is 1-byte wide.
This commit is contained in:
parent
eb8f476d59
commit
c092a7de0f
@ -160,7 +160,7 @@ ngx_quic_parse_int(u_char *pos, u_char *end, uint64_t *out)
|
|||||||
}
|
}
|
||||||
|
|
||||||
p = pos;
|
p = pos;
|
||||||
len = 1 << ((*p & 0xc0) >> 6);
|
len = 1 << (*p >> 6);
|
||||||
|
|
||||||
value = *p++ & 0x3f;
|
value = *p++ & 0x3f;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user