]> git.sesse.net Git - ffmpeg/commit
h264: new assembly version of get_cabac for x86_64 with PIC
authorRoland Scheidegger <rscheidegger_lists@hispeed.ch>
Fri, 27 Apr 2012 20:19:39 +0000 (22:19 +0200)
committerRonald S. Bultje <rsbultje@gmail.com>
Sat, 28 Apr 2012 16:43:25 +0000 (09:43 -0700)
commit9b9df1cdff149db5bbe6726b236934c5b5fbe21d
treeb9c6d51cc923f003b05a51af7337ad048c426982
parent14e9ffc1e41424a530c83310611979c0d246417b
h264: new assembly version of get_cabac for x86_64 with PIC

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. get_cabac() gets about 40% faster, for
an overall speedup of about 5%.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/h264_cabac.c
libavcodec/x86/cabac.h
libavcodec/x86/h264_i386.h