Go to file
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
build-aux build-sys: make it a seperately buildable spice-common library 2012-03-22 20:21:05 +01:00
common quic: Use __builtin_clz if available 2018-06-05 14:58:02 +01:00
docs Add support for building with meson/ninja 2018-06-01 21:27:04 +01:00
m4 build: Remove checks for functions which are never called 2018-06-05 14:10:14 +01:00
python_modules Add support for building with meson/ninja 2018-06-01 21:27:04 +01:00
tests Add support for building with meson/ninja 2018-06-01 21:27:04 +01:00
.gitmodules Remove spice-protocol submodule 2015-08-11 10:26:06 +02:00
autogen.sh Remove files moved to spice-protocol 2015-08-11 10:26:06 +02:00
configure.ac build: Remove bitops.h 2018-06-05 14:10:22 +01:00
COPYING Remove trailing whitespace 2015-12-18 11:41:15 +01:00
git.mk Update git.mk to latest version 2012-09-21 10:51:17 +02:00
Makefile.am Add support for building with meson/ninja 2018-06-01 21:27:04 +01:00
meson_options.txt build: By default, error out if Opus is missing 2018-06-05 14:10:02 +01:00
meson.build build: Remove checks for functions which are never called 2018-06-05 14:10:14 +01:00
spice1.proto Revert "Remove files moved to spice-protocol" 2016-03-10 16:01:36 +01:00
spice_codegen.py codegen: Fix license name 2017-05-18 16:40:36 +01:00
spice.proto Fix field names for Smartcard protocol structures 2018-05-17 21:03:01 +01:00