OLD | NEW |
1 ; | 1 ; |
2 ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 ; | 3 ; |
4 ; Use of this source code is governed by a BSD-style license | 4 ; Use of this source code is governed by a BSD-style license |
5 ; that can be found in the LICENSE file in the root of the source | 5 ; that can be found in the LICENSE file in the root of the source |
6 ; tree. An additional intellectual property rights grant can be found | 6 ; tree. An additional intellectual property rights grant can be found |
7 ; in the file PATENTS. All contributing project authors may | 7 ; in the file PATENTS. All contributing project authors may |
8 ; be found in the AUTHORS file in the root of the source tree. | 8 ; be found in the AUTHORS file in the root of the source tree. |
9 ; | 9 ; |
10 | 10 |
| 11 %define private_prefix vp9 |
| 12 |
11 %include "third_party/x86inc/x86inc.asm" | 13 %include "third_party/x86inc/x86inc.asm" |
12 | 14 |
13 SECTION .text | 15 SECTION .text |
14 | 16 |
15 ; int64_t vp9_block_error(int16_t *coeff, int16_t *dqcoeff, intptr_t block_size, | 17 ; int64_t vp9_block_error(int16_t *coeff, int16_t *dqcoeff, intptr_t block_size, |
16 ; int64_t *ssz) | 18 ; int64_t *ssz) |
17 | 19 |
18 INIT_XMM sse2 | 20 INIT_XMM sse2 |
19 cglobal block_error, 3, 3, 8, uqc, dqc, size, ssz | 21 cglobal block_error, 3, 3, 8, uqc, dqc, size, ssz |
20 pxor m4, m4 ; sse accumulator | 22 pxor m4, m4 ; sse accumulator |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 movhlps m5, m4 | 113 movhlps m5, m4 |
112 paddq m4, m5 | 114 paddq m4, m5 |
113 %if ARCH_X86_64 | 115 %if ARCH_X86_64 |
114 movq rax, m4 | 116 movq rax, m4 |
115 %else | 117 %else |
116 pshufd m5, m4, 0x1 | 118 pshufd m5, m4, 0x1 |
117 movd eax, m4 | 119 movd eax, m4 |
118 movd edx, m5 | 120 movd edx, m5 |
119 %endif | 121 %endif |
120 RET | 122 RET |
OLD | NEW |