[FFmpeg-devel] [PATCH] h264 CAVLC coeff_token decoder based on CLZ

Loren Merritt lorenm
Sun Jan 24 13:03:22 CET 2010


On Sun, 24 Jan 2010, Jason Garrett-Glaser wrote:
> On Sun, Jan 24, 2010 at 3:24 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
>>
>> heres an example:
>> if (alpha&&beta){
>> from my inlined code is turned into:
>> ? ? ? ?testl ? %r15d, %r15d
>> ? ? ? ?setne ? %r9b
>> ? ? ? ?testl ? %r13d, %r13d
>> ? ? ? ?setne ? %r14b
>> ? ? ? ?testb ? %r9b, %r9b
>> ? ? ? ?je ? ? ?.L260
>> ? ? ? ?testb ? %r14b, %r14b
>> ? ? ? ?je ? ? ?.L260
>>
>> why is gcc doing this?
>
> Use if(alpha&beta), problem solved.

Fail. alpha=1, beta=2, (alpha&beta)==0.

--Loren Merritt



More information about the ffmpeg-devel mailing list