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_RODATA | 15 SECTION_RODATA |
14 pw_1: times 8 dw 1 | 16 pw_1: times 8 dw 1 |
15 | 17 |
16 SECTION .text | 18 SECTION .text |
17 | 19 |
18 %macro QUANTIZE_FP 2 | 20 %macro QUANTIZE_FP 2 |
19 cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, zbin, round, quant, \ | 21 cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, zbin, round, quant, \ |
20 shift, qcoeff, dqcoeff, dequant, \ | 22 shift, qcoeff, dqcoeff, dequant, \ |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 mova [r2q+ncoeffq*2+16], m7 | 192 mova [r2q+ncoeffq*2+16], m7 |
191 add ncoeffq, mmsize | 193 add ncoeffq, mmsize |
192 jl .blank_loop | 194 jl .blank_loop |
193 mov word [r3q], 0 | 195 mov word [r3q], 0 |
194 RET | 196 RET |
195 %endmacro | 197 %endmacro |
196 | 198 |
197 INIT_XMM ssse3 | 199 INIT_XMM ssse3 |
198 QUANTIZE_FP fp, 7 | 200 QUANTIZE_FP fp, 7 |
199 QUANTIZE_FP fp_32x32, 7 | 201 QUANTIZE_FP fp_32x32, 7 |
OLD | NEW |