~ubuntu-branches/ubuntu/maverick/x264/maverick-updates

« back to all changes in this revision

Viewing changes to common/x86/quant-a.asm

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2010-02-18 07:39:51 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20100218073951-9jgsvskb976rfbvq
Tags: upstream-0.85.1442.1+git781d30
ImportĀ upstreamĀ versionĀ 0.85.1442.1+git781d30

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
%endmacro
87
87
 
88
88
%macro QUANT_DC_START_SSSE3 0
89
 
    movdqa     m5, [pb_01 GLOBAL]
 
89
    movdqa     m5, [pb_01]
90
90
    movd       m6, r1m     ; mf
91
91
    movd       m7, r2m     ; bias
92
92
    pshufb     m6, m5
361
361
.rshift32:
362
362
    neg   t0d
363
363
    movd  m2, t0d
364
 
    mova  m3, [pd_1 GLOBAL]
 
364
    mova  m3, [pd_1]
365
365
    pxor  m4, m4
366
366
    pslld m3, m2
367
367
    psrld m3, 1
381
381
    sub  t2d, t1d   ; i_mf = i_qp % 6
382
382
    shl  t2d, %3
383
383
%ifdef PIC
384
 
    lea  r1, [dequant%2_scale GLOBAL]
 
384
    lea  r1, [dequant%2_scale]
385
385
    add  r1, t2
386
386
%else
387
 
    lea  r1, [dequant%2_scale + t2 GLOBAL]
 
387
    lea  r1, [dequant%2_scale + t2]
388
388
%endif
389
389
    movifnidn r0, r0mp
390
390
    movd m4, t0d
446
446
.rshift32:
447
447
    neg   t0d
448
448
    movd  m3, t0d
449
 
    mova  m4, [pw_1 GLOBAL]
 
449
    mova  m4, [pw_1]
450
450
    mova  m5, m4
451
451
    pslld m4, m3
452
452
    psrld m4, 1
588
588
;This is not true for score64.
589
589
cglobal x264_decimate_score%1_%2, 1,3
590
590
%ifdef PIC
591
 
    lea r10, [x264_decimate_table4 GLOBAL]
592
 
    lea r11, [decimate_mask_table4 GLOBAL]
 
591
    lea r10, [x264_decimate_table4]
 
592
    lea r11, [decimate_mask_table4]
593
593
    %define table r10
594
594
    %define mask_table r11
595
595
%else
596
596
    %define table x264_decimate_table4
597
597
    %define mask_table decimate_mask_table4
598
598
%endif
599
 
    DECIMATE_MASK edx, eax, r0, [pb_1 GLOBAL], %2, ecx
 
599
    DECIMATE_MASK edx, eax, r0, [pb_1], %2, ecx
600
600
    xor   edx, 0xffff
601
601
    je   .ret
602
602
    test  eax, eax
640
640
%ifdef ARCH_X86_64
641
641
cglobal x264_decimate_score64_%1, 1,4
642
642
%ifdef PIC
643
 
    lea r10, [x264_decimate_table8 GLOBAL]
 
643
    lea r10, [x264_decimate_table8]
644
644
    %define table r10
645
645
%else
646
646
    %define table x264_decimate_table8
647
647
%endif
648
 
    mova  m5, [pb_1 GLOBAL]
 
648
    mova  m5, [pb_1]
649
649
    DECIMATE_MASK r1d, eax, r0, m5, %1, null
650
650
    test  eax, eax
651
651
    jne  .ret9
681
681
%else
682
682
cglobal x264_decimate_score64_%1, 1,5
683
683
%endif
684
 
    mova  m7, [pb_1 GLOBAL]
 
684
    mova  m7, [pb_1]
685
685
    DECIMATE_MASK r3, r2, r0, m7, %1, r5
686
686
    test  r2, r2
687
687
    jne  .ret9