mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-26 14:15:04 +00:00
1dcdefa8b3a69a8bd008aba276c180f28f7ceca3
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>
Description
No description provided
1.4 MiB
Languages
C
79%
Python
14%
Makefile
2.3%
M4
2%
Meson
1.6%
Other
1.1%