4 |
; * - GMC core functions - |
; * - GMC core functions - |
5 |
; * Copyright(C) 2006 Pascal Massimino <skal@planet-d.net> |
; * Copyright(C) 2006 Pascal Massimino <skal@planet-d.net> |
6 |
; * |
; * |
7 |
; * This file is part of XviD, a free MPEG-4 video encoder/decoder |
; * This file is part of Xvid, a free MPEG-4 video encoder/decoder |
8 |
; * |
; * |
9 |
; * XviD is free software; you can redistribute it and/or modify it |
; * Xvid is free software; you can redistribute it and/or modify it |
10 |
; * under the terms of the GNU General Public License as published by |
; * under the terms of the GNU General Public License as published by |
11 |
; * the Free Software Foundation; either version 2 of the License, or |
; * the Free Software Foundation; either version 2 of the License, or |
12 |
; * (at your option) any later version. |
; * (at your option) any later version. |
20 |
; * along with this program; if not, write to the Free Software |
; * along with this program; if not, write to the Free Software |
21 |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
; * |
; * |
23 |
; * $Id: gmc_mmx.asm,v 1.8 2008-12-01 14:45:45 Isibaar Exp $ |
; * $Id: gmc_mmx.asm,v 1.12 2010-03-09 10:00:14 Isibaar Exp $ |
24 |
; * |
; * |
25 |
; *************************************************************************/ |
; *************************************************************************/ |
26 |
|
|
48 |
Cst16: |
Cst16: |
49 |
times 8 dw 16 |
times 8 dw 16 |
50 |
|
|
51 |
SECTION .rotext align=SECTION_ALIGN |
TEXT |
52 |
|
|
53 |
;////////////////////////////////////////////////////////////////////// |
;////////////////////////////////////////////////////////////////////// |
54 |
;// mmx version |
;// mmx version |
200 |
|
|
201 |
align SECTION_ALIGN |
align SECTION_ALIGN |
202 |
xvid_GMC_Core_Lin_8_sse41: |
xvid_GMC_Core_Lin_8_sse41: |
|
PUSH_XMM6_XMM7 |
|
|
|
|
203 |
mov _EAX, prm2 ; Offsets |
mov _EAX, prm2 ; Offsets |
204 |
mov TMP0, prm3 ; Src0 |
mov TMP0, prm3 ; Src0 |
205 |
mov TMP1, prm4 ; BpS |
mov TMP1, prm4 ; BpS |
216 |
packuswb xmm5, xmm5 |
packuswb xmm5, xmm5 |
217 |
movq [_EAX], xmm5 |
movq [_EAX], xmm5 |
218 |
|
|
|
POP_XMM6_XMM7 |
|
219 |
ret |
ret |
220 |
ENDFUNC |
ENDFUNC |
221 |
|
|
222 |
;////////////////////////////////////////////////////////////////////// |
;////////////////////////////////////////////////////////////////////// |
223 |
|
NON_EXEC_STACK |
|
%ifidn __OUTPUT_FORMAT__,elf |
|
|
section ".note.GNU-stack" noalloc noexec nowrite progbits |
|
|
%endif |
|