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:
Sergey Kandaurov 2020-11-13 13:24:45 +00:00
parent eb8f476d59
commit c092a7de0f

View File

@ -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;