Revision 41c2bd0a libavcodec/arm/dsputil_armv6.S

View differences:

libavcodec/arm/dsputil_armv6.S
594 594
        mov             r0,  lr
595 595
        pop             {r4-r6, pc}
596 596
.endfunc
597

  
598
function ff_pix_sum_armv6, export=1
599
        push            {r4-r7, lr}
600
        mov             r12, #16
601
        mov             r2,  #0
602
        mov             r3,  #0
603
        mov             lr,  #0
604
        ldr             r4,  [r0]
605
1:
606
        subs            r12, r12, #1
607
        ldr             r5,  [r0, #4]
608
        usada8          r2,  r4,  lr,  r2
609
        ldr             r6,  [r0, #8]
610
        usada8          r3,  r5,  lr,  r3
611
        ldr             r7,  [r0, #12]
612
        usada8          r2,  r6,  lr,  r2
613
        beq             2f
614
        ldr             r4,  [r0, r1]!
615
        usada8          r3,  r7,  lr,  r3
616
        bgt             1b
617
2:
618
        usada8          r3,  r7,  lr,  r3
619
        add             r0,  r2,  r3
620
        pop             {r4-r7, pc}
621
.endfunc

Also available in: Unified diff