[FFmpeg-devel] [PATCH] h264: assembly version of get_cabac for x86_64 with PIC
Michael Niedermayer
michaelni at gmx.at
Sun Apr 15 10:19:01 CEST 2012
On Sat, Apr 14, 2012 at 01:50:21AM +0200, Roland Scheidegger wrote:
[...]
> +#ifdef BROKEN_RELOCATIONS
> + BRANCHLESS_GET_CABAC("%4", "%q4", "(%1)", "%3", "%w3",
> + "%5", "%q5", "%k0", "%b0",
> + "%a11(%6)", "%a12(%6)", "%13")
> +#else
> BRANCHLESS_GET_CABAC("%4", "(%1)", "%3", "%w3",
> "%5", "%k0", "%b0",
> "%a11(%6)", "%a12(%6)")
> +#endif
>
> "test $1, %4 \n\t"
> " jz 4f \n\t"
> "add %10, %1 \n\t"
>
> +#ifdef BROKEN_RELOCATIONS
> + BRANCHLESS_GET_CABAC("%4", "%q4", "(%1)", "%3", "%w3",
> + "%5", "%q5", "%k0", "%b0",
> + "%a11(%6)", "%a12(%6)", "%13")
> +#else
> BRANCHLESS_GET_CABAC("%4", "(%1)", "%3", "%w3",
> "%5", "%k0", "%b0",
> "%a11(%6)", "%a12(%6)")
> +#endif
>
> "sub %10, %1 \n\t"
> "mov %2, %0 \n\t"
these 2 ifdefs can be avoided by making the macro arguments between
the 2 variants match
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120415/75092c0c/attachment.asc>
More information about the ffmpeg-devel
mailing list