[FFmpeg-devel] [PATCH] Add x86-optimized versions of exponent_min().

Loren Merritt lorenm
Mon Jan 31 06:21:58 CET 2011


>+cglobal ac3_exponent_min_%1, 3,4,2, exp, reuse_blks, expn, offset
>+    cmp  reuse_blksq, 0

shl sets flags.

>+    je .end
>+    sub        expnq, mmsize
>+    shl  reuse_blksq, 8
>+.nextexp:
>+    mov      offsetq, reuse_blksq
>+    mova          m0, [expq+offsetq]
>+    sub      offsetq, 256
>+.nextblk:
>+    PMINUB        m0, [expq+offsetq], m1
>+    sub      offsetq, 256
>+    jae .nextblk
>+    mova      [expq], m0
>+    add         expq, mmsize
>+    sub        expnq, mmsize
>+    jae .nextexp

ja, and remove the first sub

>+.end:
>+    REP_RET

--Loren Merritt



More information about the ffmpeg-devel mailing list