| OLD | NEW |
| 1 ; | 1 ; |
| 2 ; Copyright (c) 2015 The WebM project authors. All Rights Reserved. | 2 ; Copyright (c) 2015 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 %include "third_party/x86inc/x86inc.asm" | 11 %include "third_party/x86inc/x86inc.asm" |
| 12 | 12 |
| 13 | |
| 14 SECTION_RODATA | 13 SECTION_RODATA |
| 15 pw_1: times 8 dw 1 | 14 pw_1: times 8 dw 1 |
| 16 | 15 |
| 17 SECTION .text | 16 SECTION .text |
| 18 | 17 |
| 19 ; TODO(yunqingwang)fix quantize_b code for skip=1 case. | 18 ; TODO(yunqingwang)fix quantize_b code for skip=1 case. |
| 20 %macro QUANTIZE_FN 2 | 19 %macro QUANTIZE_FN 2 |
| 21 cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, zbin, round, quant, \ | 20 cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, zbin, round, quant, \ |
| 22 shift, qcoeff, dqcoeff, dequant, \ | 21 shift, qcoeff, dqcoeff, dequant, \ |
| 23 eob, scan, iscan | 22 eob, scan, iscan |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 mova [qcoeffq+ncoeffq*2+16], m7 | 207 mova [qcoeffq+ncoeffq*2+16], m7 |
| 209 add ncoeffq, mmsize | 208 add ncoeffq, mmsize |
| 210 jl .blank_loop | 209 jl .blank_loop |
| 211 mov word [eobq], 0 | 210 mov word [eobq], 0 |
| 212 RET | 211 RET |
| 213 %endmacro | 212 %endmacro |
| 214 | 213 |
| 215 INIT_XMM ssse3 | 214 INIT_XMM ssse3 |
| 216 QUANTIZE_FN b, 7 | 215 QUANTIZE_FN b, 7 |
| 217 QUANTIZE_FN b_32x32, 7 | 216 QUANTIZE_FN b_32x32, 7 |
| OLD | NEW |