mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ ngx_quic_parse_int(u_char *pos, u_char *end, uint64_t *out)
|
|||
}
|
||||
|
||||
p = pos;
|
||||
len = 1 << ((*p & 0xc0) >> 6);
|
||||
len = 1 << (*p >> 6);
|
||||
|
||||
value = *p++ & 0x3f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue