Revision a239d534

View differences:

libavcodec/x86/dsputil_yasm.asm
468 468
%define valw  ax
469 469
%define valw2 r10w
470 470
%define valw3 r3w
471
%ifdef WIN64
472
%define valw4 r4w
473
%else ; unix64
474
%define valw4 r3w
475
%endif
471 476
%define vald eax
472 477
%else
473 478
%define vall  bl
......
475 480
%define valw  bx
476 481
%define valw2 r6w
477 482
%define valw3 valw2
483
%define valw4 valw3
478 484
%define vald ebx
479 485
%define stack_offset 0x14
480 486
%endif
......
537 543
%elif (%2-%%src_off) == 3
538 544
%ifidn %1, top
539 545
    mov         valw2, [r1+%%src_off]
540
%else ; %1 != top
546
%elifidn %1, body
541 547
    mov         valw3, [r1+%%src_off]
548
%elifidn %1, bottom
549
    mov         valw4, [r1+%%src_off]
542 550
%endif ; %1 ==/!= top
543 551
    mov          vall, [r1+%%src_off+2]
544 552
%endif ; (%2-%%src_off) == 1/2/3
......
584 592
%elif (%2-%%dst_off) == 3
585 593
%ifidn %1, top
586 594
    mov    [r0+%%dst_off], valw2
587
%else ; %1 != top
595
%elifidn %1, body
588 596
    mov    [r0+%%dst_off], valw3
597
%elifidn %1, bottom
598
    mov    [r0+%%dst_off], valw4
589 599
%endif ; %1 ==/!= top
590 600
    mov  [r0+%%dst_off+2], vall
591 601
%endif ; (%2-%%dst_off) == 1/2/3
......
615 625
    WRITE_NUM_BYTES top,    %%n, %1          ;   write bytes
616 626
    add            r0 , r2                   ;   dst += linesize
617 627
%ifdef ARCH_X86_64
618
    dec            r3
628
    dec            r3d
619 629
%else ; ARCH_X86_32
620 630
    dec      dword r3m
621 631
%endif ; ARCH_X86_64/32
......
627 637
    WRITE_NUM_BYTES body,   %%n, %1          ;   write bytes
628 638
    add            r0 , r2                   ;   dst += linesize
629 639
    add            r1 , r2                   ;   src += linesize
630
    dec            r4
640
    dec            r4d
631 641
    jnz .emuedge_copy_body_ %+ %%n %+ _loop  ; } while (--end_y)
632 642

  
633 643
    ; copy bottom pixels
......
638 648
.emuedge_extend_bottom_ %+ %%n %+ _loop:     ; do {
639 649
    WRITE_NUM_BYTES bottom, %%n, %1          ;   write bytes
640 650
    add            r0 , r2                   ;   dst += linesize
641
    dec            r5
651
    dec            r5d
642 652
    jnz .emuedge_extend_bottom_ %+ %%n %+ _loop ; } while (--block_h)
643 653

  
644 654
.emuedge_v_extend_end_ %+ %%n:

Also available in: Unified diff