• Roland Scheidegger's avatar
    h264: new assembly version of get_cabac for x86_64 with PIC · 82c71913
    Roland Scheidegger authored
    This adds a hand-optimized assembly version for get_cabac much like the
    existing one, but it works if the table offsets are RIP-relative.
    Compared to the non-RIP-relative version this adds 2 lea instructions
    and it needs one extra register.
    There is a surprisingly large performance improvement over the c version (more
    so than the generated assembly seems to suggest) just in get_cabac, I measured
    roughly 40% faster for get_cabac on a K8. However, overall the difference is
    not that big, I measured roughly 5% on a test clip on a K8 and a Core2.
    Hopefully it still compiles on x86 32bit...
    Now that only one table is used, there's some chance even darwin as compiles
    this (apparently the label arithmetic used previously doesn't work if it
    involves symbols defined in a different file, thanks to Ronald S. Bultje for
    helping me with this).
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    82c71913
Name
Last commit
Last update
doc Loading commit data...
ffpresets Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
mt-work Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
RELEASE Loading commit data...
arch.mak Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...