[x265] [PATCH Review only] asm: code for sse_pp_48x64 routine

chen chenm003 at 163.com
Fri Nov 22 12:28:29 CET 2013


>+;-----------------------------------------------------------------------------
>+; int pixel_ssd_48x64( uint8_t *, intptr_t, uint8_t *, intptr_t )
>+;-----------------------------------------------------------------------------
>+INIT_XMM sse4
>+cglobal pixel_ssd_48x64, 4, 7, 8, src1, stride1, src2, stride2
>+
>+    pxor    m7,    m7
>+    pxor    m6,    m6
>+    mov     r4,    r0
>+    mov     r5,    r2
>+    mov     r6,    r1
>+    add     r6,    r6
lea r6, [r1 * 2]
 
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r0 + r6]
>+    lea     r2,    [r2 + 2 * r3]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r0 + r6]
>+    lea     r2,    [r2 + 2 * r3]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r0 + r6]
>+    lea     r2,    [r2 + 2 * r3]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r4 + 16]
>+    lea     r2,    [r5 + 16]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r0 + r6]
>+    lea     r2,    [r2 + 2 * r3]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r0 + r6]
>+    lea     r2,    [r2 + 2 * r3]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r0 + r6]
>+    lea     r2,    [r2 + 2 * r3]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r4 + 32]
>+    lea     r2,    [r5 + 32]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r0 + r6]
>+    lea     r2,    [r2 + 2 * r3]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r0 + r6]
>+    lea     r2,    [r2 + 2 * r3]
>+    call    pixel_ssd_16x16_internal
>+    lea     r0,    [r0 + r6]
>+    lea     r2,    [r2 + 2 * r3]
>+    call    pixel_ssd_16x16_internal
>+
>+    HADDD   m7, m1
>+    movd   eax, m7
>+
>+    RET
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20131122/79c8df42/attachment.html>


More information about the x265-devel mailing list