michael@0: ; michael@0: ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: ; michael@0: ; Use of this source code is governed by a BSD-style license michael@0: ; that can be found in the LICENSE file in the root of the source michael@0: ; tree. An additional intellectual property rights grant can be found michael@0: ; in the file PATENTS. All contributing project authors may michael@0: ; be found in the AUTHORS file in the root of the source tree. michael@0: ; michael@0: michael@0: michael@0: %include "vpx_ports/x86_abi_support.asm" michael@0: michael@0: %define VP8_FILTER_WEIGHT 128 michael@0: %define VP8_FILTER_SHIFT 7 michael@0: michael@0: ;void vp8_mbpost_proc_down_mmx(unsigned char *dst, michael@0: ; int pitch, int rows, int cols,int flimit) michael@0: extern sym(vp8_rv) michael@0: global sym(vp8_mbpost_proc_down_mmx) PRIVATE michael@0: sym(vp8_mbpost_proc_down_mmx): michael@0: push rbp michael@0: mov rbp, rsp michael@0: SHADOW_ARGS_TO_STACK 5 michael@0: GET_GOT rbx michael@0: push rsi michael@0: push rdi michael@0: ; end prolog michael@0: michael@0: ALIGN_STACK 16, rax michael@0: sub rsp, 136 michael@0: michael@0: ; unsigned char d[16][8] at [rsp] michael@0: ; create flimit2 at [rsp+128] michael@0: mov eax, dword ptr arg(4) ;flimit michael@0: mov [rsp+128], eax michael@0: mov [rsp+128+4], eax michael@0: %define flimit2 [rsp+128] michael@0: michael@0: %if ABI_IS_32BIT=0 michael@0: lea r8, [GLOBAL(sym(vp8_rv))] michael@0: %endif michael@0: michael@0: ;rows +=8; michael@0: add dword ptr arg(2), 8 michael@0: michael@0: ;for(c=0; c