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 program_name vpx | |
12 | |
13 %include "third_party/x86inc/x86inc.asm" | 11 %include "third_party/x86inc/x86inc.asm" |
14 | 12 |
15 SECTION .text | 13 SECTION .text |
16 | 14 |
17 %macro SAD_FN 4 | 15 %macro SAD_FN 4 |
18 %if %4 == 0 | 16 %if %4 == 0 |
19 %if %3 == 5 | 17 %if %3 == 5 |
20 cglobal sad%1x%2, 4, %3, 5, src, src_stride, ref, ref_stride, n_rows | 18 cglobal sad%1x%2, 4, %3, 5, src, src_stride, ref, ref_stride, n_rows |
21 %else ; %3 == 7 | 19 %else ; %3 == 7 |
22 cglobal sad%1x%2, 4, %3, 5, src, src_stride, ref, ref_stride, \ | 20 cglobal sad%1x%2, 4, %3, 5, src, src_stride, ref, ref_stride, \ |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 258 |
261 movd eax, m0 | 259 movd eax, m0 |
262 RET | 260 RET |
263 %endmacro | 261 %endmacro |
264 | 262 |
265 INIT_MMX sse | 263 INIT_MMX sse |
266 SAD4XN 8 ; sad4x8_sse | 264 SAD4XN 8 ; sad4x8_sse |
267 SAD4XN 4 ; sad4x4_sse | 265 SAD4XN 4 ; sad4x4_sse |
268 SAD4XN 8, 1 ; sad4x8_avg_sse | 266 SAD4XN 8, 1 ; sad4x8_avg_sse |
269 SAD4XN 4, 1 ; sad4x4_avg_sse | 267 SAD4XN 4, 1 ; sad4x4_avg_sse |
OLD | NEW |