id stringlengths 22 129 | text stringlengths 60 19.5k | arch stringclasses 9
values | syntax stringclasses 5
values | kind stringclasses 4
values | repo stringclasses 32
values | path stringlengths 7 108 | license stringclasses 10
values | commit stringlengths 40 40 | source_host stringclasses 1
value | category stringclasses 15
values | source_url stringlengths 85 192 | line_start int64 1 5.48k | line_end int64 4 5.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_error_avx.asm:7 | jnz .loophp
; Accumulate horizontally
movhlps xm5, xm4
movhlps xm7, xm6
paddq xm4, xm5
paddq xm6, xm7
; Store the return value
%if ARCH_X86_64
movq rax, xm4
movq [sszq], xm6
%else
movd eax, xm4
pextrd edx, xm4, 1
movq [sszd], xm6
%endif
RET
END | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_error_avx.asm | BSD-3-Clause | aa8f85223b7ed3568914c10dba0cd76d530d3369 | github | media | https://github.com/webmproject/libvpx/blob/aa8f85223b7ed3568914c10dba0cd76d530d3369/vp9/encoder/x86/vp9_highbd_error_avx.asm | 241 | 261 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_error_sse2.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_error_sse2.asm | BSD-3-Clause | 0134764fa6be4c46bd24b7bcf2fd092321335341 | github | media | https://github.com/webmproject/libvpx/blob/0134764fa6be4c46bd24b7bcf2fd092321335341/vp9/encoder/x86/vp9_highbd_error_sse2.asm | 1 | 60 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_error_sse2.asm:2 | packssdw m1, [dqcq+sizeq*4+mmsize*3]
mova m3, [uqcq+sizeq*4+mmsize*2]
packssdw m3, [uqcq+sizeq*4+mmsize*3]
add sizeq, mmsize
; individual errors are max. 15bit+sign, so squares are 30bit, and
; thus the sum of 2 should fit in a 31bit integer (+ unused sign bit)
psubw m0, m2
pmaddwd m2, ... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_error_sse2.asm | BSD-3-Clause | 0134764fa6be4c46bd24b7bcf2fd092321335341 | github | media | https://github.com/webmproject/libvpx/blob/0134764fa6be4c46bd24b7bcf2fd092321335341/vp9/encoder/x86/vp9_highbd_error_sse2.asm | 41 | 98 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_error_sse2.asm:3 | ; accumulate horizontally and store in return value
movhlps m5, m4
movhlps m7, m6
paddq m4, m5
paddq m6, m7
%if ARCH_X86_64
movq rax, m4
movq [sszq], m6
%else
mov eax, sszm
pshufd m5, m4, 0x1
movq [eax], m6
movd eax, m4
movd edx, m5
%endif
RET | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_error_sse2.asm | BSD-3-Clause | 0134764fa6be4c46bd24b7bcf2fd092321335341 | github | media | https://github.com/webmproject/libvpx/blob/0134764fa6be4c46bd24b7bcf2fd092321335341/vp9/encoder/x86/vp9_highbd_error_sse2.asm | 81 | 98 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm:5 | por m2, m3
mova m3, m0
pmaddwd m2, m1
paddd m4, m2
movu m2, [ref2q+(%5)*2]
psubusw m3, m2
psubusw m2, m0
por m2, m3
mova m3, m0
pmaddwd m2, m1
... | x86_64 | masm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | 161 | 220 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm:6 | %macro HIGH_PROCESS_32x2x4 5-6 0
HIGH_PROCESS_16x2x4 %1, %2, %3, (%2 + 16), (%3 + 16)
HIGH_PROCESS_16x2x4 0, %4, %5, (%4 + 16), (%5 + 16), %6
%endmacro
; HIGH_PROCESS_64x2x4 first, off_{first,second}_{src,ref}, advance_at_end
%macro HIGH_PROCESS_64x2x4 5-6 0
HIGH_PROCESS_32x2x4 %1, %2, %3, (%2 + 32), (%3 + 32)
... | x86_64 | masm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | 201 | 260 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm:5 | por m2, m3
mova m3, m0
pmaddwd m2, m1
paddd m4, m2
movu m2, [ref2q+(%5)*2]
psubusw m3, m2
psubusw m2, m0
por m2, m3
mova m3, m0
pmaddwd m2, m1
... | x86_64 | masm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | BSD-3-Clause | 7eee487c0036340e99425cc1cf1503e21e70678a | github | media | https://github.com/webmproject/libvpx/blob/7eee487c0036340e99425cc1cf1503e21e70678a/vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | 161 | 220 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm:6 | %macro HIGH_PROCESS_32x2x4 5-6 0
HIGH_PROCESS_16x2x4 %1, %2, %3, (%2 + 16), (%3 + 16)
HIGH_PROCESS_16x2x4 0, %4, %5, (%4 + 16), (%5 + 16), %6
%endmacro
; HIGH_PROCESS_64x2x4 first, off_{first,second}_{src,ref}, advance_at_end
%macro HIGH_PROCESS_64x2x4 5-6 0
HIGH_PROCESS_32x2x4 %1, %2, %3, (%2 + 32), (%3 + 32)
... | x86_64 | masm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | BSD-3-Clause | 7eee487c0036340e99425cc1cf1503e21e70678a | github | media | https://github.com/webmproject/libvpx/blob/7eee487c0036340e99425cc1cf1503e21e70678a/vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | 201 | 260 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm:7 | pshufd m1, m1, 0x0
HIGH_PROCESS_%1x2x4 1, 0, 0, src_strideq, ref_strideq, 1
%rep (%2-4)/2
HIGH_PROCESS_%1x2x4 0, 0, 0, src_strideq, ref_strideq, 1
%endrep
HIGH_PROCESS_%1x2x4 0, 0, 0, src_strideq, ref_strideq, 0
; N.B. HIGH_PROCESS outputs dwords (32 bits)
; so in high bit depth even the small... | x86_64 | masm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | BSD-3-Clause | 7eee487c0036340e99425cc1cf1503e21e70678a | github | media | https://github.com/webmproject/libvpx/blob/7eee487c0036340e99425cc1cf1503e21e70678a/vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm | 241 | 284 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad_sse2.asm:1 | ;
; Copyright (c) 2014 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad_sse2.asm | BSD-3-Clause | 7eee487c0036340e99425cc1cf1503e21e70678a | github | media | https://github.com/webmproject/libvpx/blob/7eee487c0036340e99425cc1cf1503e21e70678a/vp9/encoder/x86/vp9_highbd_sad_sse2.asm | 1 | 60 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad_sse2.asm:2 | %if %3 == 7
lea src_stride3q, [src_strideq*3]
lea ref_stride3q, [ref_strideq*3]
%endif ; %3 == 7
; convert src, ref & second_pred to short ptrs (from byte ptrs)
shl srcq, 1
shl refq, 1
%if %4 == 1
shl second_predq, 1
%endif
%endmacro
; unsigned int vp9_... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad_sse2.asm | BSD-3-Clause | 7eee487c0036340e99425cc1cf1503e21e70678a | github | media | https://github.com/webmproject/libvpx/blob/7eee487c0036340e99425cc1cf1503e21e70678a/vp9/encoder/x86/vp9_highbd_sad_sse2.asm | 41 | 100 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad_sse2.asm:4 | psubusw m5, m3
psubusw m3, [srcq+96]
por m3, m5
mova m5, [srcq+112]
psubusw m5, m4
psubusw m4, [srcq+112]
por m4, m5
paddw m1, m2
paddw m3, m4
movhlps ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad_sse2.asm | BSD-3-Clause | 7eee487c0036340e99425cc1cf1503e21e70678a | github | media | https://github.com/webmproject/libvpx/blob/7eee487c0036340e99425cc1cf1503e21e70678a/vp9/encoder/x86/vp9_highbd_sad_sse2.asm | 121 | 180 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad_sse2.asm:6 | paddw m3, m4
punpcklwd m1, m6
punpcklwd m3, m6
lea refq, [refq+ref_strideq*2]
paddd m0, m1
lea srcq, [srcq+src_strideq*2]
paddd m0, m3
dec n_rowsd
jg .loop
movhlps m1, m0... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad_sse2.asm | BSD-3-Clause | 7eee487c0036340e99425cc1cf1503e21e70678a | github | media | https://github.com/webmproject/libvpx/blob/7eee487c0036340e99425cc1cf1503e21e70678a/vp9/encoder/x86/vp9_highbd_sad_sse2.asm | 201 | 260 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad_sse2.asm:7 | %if %2 == 1
pavgw m1, [second_predq+mmsize*0]
pavgw m2, [second_predq+16]
pavgw m3, [second_predq+mmsize*2]
pavgw m4, [second_predq+mmsize*2+16]
lea second_predq, [second_predq+mmsize*4]
%endif
mova m5, [srcq]
psubusw... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad_sse2.asm | BSD-3-Clause | 7eee487c0036340e99425cc1cf1503e21e70678a | github | media | https://github.com/webmproject/libvpx/blob/7eee487c0036340e99425cc1cf1503e21e70678a/vp9/encoder/x86/vp9_highbd_sad_sse2.asm | 241 | 300 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_sad_sse2.asm:8 | punpckldq m0, m6
movhlps m1, m0
paddd m0, m1
movd eax, m0
RET
%endmacro
INIT_XMM sse2
HIGH_SAD16XN 32 ; highbd_sad16x32_sse2
HIGH_SAD16XN 16 ; highbd_sad16x16_sse2
HIGH_SAD16XN 8 ; highbd_sad16x8_sse2
HIGH_SAD16XN 32, 1 ; highbd_sad16x32_avg_sse2
HIGH_... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_sad_sse2.asm | BSD-3-Clause | 7eee487c0036340e99425cc1cf1503e21e70678a | github | media | https://github.com/webmproject/libvpx/blob/7eee487c0036340e99425cc1cf1503e21e70678a/vp9/encoder/x86/vp9_highbd_sad_sse2.asm | 281 | 340 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:1 | ;
; Copyright (c) 2014 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 1 | 60 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:3 | %if ARCH_X86=1 && CONFIG_PIC=1
lea srcq, [srcq + src_stridemp*2]
%else
lea srcq, [srcq + src_strideq*2]
%endif
%endmacro
%macro INC_SRC_BY_SRC_2STRIDE 0
%if ARCH_X86=1 && CONFIG_PIC=1
lea srcq, [srcq + src_stridemp*4]
%else
lea srcq, [srcq + src_stri... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 81 | 140 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:4 | height, sse, g_bilin_filter, g_pw_8
%define h dword heightm
%define sec_str sec_stridemp
; Store bilin_filter and pw_8 location in stack
GET_GOT eax
add esp, 4 ; restore esp
lea ecx, [GLOBAL(bilin_filter_m)]
mov g_bilin_filterm, ecx
lea ecx, [GLOBAL(pw_8... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 121 | 180 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:5 | height, sse
%if ARCH_X86_64
%define h heightd
%define sec_str sec_strideq
%else
%define h dword heightm
%define sec_str sec_stridemp
%endif
%else
cglobal highbd_sub_pixel_variance%1xh, 7, 7, 13, src, src_stride, \
x_offset, y_offset, dst,... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 161 | 220 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:6 | movu m2, [srcq + 16]
mova m1, [dstq]
mova m3, [dstq + 16]
%if %2 == 1 ; avg
pavgw m0, [secq]
pavgw m2, [secq+16]
%endif
SUM_SSE m0, m1, m2, m3, m6, m7
lea srcq, [srcq + src_strideq*2]
lea ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 201 | 260 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:7 | ; x_offset == 0 && y_offset == 0.5
.x_zero_y_half_loop:
%if %1 == 16
movu m0, [srcq]
movu m1, [srcq+16]
movu m4, [srcq+src_strideq*2]
movu m5, [srcq+src_strideq*2+16]
mova m2, [dstq]
mova m3, [dstq+16]
pavgw ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 241 | 300 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:8 | add secq, sec_str
%endif
%endif
dec h
jg .x_zero_y_half_loop
STORE_AND_RET
.x_zero_y_nonhalf:
; x_offset == 0 && y_offset == bilin interpolation
%ifdef PIC
lea bilin_filter, [bilin_filter_m]
%endif
shl y_offsetd, filter_idx_shift
%if ARCH_X86_64 && mmsize =... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 281 | 340 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:10 | paddw m1, filter_rnd
pmullw m0, filter_y_a
pmullw m4, filter_y_b
paddw m0, filter_rnd
paddw m1, m5
paddw m0, m4
psrlw m1, 4
psrlw m0, 4
%if %2 == 1 ; avg
pavgw m0, [secq]
... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 361 | 420 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:11 | movu m4, [srcq + 2]
movu m5, [srcq + 18]
mova m2, [dstq]
mova m3, [dstq + 16]
pavgw m0, m4
pavgw m1, m5
%if %2 == 1 ; avg
pavgw m0, [secq]
pavgw m1, [secq+16]
%endif
SUM_SSE ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 401 | 460 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:13 | %else ; %1 < 16
movu m0, [srcq]
movu m2, [srcq+2]
lea srcq, [srcq + src_strideq*2]
pavgw m0, m2
.x_half_y_half_loop:
movu m2, [srcq]
movu m3, [srcq + src_strideq*2]
movu m4, [srcq + 2]
movu ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 481 | 540 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:16 | pmullw m4, filter_y_a
pmullw m3, filter_y_b
paddw m4, filter_rnd
paddw m4, m3
pmullw m0, filter_y_a
pmullw m2, filter_y_b
paddw m0, filter_rnd
psrlw m4, 4
paddw m0, m2
mov... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 601 | 660 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:18 | paddw m1, m3
paddw m0, m2
psrlw m1, 4
psrlw m0, 4
%if %2 == 1 ; avg
pavgw m0, [secq]
pavgw m1, [secq+16]
%endif
SUM_SSE m0, m4, m1, m5, m6, m7
lea srcq, [srcq+src_strideq*2]
lea ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 681 | 740 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:19 | lea dstq, [dstq+dst_strideq*4]
%if %2 == 1 ; avg
add secq, sec_str
%endif
%endif
dec h
jg .x_other_y_zero_loop
%undef filter_x_a
%undef filter_x_b
%undef filter_rnd
STORE_AND_RET
.x_nonhalf_y_nonzero:
cmp y_offsetd, 8
jne .x_nonhalf_y_nonhalf
; x... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 721 | 780 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:21 | %if %2 == 1 ; avg
pavgw m0, [secq]
pavgw m1, [secq+16]
%endif
SUM_SSE m0, m4, m1, m5, m6, m7
mova m0, m2
mova m1, m3
lea srcq, [srcq+src_strideq*2]
lea dstq, [dstq+dst_strideq*2]
%if %2 == 1 ; avg
a... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 801 | 860 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:22 | pavgw m2, m3
%if %2 == 1 ; avg
pavgw m0, [secq]
add secq, sec_str
pavgw m2, [secq]
%endif
SUM_SSE m0, m4, m2, m5, m6, m7
mova m0, m3
lea srcq, [srcq+src_strideq*4]
lea dstq, [dstq+dst_st... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 841 | 900 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:26 | pmullw m3, filter_y_b
paddw m0, m2
paddw m4, filter_rnd
mova m2, [dstq]
paddw m4, m3
psrlw m0, 4
psrlw m4, 4
mova m3, [dstq+dst_strideq*2]
%if %2 == 1 ; avg
pavgw m0, [... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | eb88b172fe5e5fece6676b24a2b6b787e4901753 | github | media | https://github.com/webmproject/libvpx/blob/eb88b172fe5e5fece6676b24a2b6b787e4901753/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 1,001 | 1,039 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:1 | ;
; Copyright (c) 2014 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 1 | 60 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:2 | times 8 dw 13
times 8 dw 2
times 8 dw 14
times 8 dw 1
times 8 dw 15
SECTION .text
; int vp9_sub_pixel_varianceNxh(const uint8_t *src, ptrdiff_t src_stride,
; int x_offset, int y_offset,
; ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 41 | 100 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:3 | movhlps m3, m7
movhlps m4, m6
paddd m7, m3
paddd m6, m4
pshufd m3, m7, 0x1
pshufd m4, m6, 0x1
paddd m7, m3
paddd m6, m4
mov r1, ssem ; r1 = unsigned int *sse
movd ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 81 | 140 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:4 | dst, dst_stride, \
sec, sec_stride, height, sse
%define sec_str sec_strideq
%else
cglobal highbd_sub_pixel_variance%1xh, 7, 8, 13, src, src_stride, x_offset, \
y_offset, dst, dst_stride, height, sse
%endif
%define h heightd
%define ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 121 | 180 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:5 | lea ecx, [GLOBAL(bilin_filter_m)]
mov g_bilin_filterm, ecx
lea ecx, [GLOBAL(pw_8)]
mov g_pw_8m, ecx
LOAD_IF_USED 0, 1 ; load eax, ecx back
%endif
%else
%if %2 == 1 ; avg
cglobal highbd_sub_pixel_avg_variance%1xh, 7 + 2 * ARCH_X86_64, \
7 + 2 * AR... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 161 | 220 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:6 | %endif
%if %2 == 1 ; avg
shl sec_str, 1
%endif
; FIXME(rbultje) replace by jumptable?
test x_offsetd, x_offsetd
jnz .x_nonzero
; x_offset == 0
test y_offsetd, y_offsetd
jnz .x_zero_y_nonzero
; x_offset == 0 && y_offset == 0
.x_zero_y_zero_loop:
%if %1 == 16
movu ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 201 | 260 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:7 | SUM_SSE m0, m1, m2, m3, m6, m7
lea srcq, [srcq + src_strideq*4]
lea dstq, [dstq + dst_strideq*4]
%if %2 == 1 ; avg
add secq, sec_str
%endif
%endif
dec h
jg .x_zero_y_zero_loop
STORE_AND_RET
.x_zero_y_nonzero:
cmp y_off... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 241 | 300 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:8 | movu m1, [srcq+src_strideq*2]
movu m5, [srcq+src_strideq*4]
mova m2, [dstq]
mova m3, [dstq+dst_strideq*2]
pavgw m0, m1
pavgw m1, m5
%if %2 == 1 ; avg
pavgw m0, [secq]
add secq, sec_s... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 281 | 340 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:9 | add y_offsetq, g_bilin_filterm
%define filter_y_a [y_offsetq]
%define filter_y_b [y_offsetq+16]
mov tempq, g_pw_8m
%define filter_rnd [tempq]
%else
add y_offsetq, bilin_filter
%define filter_y_a [y_offsetq]
%define filter_y_b [y_offsetq+16]
%define filter_rnd [pw_8]
%endif
%endif
.x_zero_y_other_loop:
%i... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 321 | 380 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:10 | SUM_SSE m0, m2, m1, m3, m6, m7
lea srcq, [srcq + src_strideq*2]
lea dstq, [dstq + dst_strideq*2]
%if %2 == 1 ; avg
add secq, sec_str
%endif
%else ; %1 < 16
movu m0, [srcq]
movu m1, [srcq+src_strideq*2]
movu ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 361 | 420 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:11 | %undef filter_y_b
%undef filter_rnd
STORE_AND_RET
.x_nonzero:
cmp x_offsetd, 8
jne .x_nonhalf
; x_offset == 0.5
test y_offsetd, y_offsetd
jnz .x_half_y_nonzero
; x_offset == 0.5 && y_offset == 0
.x_half_y_zero_loop:
%if %1 == 16
movu m0, [srcq]
movu ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 401 | 460 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:12 | pavgw m0, m4
pavgw m1, m5
%if %2 == 1 ; avg
pavgw m0, [secq]
add secq, sec_str
pavgw m1, [secq]
%endif
SUM_SSE m0, m2, m1, m3, m6, m7
lea srcq, [srcq + src_strideq*4]
lea dstq, [dstq + ds... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 441 | 500 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:13 | pavgw m1, m3
mova m4, [dstq]
mova m5, [dstq + 16]
%if %2 == 1 ; avg
pavgw m0, [secq]
pavgw m1, [secq+16]
%endif
SUM_SSE m0, m4, m1, m5, m6, m7
mova m0, m2
mova m1, m3
lea ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 481 | 540 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:14 | lea srcq, [srcq + src_strideq*4]
lea dstq, [dstq + dst_strideq*4]
%if %2 == 1 ; avg
add secq, sec_str
%endif
%endif
dec h
jg .x_half_y_half_loop
STORE_AND_RET
.x_half_y_nonhalf:
; x_offset == 0.5 && y_offset == bilin interpolation
%ifdef PIC
... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 521 | 580 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:15 | %if %1 == 16
movu m0, [srcq]
movu m1, [srcq+16]
movu m2, [srcq+2]
movu m3, [srcq+18]
lea srcq, [srcq + src_strideq*2]
pavgw m0, m2
pavgw m1, m3
.x_half_y_other_loop:
movu m2, [src... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 561 | 620 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:16 | add secq, sec_str
%endif
%else ; %1 < 16
movu m0, [srcq]
movu m2, [srcq+2]
lea srcq, [srcq + src_strideq*2]
pavgw m0, m2
.x_half_y_other_loop:
movu m2, [srcq]
movu m3, [srcq+src_strideq*2]
movu ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 601 | 660 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:17 | %endif
%endif
dec h
jg .x_half_y_other_loop
%undef filter_y_a
%undef filter_y_b
%undef filter_rnd
STORE_AND_RET
.x_nonhalf:
test y_offsetd, y_offsetd
jnz .x_nonhalf_y_nonzero
; x_offset == bilin interpolation && y_offset == 0
%ifdef PIC
lea bilin_filter, [bilin_filter_m... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 641 | 700 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:18 | %endif
.x_other_y_zero_loop:
%if %1 == 16
movu m0, [srcq]
movu m1, [srcq+16]
movu m2, [srcq+2]
movu m3, [srcq+18]
mova m4, [dstq]
mova m5, [dstq+16]
pmullw m1, filter_x_a
pmullw m... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 681 | 740 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:19 | paddw m1, filter_rnd
pmullw m0, filter_x_a
pmullw m2, filter_x_b
paddw m0, filter_rnd
paddw m1, m3
paddw m0, m2
psrlw m1, 4
psrlw m0, 4
%if %2 == 1 ; avg
pavgw m0, [secq]
... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 721 | 780 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:20 | mova m10, [pw_8]
%define filter_x_a m8
%define filter_x_b m9
%define filter_rnd m10
%else ; x86-32
%if ARCH_X86=1 && CONFIG_PIC=1
; y_offset == 0.5. We can reuse y_offset reg.
%define tempq y_offsetq
add x_offsetq, g_bilin_filterm
%define filter_x_a [x_offsetq]
%define filter_x_b [x_offsetq+16]
mo... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 761 | 820 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:21 | movu m4, [srcq+2]
movu m5, [srcq+18]
pmullw m2, filter_x_a
pmullw m4, filter_x_b
paddw m2, filter_rnd
pmullw m3, filter_x_a
pmullw m5, filter_x_b
paddw m3, filter_rnd
paddw ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 801 | 860 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:22 | movu m3, [srcq+src_strideq*2]
movu m4, [srcq+2]
movu m5, [srcq+src_strideq*2+2]
pmullw m2, filter_x_a
pmullw m4, filter_x_b
paddw m2, filter_rnd
pmullw m3, filter_x_a
pmullw m5, filter_x_... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 841 | 900 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:23 | %ifdef PIC
lea bilin_filter, [bilin_filter_m]
%endif
shl x_offsetd, filter_idx_shift ; filter_idx_shift = 5
shl y_offsetd, filter_idx_shift
%if ARCH_X86_64 && mmsize == 16
mova m8, [bilin_filter+x_offsetq]
mova m9, [bilin_filter+x_offsetq+16]
mova ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 881 | 940 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:24 | %endif
; end of load filter
; x_offset == bilin interpolation && y_offset == bilin interpolation
%if %1 == 16
movu m0, [srcq]
movu m2, [srcq+2]
movu m1, [srcq+16]
movu m3, [srcq+18]
pmullw m0, filter_x_a
pmullw m2... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 921 | 980 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:25 | pmullw m2, filter_y_b
paddw m0, filter_rnd
pmullw m1, filter_y_a
pmullw m3, filter_y_b
paddw m0, m2
paddw m1, filter_rnd
mova m2, [dstq]
paddw m1, m3
psrlw m0, 4
psrlw ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 961 | 1,020 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:26 | pmullw m2, filter_x_a
pmullw m4, filter_x_b
paddw m2, filter_rnd
pmullw m3, filter_x_a
pmullw m5, filter_x_b
paddw m3, filter_rnd
paddw m2, m4
paddw m3, m5
psrlw m2, 4
psr... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 1,001 | 1,055 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:27 | %undef filter_x_a
%undef filter_x_b
%undef filter_y_a
%undef filter_y_b
%undef filter_rnd
STORE_AND_RET
%endmacro
INIT_XMM sse2
SUBPEL_VARIANCE 8
SUBPEL_VARIANCE 16
INIT_XMM sse2
SUBPEL_VARIANCE 8, 1
SUBPEL_VARIANCE 16, 1 | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 789ae447f8d00bb69f5e58ad314b9686c53f4f6d | github | media | https://github.com/webmproject/libvpx/blob/789ae447f8d00bb69f5e58ad314b9686c53f4f6d/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 1,041 | 1,055 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:5 | lea ecx, [GLOBAL(bilin_filter_m)]
mov g_bilin_filterm, ecx
lea ecx, [GLOBAL(pw_8)]
mov g_pw_8m, ecx
LOAD_IF_USED 0, 1 ; load eax, ecx back
%endif
%else
%if %2 == 1 ; avg
cglobal highbd_sub_pixel_avg_variance%1xh, 7 + 2 * ARCH_X86_64, \
7 + 2 * AR... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 161 | 220 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:6 | %endif
; FIXME(rbultje) replace by jumptable?
test x_offsetd, x_offsetd
jnz .x_nonzero
; x_offset == 0
test y_offsetd, y_offsetd
jnz .x_zero_y_nonzero
; x_offset == 0 && y_offset == 0
.x_zero_y_zero_loop:
%if %1 == 16
movu m0, [srcq]
movu m2, [srcq +... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 201 | 260 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:7 | %if %2 == 1 ; avg
lea secq, [secq + sec_str*4]
%endif
%endif
dec h
jg .x_zero_y_zero_loop
STORE_AND_RET
.x_zero_y_nonzero:
cmp y_offsetd, 8
jne .x_zero_y_nonhalf
; x_offset == 0 && y_offset == 0.5
.x_zero_y_half_loop:
%if %1 == 16
movu m0, [sr... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 241 | 300 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:8 | pavgw m0, m1
pavgw m1, m5
%if %2 == 1 ; avg
pavgw m0, [secq]
pavgw m1, [secq+sec_str*2]
%endif
SUM_SSE m0, m2, m1, m3, m6, m7
lea srcq, [srcq + src_strideq*4]
lea dstq, [dstq + dst_strideq*4]
%if %2 == 1 ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 281 | 340 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:9 | %else
add y_offsetq, bilin_filter
%define filter_y_a [y_offsetq]
%define filter_y_b [y_offsetq+16]
%define filter_rnd [pw_8]
%endif
%endif
.x_zero_y_other_loop:
%if %1 == 16
movu m0, [srcq]
movu m1, [srcq + 16]
movu m4, [srcq+src_strideq*2]
movu ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 321 | 380 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:10 | lea secq, [secq + sec_str*2]
%endif
%else ; %1 < 16
movu m0, [srcq]
movu m1, [srcq+src_strideq*2]
movu m5, [srcq+src_strideq*4]
mova m4, m1
mova m2, [dstq]
mova m3, [dstq+dst_strideq*2]
pmullw ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 361 | 420 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:11 | jne .x_nonhalf
; x_offset == 0.5
test y_offsetd, y_offsetd
jnz .x_half_y_nonzero
; x_offset == 0.5 && y_offset == 0
.x_half_y_zero_loop:
%if %1 == 16
movu m0, [srcq]
movu m1, [srcq + 16]
movu m4, [srcq + 2]
movu m5, [srcq + 18]
... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 401 | 460 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:12 | SUM_SSE m0, m2, m1, m3, m6, m7
lea srcq, [srcq + src_strideq*4]
lea dstq, [dstq + dst_strideq*4]
%if %2 == 1 ; avg
lea secq, [secq + sec_str*4]
%endif
%endif
dec h
jg .x_half_y_zero_loop
STORE_AND_RET
.x_half_y_nonzero:
cmp ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 441 | 500 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:13 | SUM_SSE m0, m4, m1, m5, m6, m7
mova m0, m2
mova m1, m3
lea srcq, [srcq + src_strideq*2]
lea dstq, [dstq + dst_strideq*2]
%if %2 == 1 ; avg
lea secq, [secq + sec_str*2]
%endif
%else ; %1 < 16
movu m0, [... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 481 | 540 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:14 | STORE_AND_RET
.x_half_y_nonhalf:
; x_offset == 0.5 && y_offset == bilin interpolation
%ifdef PIC
lea bilin_filter, [bilin_filter_m]
%endif
shl y_offsetd, filter_idx_shift
%if ARCH_X86_64 && mmsize == 16
mova m8, [bilin_filter+y_offsetq]
mova m9, [bilin_filter+... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 521 | 580 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:15 | .x_half_y_other_loop:
movu m2, [srcq]
movu m3, [srcq+16]
movu m4, [srcq+2]
movu m5, [srcq+18]
pavgw m2, m4
pavgw m3, m5
mova m4, m2
mova m5, m3
pmullw m1, filter_... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 561 | 620 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:16 | movu m2, [srcq]
movu m3, [srcq+src_strideq*2]
movu m4, [srcq+2]
movu m5, [srcq+src_strideq*2+2]
pavgw m2, m4
pavgw m3, m5
mova m4, m2
mova m5, m3
pmullw m4, filter_... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 601 | 660 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:17 | .x_nonhalf:
test y_offsetd, y_offsetd
jnz .x_nonhalf_y_nonzero
; x_offset == bilin interpolation && y_offset == 0
%ifdef PIC
lea bilin_filter, [bilin_filter_m]
%endif
shl x_offsetd, filter_idx_shift
%if ARCH_X86_64 && mmsize == 16
mova m8, [bilin_filter+x_offsetq]
... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 641 | 700 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:18 | mova m5, [dstq+16]
pmullw m1, filter_x_a
pmullw m3, filter_x_b
paddw m1, filter_rnd
pmullw m0, filter_x_a
pmullw m2, filter_x_b
paddw m0, filter_rnd
paddw m1, m3
paddw m0, ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 681 | 740 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:19 | pavgw m0, [secq]
pavgw m1, [secq+sec_str*2]
%endif
SUM_SSE m0, m4, m1, m5, m6, m7
lea srcq, [srcq+src_strideq*4]
lea dstq, [dstq+dst_strideq*4]
%if %2 == 1 ; avg
lea secq, [secq + sec_str*4]
%endif
%endif
dec ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 721 | 780 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:20 | %define filter_x_b [x_offsetq+16]
mov tempq, g_pw_8m
%define filter_rnd [tempq]
%else
add x_offsetq, bilin_filter
%define filter_x_a [x_offsetq]
%define filter_x_b [x_offsetq+16]
%define filter_rnd [pw_8]
%endif
%endif
%if %1 == 16
movu m0, [srcq]
movu m1, [srcq+16]
... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 761 | 820 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:21 | mova m4, [dstq]
mova m5, [dstq+16]
psrlw m2, 4
psrlw m3, 4
pavgw m0, m2
pavgw m1, m3
%if %2 == 1 ; avg
pavgw m0, [secq]
pavgw m1, [secq+16]
%endif
SUM_SSE m0, m4, m1, m5... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 801 | 860 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:22 | paddw m3, m5
mova m4, [dstq]
mova m5, [dstq+dst_strideq*2]
psrlw m2, 4
psrlw m3, 4
pavgw m0, m2
pavgw m2, m3
%if %2 == 1 ; avg
pavgw m0, [secq]
pavgw m2, [secq+sec_str... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 841 | 900 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:23 | %define filter_x_a m8
%define filter_x_b m9
%define filter_y_a m10
%define filter_y_b m11
%define filter_rnd m12
%else ; x86-32
%if ARCH_X86=1 && CONFIG_PIC=1
; In this case, there is NO unused register. Used src_stride register. Later,
; src_stride has to be loaded from stack when it is needed.
%define tempq src_str... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 881 | 940 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:24 | paddw m0, filter_rnd
pmullw m1, filter_x_a
pmullw m3, filter_x_b
paddw m1, filter_rnd
paddw m0, m2
paddw m1, m3
psrlw m0, 4
psrlw m1, 4
INC_SRC_BY_SRC_STRIDE
.x_other_y_other_loop:
m... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 921 | 980 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:25 | %if %2 == 1 ; avg
pavgw m0, [secq]
pavgw m1, [secq+16]
%endif
SUM_SSE m0, m2, m1, m3, m6, m7
mova m0, m4
mova m1, m5
INC_SRC_BY_SRC_STRIDE
lea dstq, [dstq + dst_strideq * 2]
%if %2 == 1 ; avg
lea se... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 961 | 1,020 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_subpel_variance.asm:26 | mova m5, m3
pmullw m0, filter_y_a
pmullw m2, filter_y_b
paddw m0, filter_rnd
pmullw m4, filter_y_a
pmullw m3, filter_y_b
paddw m0, m2
paddw m4, filter_rnd
mova m2, [dstq]
... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_subpel_variance.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_subpel_variance.asm | 1,001 | 1,043 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm:1 | ;
; Copyright (c) 2014 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | 1 | 60 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm:2 | ; Prefetch data
prefetcht0 [rsi]
prefetcht0 [rsi+16]
prefetcht0 [rsi+rax]
prefetcht0 [rsi+rax+16]
lea rbx, [rsi+rax*2]
prefetcht0 [rbx]
prefetcht0 [rbx+16]
prefetcht0 [rbx+rax]
prefetcht0 [rbx+... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | 41 | 100 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm:3 | prefetcht0 [rbx+rdx]
prefetcht0 [rbx+rdx+16]
pxor xmm5, xmm5
psubw xmm1, xmm2
movdqu xmm3, XMMWORD PTR [rsi+16]
paddw xmm5, xmm1
pmaddwd xmm1, xmm1
movdqu xmm2, ... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | 81 | 140 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm:4 | paddd xmm7, xmm5
paddd xmm7, xmm2
lea rsi, [rsi + 2*rax]
lea rdi, [rdi + 2*rdx]
sub rcx, 2
jnz .var16loop
movdqa xmm4, xmm6
punpckldq xmm6, ... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | 121 | 180 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm:5 | RESTORE_XMM
UNSHADOW_ARGS
pop rbp
ret
;unsigned int vp9_highbd_calc8x8var_sse2
;(
; unsigned char * src_ptr,
; int source_stride,
; unsigned char * ref_ptr,
; int recon_stride,
; unsigned int * SSE,
; int * Sum
;)
global sym(vp9_high... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | 161 | 220 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm:6 | prefetcht0 [rdi]
prefetcht0 [rdi+rdx]
lea rbx, [rdi+rdx*2]
prefetcht0 [rbx]
prefetcht0 [rbx+rdx]
pxor xmm0, xmm0 ; clear xmm0 for unpack
pxor xmm7, xmm7 ; clear xmm7 for accumulating diffs
... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | 201 | 260 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm:7 | lea rdi, [rdi + 2*rdx]
psubw xmm3, xmm2
movdqu xmm1, XMMWORD PTR [rsi]
paddw xmm5, xmm3
pmaddwd xmm3, xmm3
movdqu xmm2, XMMWORD PTR [rdi]
paddd xmm6, xmm3
... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | 241 | 300 |
webmproject/libvpx:vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm:8 | punpckhdq xmm4, xmm0
movdqa xmm5, xmm7
paddd xmm6, xmm4
punpckldq xmm7, xmm0
punpckhdq xmm5, xmm0
paddd xmm7, xmm5
movdqa xmm4, xmm6
movdqa xmm5, xm... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | BSD-3-Clause | 48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72 | github | media | https://github.com/webmproject/libvpx/blob/48032bfcdb412a8e7f9d89154c4ac8fbb3f8fe72/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm | 281 | 313 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_mmx.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_mmx.asm | BSD-3-Clause | 1dffce7f969ff299244ddb5a707b6d63a0f1bb91 | github | media | https://github.com/webmproject/libvpx/blob/1dffce7f969ff299244ddb5a707b6d63a0f1bb91/vp9/encoder/x86/vp9_quantize_mmx.asm | 1 | 60 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_mmx.asm:2 | pcmpgtw mm1, mm2
pandn mm1, mm2
movq mm3, mm1
mov rdx, arg(6) ;quant_ptr
movq mm1, [rdx]
mov rcx, arg(5) ;round_ptr
movq mm2, [rcx]
padd... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_mmx.asm | BSD-3-Clause | 1dffce7f969ff299244ddb5a707b6d63a0f1bb91 | github | media | https://github.com/webmproject/libvpx/blob/1dffce7f969ff299244ddb5a707b6d63a0f1bb91/vp9/encoder/x86/vp9_quantize_mmx.asm | 41 | 100 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_mmx.asm:3 | psubw mm7, mm4 ; abs
movq mm6, mm7
pcmpgtw mm5, mm6
pandn mm5, mm6
movq mm7, mm5
movq mm5, [rdx+8]
movq mm6, [rcx+8]
paddw ... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_mmx.asm | BSD-3-Clause | 1dffce7f969ff299244ddb5a707b6d63a0f1bb91 | github | media | https://github.com/webmproject/libvpx/blob/1dffce7f969ff299244ddb5a707b6d63a0f1bb91/vp9/encoder/x86/vp9_quantize_mmx.asm | 81 | 140 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_mmx.asm:4 | pxor mm7, mm4
psubw mm7, mm4 ; abs
movq mm6, mm7
pcmpgtw mm5, mm6
pandn mm5, mm6
movq mm7, mm5
movq mm5, [rdx+16]
movq mm... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_mmx.asm | BSD-3-Clause | 1dffce7f969ff299244ddb5a707b6d63a0f1bb91 | github | media | https://github.com/webmproject/libvpx/blob/1dffce7f969ff299244ddb5a707b6d63a0f1bb91/vp9/encoder/x86/vp9_quantize_mmx.asm | 121 | 180 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_mmx.asm:5 | pxor mm7, mm4
psubw mm7, mm4 ; abs
movq mm6, mm7
pcmpgtw mm5, mm6
pandn mm5, mm6
movq mm7, mm5
movq mm5, [rdx+24]
movq mm... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_mmx.asm | BSD-3-Clause | 1dffce7f969ff299244ddb5a707b6d63a0f1bb91 | github | media | https://github.com/webmproject/libvpx/blob/1dffce7f969ff299244ddb5a707b6d63a0f1bb91/vp9/encoder/x86/vp9_quantize_mmx.asm | 161 | 220 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_mmx.asm:6 | movq mm0, [rsi]
movq mm1, [rsi+8]
movq mm2, [rdi]
movq mm3, [rdi+8];
pcmpeqw mm0, mm7
pcmpeqw mm1, mm7
pcmpeqw mm6, mm6
pxor mm0, ... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_mmx.asm | BSD-3-Clause | 1dffce7f969ff299244ddb5a707b6d63a0f1bb91 | github | media | https://github.com/webmproject/libvpx/blob/1dffce7f969ff299244ddb5a707b6d63a0f1bb91/vp9/encoder/x86/vp9_quantize_mmx.asm | 201 | 260 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_mmx.asm:7 | pmaddwd mm1, mm3
paddd mm5, mm0
paddd mm5, mm1
movq mm0, mm5
psrlq mm5, 32
paddd mm0, mm5
; eob adjustment begins here
movq rcx, mm0
a... | x86_64 | nasm-like | handwritten | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_mmx.asm | BSD-3-Clause | 1dffce7f969ff299244ddb5a707b6d63a0f1bb91 | github | media | https://github.com/webmproject/libvpx/blob/1dffce7f969ff299244ddb5a707b6d63a0f1bb91/vp9/encoder/x86/vp9_quantize_mmx.asm | 241 | 286 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_sse2.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license and patent
; grant that can be found in the LICENSE file in the root of the source
; tree. All contributing project authors may be found in the AUTHORS
; file in the root of the sour... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_sse2.asm | BSD-3-Clause | 15255eef8251eb645b9b89f6e211663e6f22563d | github | media | https://github.com/webmproject/libvpx/blob/15255eef8251eb645b9b89f6e211663e6f22563d/vp9/encoder/x86/vp9_quantize_sse2.asm | 1 | 60 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_sse2.asm:2 | sub rsp, stack_size
; end prolog
%if ABI_IS_32BIT
mov rdi, arg(0) ; BLOCK *b
mov rsi, arg(1) ; BLOCKD *d
%else
%if LIBVPX_YASM_WIN64
mov rdi, rcx ; BLOCK *b
mov rsi, rdx ; BLOCKD *d
%el... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_sse2.asm | BSD-3-Clause | 15255eef8251eb645b9b89f6e211663e6f22563d | github | media | https://github.com/webmproject/libvpx/blob/15255eef8251eb645b9b89f6e211663e6f22563d/vp9/encoder/x86/vp9_quantize_sse2.asm | 41 | 100 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_sse2.asm:3 | psubw xmm1, xmm0
psubw xmm5, xmm4
movdqa xmm2, [rcx]
movdqa xmm3, [rcx + 16]
mov rcx, [rdi + vp9_block_quant] ; quant_ptr
; *zbin_ptr + zbin_oq_value
paddw xmm2, xmm7
paddw xmm3, xmm7
; x - (*zbin_ptr + zbin_oq_value)
psubw xmm1, xmm... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_sse2.asm | BSD-3-Clause | 15255eef8251eb645b9b89f6e211663e6f22563d | github | media | https://github.com/webmproject/libvpx/blob/15255eef8251eb645b9b89f6e211663e6f22563d/vp9/encoder/x86/vp9_quantize_sse2.asm | 81 | 140 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_sse2.asm:4 | movdqa [rsp + temp_qcoeff + 16], xmm5
pxor xmm6, xmm6
; zero qcoeff
movdqa [rsp + qcoeff], xmm6
movdqa [rsp + qcoeff + 16], xmm6
mov rdx, [rdi + vp9_block_zrun_zbin_boost] ; zbin_boost_ptr
mov rax, [rdi + vp9_block_quant_shift] ; quant_shift_ptr
mov ... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_sse2.asm | BSD-3-Clause | 15255eef8251eb645b9b89f6e211663e6f22563d | github | media | https://github.com/webmproject/libvpx/blob/15255eef8251eb645b9b89f6e211663e6f22563d/vp9/encoder/x86/vp9_quantize_sse2.asm | 121 | 180 |
webmproject/libvpx:vp9/encoder/x86/vp9_quantize_sse2.asm:5 | ZIGZAG_LOOP 12
ZIGZAG_LOOP 13
ZIGZAG_LOOP 10
ZIGZAG_LOOP 7
ZIGZAG_LOOP 11
ZIGZAG_LOOP 14
ZIGZAG_LOOP 15
movdqa xmm2, [rsp + qcoeff]
movdqa xmm3, [rsp + qcoeff + 16]
mov rcx, [rsi + vp9_blockd_dequant] ; dequant_ptr
mov rdi, [rsi + vp9_blockd_dqcoeff] ; dqcoeff_ptr
; y ^... | x86_64 | nasm-like | macro-heavy | webmproject/libvpx | vp9/encoder/x86/vp9_quantize_sse2.asm | BSD-3-Clause | 15255eef8251eb645b9b89f6e211663e6f22563d | github | media | https://github.com/webmproject/libvpx/blob/15255eef8251eb645b9b89f6e211663e6f22563d/vp9/encoder/x86/vp9_quantize_sse2.asm | 161 | 220 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.