[FFmpeg-devel] [PATCH] h264: assembly version of get_cabac for x86_64 with PIC

Michael Niedermayer michaelni at gmx.at
Thu Apr 19 11:16:44 CEST 2012


On Wed, Apr 18, 2012 at 02:39:28AM +0200, Roland Scheidegger wrote:
[...]

> @@ -86,7 +97,11 @@ static int decode_significance_x86(CABACContext *c, int max_coeff,
>            "+&r"(c->low), "=&r"(bit), "+&r"(c->range)
>          : "r"(c), "m"(minusstart), "m"(end), "m"(minusindex), "m"(last_off),
>            "i"(offsetof(CABACContext, bytestream)),
> +#ifdef BROKEN_RELOCATIONS
> +          "i"(offsetof(CABACContext, bytestream_end)), "r"(rip)
> +#else
>            "i"(offsetof(CABACContext, bytestream_end))
> +#endif

these can be simplified with a
#define RIP_ARG
#else
#define RIP_ARG , "r"(rip)

and

"i"(offsetof(CABACContext, bytestream_end)) RIP_ARG


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- 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/20120419/ca166073/attachment.asc>


More information about the ffmpeg-devel mailing list