Revision 31326143 libavcodec/arm/dsputil_armv6.S

View differences:

libavcodec/arm/dsputil_armv6.S
309 309
        pop             {r4-r8, pc}
310 310
.endfunc
311 311

  
312
function ff_diff_pixels_armv6, export=1
313
        pld             [r1, r3]
314
        pld             [r2, r3]
315
        push            {r4-r9, lr}
316
        mov             lr,  #8
317
1:
318
        ldrd            r4,  r5,  [r1],  r3
319
        ldrd            r6,  r7,  [r2],  r3
320
        uxtb16          r8,  r4
321
        uxtb16          r4,  r4,  ror #8
322
        uxtb16          r9,  r6
323
        uxtb16          r6,  r6,  ror #8
324
        pld             [r1, r3]
325
        ssub16          r9,  r8,  r9
326
        ssub16          r6,  r4,  r6
327
        uxtb16          r8,  r5
328
        uxtb16          r5,  r5,  ror #8
329
        pld             [r2, r3]
330
        pkhbt           r4,  r9,  r6,  lsl #16
331
        pkhtb           r6,  r6,  r9,  asr #16
332
        uxtb16          r9,  r7
333
        uxtb16          r7,  r7,  ror #8
334
        ssub16          r9,  r8,  r9
335
        ssub16          r5,  r5,  r7
336
        subs            lr,  lr,  #1
337
        pkhbt           r8,  r9,  r5,  lsl #16
338
        pkhtb           r9,  r5,  r9,  asr #16
339
        stm             r0!, {r4,r6,r8,r9}
340
        bgt             1b
341

  
342
        pop             {r4-r9, pc}
343
.endfunc
344

  
312 345
function ff_pix_abs16_armv6, export=1
313 346
        ldr             r0,  [sp]
314 347
        push            {r4-r9, lr}

Also available in: Unified diff