Frediano Ziglio 1dcdefa8b3 quic: Use __builtin_clz if available
Different processors has specific instructions to count leading
zero bits. This includes: x86. x64, arm, ppc.
For portability reason the behaviour of __builtin_clz is not
defined if the value is zero so test for it.
Currently the function is not called with the value or 0.
This increase performance decoding of about 4-5% on a x64 machine
(code size decreases a little too, but about 0.1%).

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2018-06-05 14:58:02 +01:00
2015-08-11 10:26:06 +02:00
2018-06-05 14:10:22 +01:00
2015-12-18 11:41:15 +01:00
2012-09-21 10:51:17 +02:00
2017-05-18 16:40:36 +01:00
S
Description
No description provided
1.4 MiB
Languages
C 79%
Python 14%
Makefile 2.3%
M4 2%
Meson 1.6%
Other 1.1%