1 |
;/***************************************************************************** |
;/****************************************************************************** |
2 |
; * |
; * * |
3 |
; * XVID MPEG-4 VIDEO CODEC |
; * This file is part of XviD, a free MPEG-4 video encoder/decoder * |
4 |
; * mmx optimized MPEG quantization/dequantization |
; * * |
5 |
; * |
; * XviD is an implementation of a part of one or more MPEG-4 Video tools * |
6 |
; * Copyright(C) 2002 Peter Ross <pross@xvid.org> |
; * as specified in ISO/IEC 14496-2 standard. Those intending to use this * |
7 |
; * Copyright(C) 2002 Michael Militzer <michael@xvid.org> |
; * software module in hardware or software products are advised that its * |
8 |
; * Copyright(C) 2002 Pascal Massimino <skal@planet-d.net> |
; * use may infringe existing patents or copyrights, and any such use * |
9 |
; * |
; * would be at such party's own risk. The original developer of this * |
10 |
; * This program is an implementation of a part of one or more MPEG-4 |
; * software module and his/her company, and subsequent editors and their * |
11 |
; * Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
; * companies, will have no liability for use of this software or * |
12 |
; * to use this software module in hardware or software products are |
; * modifications or derivatives thereof. * |
13 |
; * advised that its use may infringe existing patents or copyrights, and |
; * * |
14 |
; * any such use would be at such party's own risk. The original |
; * XviD is free software; you can redistribute it and/or modify it * |
15 |
; * developer of this software module and his/her company, and subsequent |
; * under the terms of the GNU General Public License as published by * |
16 |
; * editors and their companies, will have no liability for use of this |
; * the Free Software Foundation; either version 2 of the License, or * |
17 |
; * software or modifications or derivatives thereof. |
; * (at your option) any later version. * |
18 |
; * |
; * * |
19 |
; * This program is free software; you can redistribute it and/or modify |
; * XviD is distributed in the hope that it will be useful, but * |
20 |
; * it under the terms of the GNU General Public License as published by |
; * WITHOUT ANY WARRANTY; without even the implied warranty of * |
21 |
; * the Free Software Foundation; either version 2 of the License, or |
; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
22 |
; * (at your option) any later version. |
; * GNU General Public License for more details. * |
23 |
; * |
; * * |
24 |
; * This program is distributed in the hope that it will be useful, |
; * You should have received a copy of the GNU General Public License * |
25 |
; * but WITHOUT ANY WARRANTY; without even the implied warranty of |
; * along with this program; if not, write to the Free Software * |
26 |
; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * |
27 |
; * GNU General Public License for more details. |
; * * |
28 |
; * |
; ******************************************************************************/ |
29 |
; * You should have received a copy of the GNU General Public License |
; |
30 |
; * along with this program; if not, write to the Free Software |
;/****************************************************************************** |
31 |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
; * * |
32 |
; * |
; * quantize4.asm, MMX optimized MPEG quantization/dequantization * |
33 |
; *************************************************************************/ |
; * * |
34 |
|
; * Copyright (C) 2002 - Peter Ross <pross@cs.rmit.edu.au> * |
35 |
|
; * Copyright (C) 2002 - Michael Militzer <isibaar@xvid.org> * |
36 |
|
; * * |
37 |
|
; * For more information visit the XviD homepage: http://www.xvid.org * |
38 |
|
; * * |
39 |
|
; ******************************************************************************/ |
40 |
|
; |
41 |
|
;/****************************************************************************** |
42 |
|
; * * |
43 |
|
; * Revision history: * |
44 |
|
; * * |
45 |
|
; * 14.06.2002 mmx dequant4_* funcs revamped -Skal- * |
46 |
|
; * 22.01.2002 initial version * |
47 |
|
; * * |
48 |
|
; ******************************************************************************/ |
49 |
|
|
50 |
; data/text alignment |
; data/text alignment |
51 |
%define ALIGN 8 |
%define ALIGN 8 |
54 |
|
|
55 |
bits 32 |
bits 32 |
56 |
|
|
57 |
section .data |
%ifdef FORMAT_COFF |
58 |
|
SECTION .data data |
59 |
|
%else |
60 |
|
SECTION .data data align=8 |
61 |
|
%endif |
62 |
|
|
63 |
|
|
64 |
%macro cglobal 1 |
%macro cglobal 1 |
65 |
%ifdef PREFIX |
%ifdef PREFIX |