[cvs] / xvidcore / src / dct / x86_64_asm / fdct_mmx_skal.asm Repository:
ViewVC logotype

Annotation of /xvidcore/src/dct/x86_64_asm/fdct_mmx_skal.asm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (view) (download)

1 : edgomez 1.1 ;/****************************************************************************
2 :     ; *
3 :     ; * XVID MPEG-4 VIDEO CODEC
4 :     ; * - MMX and XMM forward discrete cosine transform -
5 :     ; *
6 :     ; * Copyright(C) 2002 Pascal Massimino <skal@planet-d.net>
7 :     ; * 2004 Andre Werthmann <wertmann@aei.mpg.de>
8 :     ; *
9 :     ; * This program is free software; you can redistribute it and/or modify it
10 :     ; * under the terms of the GNU General Public License as published by
11 :     ; * the Free Software Foundation; either version 2 of the License, or
12 :     ; * (at your option) any later version.
13 :     ; *
14 :     ; * This program is distributed in the hope that it will be useful,
15 :     ; * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 :     ; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 :     ; * GNU General Public License for more details.
18 :     ; *
19 :     ; * You should have received a copy of the GNU General Public License
20 :     ; * along with this program; if not, write to the Free Software
21 :     ; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 :     ; *
23 : Isibaar 1.4 ; * $Id: fdct_mmx_skal.asm,v 1.3 2008/11/11 20:46:24 Isibaar Exp $
24 : edgomez 1.1 ; *
25 :     ; ***************************************************************************/
26 :    
27 :     BITS 64
28 :    
29 :     %macro cglobal 1
30 :     %ifdef PREFIX
31 :     %ifdef MARK_FUNCS
32 :     global _%1:function %1.endfunc-%1
33 :     %define %1 _%1:function %1.endfunc-%1
34 : Isibaar 1.3 %define ENDFUNC .endfunc
35 : edgomez 1.1 %else
36 :     global _%1
37 :     %define %1 _%1
38 : Isibaar 1.3 %define ENDFUNC
39 : edgomez 1.1 %endif
40 :     %else
41 :     %ifdef MARK_FUNCS
42 :     global %1:function %1.endfunc-%1
43 : Isibaar 1.3 %define ENDFUNC .endfunc
44 : edgomez 1.1 %else
45 :     global %1
46 : Isibaar 1.3 %define ENDFUNC
47 : edgomez 1.1 %endif
48 :     %endif
49 :     %endmacro
50 :    
51 :     ;;; Define this if you want an unrolled version of the code
52 :     %define UNROLLED_LOOP
53 :    
54 :     ;=============================================================================
55 :     ;
56 :     ; Vertical pass is an implementation of the scheme:
57 :     ; Loeffler C., Ligtenberg A., and Moschytz C.S.:
58 :     ; Practical Fast 1D DCT Algorithm with Eleven Multiplications,
59 :     ; Proc. ICASSP 1989, 988-991.
60 :     ;
61 :     ; Horizontal pass is a double 4x4 vector/matrix multiplication,
62 :     ; (see also Intel's Application Note 922:
63 :     ; http://developer.intel.com/vtune/cbts/strmsimd/922down.htm
64 :     ; Copyright (C) 1999 Intel Corporation)
65 :     ;
66 :     ; Notes:
67 :     ; * tan(3pi/16) is greater than 0.5, and would use the
68 :     ; sign bit when turned into 16b fixed-point precision. So,
69 :     ; we use the trick: x*tan3 = x*(tan3-1)+x
70 :     ;
71 :     ; * There's only one SSE-specific instruction (pshufw).
72 :     ; Porting to SSE2 also seems straightforward.
73 :     ;
74 :     ; * There's still 1 or 2 ticks to save in fLLM_PASS, but
75 :     ; I prefer having a readable code, instead of a tightly
76 :     ; scheduled one...
77 :     ;
78 :     ; * Quantization stage (as well as pre-transposition for the
79 :     ; idct way back) can be included in the fTab* constants
80 :     ; (with induced loss of precision, somehow)
81 :     ;
82 :     ; * Some more details at: http://skal.planet-d.net/coding/dct.html
83 :     ;
84 :     ;=============================================================================
85 :     ;
86 :     ; idct-like IEEE errors:
87 :     ;
88 :     ; =========================
89 :     ; Peak error: 1.0000
90 :     ; Peak MSE: 0.0365
91 :     ; Overall MSE: 0.0201
92 :     ; Peak ME: 0.0265
93 :     ; Overall ME: 0.0006
94 :     ;
95 :     ; == Mean square errors ==
96 :     ; 0.000 0.001 0.001 0.002 0.000 0.002 0.001 0.000 [0.001]
97 :     ; 0.035 0.029 0.032 0.032 0.031 0.032 0.034 0.035 [0.032]
98 :     ; 0.026 0.028 0.027 0.027 0.025 0.028 0.028 0.025 [0.027]
99 :     ; 0.037 0.032 0.031 0.030 0.028 0.029 0.026 0.031 [0.030]
100 :     ; 0.000 0.001 0.001 0.002 0.000 0.002 0.001 0.001 [0.001]
101 :     ; 0.025 0.024 0.022 0.022 0.022 0.022 0.023 0.023 [0.023]
102 :     ; 0.026 0.028 0.025 0.028 0.030 0.025 0.026 0.027 [0.027]
103 :     ; 0.021 0.020 0.020 0.022 0.020 0.022 0.017 0.019 [0.020]
104 :     ;
105 :     ; == Abs Mean errors ==
106 :     ; 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 [0.000]
107 :     ; 0.020 0.001 0.003 0.003 0.000 0.004 0.002 0.003 [0.002]
108 :     ; 0.000 0.001 0.001 0.001 0.001 0.004 0.000 0.000 [0.000]
109 :     ; 0.027 0.001 0.000 0.002 0.002 0.002 0.001 0.000 [0.003]
110 :     ; 0.000 0.000 0.000 0.000 0.000 0.001 0.000 0.001 [-0.000]
111 :     ; 0.001 0.003 0.001 0.001 0.002 0.001 0.000 0.000 [-0.000]
112 :     ; 0.000 0.002 0.002 0.001 0.001 0.002 0.001 0.000 [-0.000]
113 :     ; 0.000 0.002 0.001 0.002 0.001 0.002 0.001 0.001 [-0.000]
114 :     ;
115 :     ;=============================================================================
116 :    
117 :     ;=============================================================================
118 :     ; Read only data
119 :     ;=============================================================================
120 :    
121 :     %ifdef FORMAT_COFF
122 :     SECTION .rodata
123 :     %else
124 :     SECTION .rodata align=16
125 :     %endif
126 :    
127 :     ALIGN 16
128 :     tan1:
129 :     dw 0x32ec,0x32ec,0x32ec,0x32ec ; tan( pi/16)
130 :     tan2:
131 :     dw 0x6a0a,0x6a0a,0x6a0a,0x6a0a ; tan(2pi/16) (=sqrt(2)-1)
132 :     tan3:
133 :     dw 0xab0e,0xab0e,0xab0e,0xab0e ; tan(3pi/16)-1
134 :     sqrt2:
135 :     dw 0x5a82,0x5a82,0x5a82,0x5a82 ; 0.5/sqrt(2)
136 :    
137 :     ALIGN 16
138 :     fdct_table:
139 :     ;fTab1:
140 :     dw 0x4000, 0x4000, 0x58c5, 0x4b42
141 :     dw 0x4000, 0x4000, 0x3249, 0x11a8
142 :     dw 0x539f, 0x22a3, 0x4b42, 0xee58
143 :     dw 0xdd5d, 0xac61, 0xa73b, 0xcdb7
144 :     dw 0x4000, 0xc000, 0x3249, 0xa73b
145 :     dw 0xc000, 0x4000, 0x11a8, 0x4b42
146 :     dw 0x22a3, 0xac61, 0x11a8, 0xcdb7
147 :     dw 0x539f, 0xdd5d, 0x4b42, 0xa73b
148 :    
149 :     ;fTab2:
150 :     dw 0x58c5, 0x58c5, 0x7b21, 0x6862
151 :     dw 0x58c5, 0x58c5, 0x45bf, 0x187e
152 :     dw 0x73fc, 0x300b, 0x6862, 0xe782
153 :     dw 0xcff5, 0x8c04, 0x84df, 0xba41
154 :     dw 0x58c5, 0xa73b, 0x45bf, 0x84df
155 :     dw 0xa73b, 0x58c5, 0x187e, 0x6862
156 :     dw 0x300b, 0x8c04, 0x187e, 0xba41
157 :     dw 0x73fc, 0xcff5, 0x6862, 0x84df
158 :    
159 :     ;fTab3:
160 :     dw 0x539f, 0x539f, 0x73fc, 0x6254
161 :     dw 0x539f, 0x539f, 0x41b3, 0x1712
162 :     dw 0x6d41, 0x2d41, 0x6254, 0xe8ee
163 :     dw 0xd2bf, 0x92bf, 0x8c04, 0xbe4d
164 :     dw 0x539f, 0xac61, 0x41b3, 0x8c04
165 :     dw 0xac61, 0x539f, 0x1712, 0x6254
166 :     dw 0x2d41, 0x92bf, 0x1712, 0xbe4d
167 :     dw 0x6d41, 0xd2bf, 0x6254, 0x8c04
168 :    
169 :     ;fTab4:
170 :     dw 0x4b42, 0x4b42, 0x6862, 0x587e
171 :     dw 0x4b42, 0x4b42, 0x3b21, 0x14c3
172 :     dw 0x6254, 0x28ba, 0x587e, 0xeb3d
173 :     dw 0xd746, 0x9dac, 0x979e, 0xc4df
174 :     dw 0x4b42, 0xb4be, 0x3b21, 0x979e
175 :     dw 0xb4be, 0x4b42, 0x14c3, 0x587e
176 :     dw 0x28ba, 0x9dac, 0x14c3, 0xc4df
177 :     dw 0x6254, 0xd746, 0x587e, 0x979e
178 :    
179 :     ;fTab1:
180 :     dw 0x4000, 0x4000, 0x58c5, 0x4b42
181 :     dw 0x4000, 0x4000, 0x3249, 0x11a8
182 :     dw 0x539f, 0x22a3, 0x4b42, 0xee58
183 :     dw 0xdd5d, 0xac61, 0xa73b, 0xcdb7
184 :     dw 0x4000, 0xc000, 0x3249, 0xa73b
185 :     dw 0xc000, 0x4000, 0x11a8, 0x4b42
186 :     dw 0x22a3, 0xac61, 0x11a8, 0xcdb7
187 :     dw 0x539f, 0xdd5d, 0x4b42, 0xa73b
188 :    
189 :     ;fTab4:
190 :     dw 0x4b42, 0x4b42, 0x6862, 0x587e
191 :     dw 0x4b42, 0x4b42, 0x3b21, 0x14c3
192 :     dw 0x6254, 0x28ba, 0x587e, 0xeb3d
193 :     dw 0xd746, 0x9dac, 0x979e, 0xc4df
194 :     dw 0x4b42, 0xb4be, 0x3b21, 0x979e
195 :     dw 0xb4be, 0x4b42, 0x14c3, 0x587e
196 :     dw 0x28ba, 0x9dac, 0x14c3, 0xc4df
197 :     dw 0x6254, 0xd746, 0x587e, 0x979e
198 :    
199 :     ;fTab3:
200 :     dw 0x539f, 0x539f, 0x73fc, 0x6254
201 :     dw 0x539f, 0x539f, 0x41b3, 0x1712
202 :     dw 0x6d41, 0x2d41, 0x6254, 0xe8ee
203 :     dw 0xd2bf, 0x92bf, 0x8c04, 0xbe4d
204 :     dw 0x539f, 0xac61, 0x41b3, 0x8c04
205 :     dw 0xac61, 0x539f, 0x1712, 0x6254
206 :     dw 0x2d41, 0x92bf, 0x1712, 0xbe4d
207 :     dw 0x6d41, 0xd2bf, 0x6254, 0x8c04
208 :    
209 :     ;fTab2:
210 :     dw 0x58c5, 0x58c5, 0x7b21, 0x6862
211 :     dw 0x58c5, 0x58c5, 0x45bf, 0x187e
212 :     dw 0x73fc, 0x300b, 0x6862, 0xe782
213 :     dw 0xcff5, 0x8c04, 0x84df, 0xba41
214 :     dw 0x58c5, 0xa73b, 0x45bf, 0x84df
215 :     dw 0xa73b, 0x58c5, 0x187e, 0x6862
216 :     dw 0x300b, 0x8c04, 0x187e, 0xba41
217 :     dw 0x73fc, 0xcff5, 0x6862, 0x84df
218 :    
219 :     ALIGN 16
220 :     fdct_rounding_1:
221 :     dw 6, 8, 8, 8
222 :     dw 10, 8, 8, 8
223 :     dw 8, 8, 8, 8
224 :     dw 8, 8, 8, 8
225 :     dw 6, 8, 8, 8
226 :     dw 8, 8, 8, 8
227 :     dw 8, 8, 8, 8
228 :     dw 8, 8, 8, 8
229 :    
230 :     ALIGN 16
231 :     fdct_rounding_2:
232 :     dw 6, 8, 8, 8
233 :     dw 8, 8, 8, 8
234 :     dw 8, 8, 8, 8
235 :     dw 8, 8, 8, 8
236 :     dw 6, 8, 8, 8
237 :     dw 8, 8, 8, 8
238 :     dw 8, 8, 8, 8
239 :     dw 8, 8, 8, 8
240 :    
241 :     ALIGN 16
242 :     MMX_One:
243 :     dw 1, 1, 1, 1
244 :    
245 :     ;=============================================================================
246 :     ; Helper Macros for real code
247 :     ;=============================================================================
248 :    
249 :     ;-----------------------------------------------------------------------------
250 :     ; FDCT LLM vertical pass (~39c)
251 :     ; %1=dst, %2=src, %3:Shift
252 :     ;-----------------------------------------------------------------------------
253 :    
254 :     %macro fLLM_PASS 3
255 :     movq mm0, [%2+0*16] ; In0
256 :     movq mm2, [%2+2*16] ; In2
257 :     movq mm3, mm0
258 :     movq mm4, mm2
259 :     movq mm7, [%2+7*16] ; In7
260 :     movq mm5, [%2+5*16] ; In5
261 :    
262 :     psubsw mm0, mm7 ; t7 = In0-In7
263 :     paddsw mm7, mm3 ; t0 = In0+In7
264 :     psubsw mm2, mm5 ; t5 = In2-In5
265 :     paddsw mm5, mm4 ; t2 = In2+In5
266 :    
267 :     movq mm3, [%2+3*16] ; In3
268 :     movq mm4, [%2+4*16] ; In4
269 :     movq mm1, mm3
270 :     psubsw mm3, mm4 ; t4 = In3-In4
271 :     paddsw mm4, mm1 ; t3 = In3+In4
272 :     movq mm6, [%2+6*16] ; In6
273 :     movq mm1, [%2+1*16] ; In1
274 :     psubsw mm1, mm6 ; t6 = In1-In6
275 :     paddsw mm6, [%2+1*16] ; t1 = In1+In6
276 :    
277 :     psubsw mm7, mm4 ; tm03 = t0-t3
278 :     psubsw mm6, mm5 ; tm12 = t1-t2
279 :     paddsw mm4, mm4 ; 2.t3
280 :     paddsw mm5, mm5 ; 2.t2
281 :     paddsw mm4, mm7 ; tp03 = t0+t3
282 :     paddsw mm5, mm6 ; tp12 = t1+t2
283 :    
284 :     psllw mm2, %3+1 ; shift t5 (shift +1 to..
285 :     psllw mm1, %3+1 ; shift t6 ..compensate cos4/2)
286 :     psllw mm4, %3 ; shift t3
287 :     psllw mm5, %3 ; shift t2
288 :     psllw mm7, %3 ; shift t0
289 :     psllw mm6, %3 ; shift t1
290 :     psllw mm3, %3 ; shift t4
291 :     psllw mm0, %3 ; shift t7
292 :    
293 :     psubsw mm4, mm5 ; out4 = tp03-tp12
294 :     psubsw mm1, mm2 ; mm1: t6-t5
295 :     paddsw mm5, mm5
296 :     paddsw mm2, mm2
297 :     paddsw mm5, mm4 ; out0 = tp03+tp12
298 :     movq [%1+4*16], mm4 ; => out4
299 :     paddsw mm2, mm1 ; mm2: t6+t5
300 :     movq [%1+0*16], mm5 ; => out0
301 :    
302 :     movq mm4, [tan2 wrt rip] ; mm4 <= tan2
303 :     pmulhw mm4, mm7 ; tm03*tan2
304 :     movq mm5, [tan2 wrt rip] ; mm5 <= tan2
305 :     psubsw mm4, mm6 ; out6 = tm03*tan2 - tm12
306 :     pmulhw mm5, mm6 ; tm12*tan2
307 :     paddsw mm5, mm7 ; out2 = tm12*tan2 + tm03
308 :    
309 :     movq mm6, [sqrt2 wrt rip]
310 :     movq mm7, [MMX_One wrt rip]
311 :    
312 :     pmulhw mm2, mm6 ; mm2: tp65 = (t6 + t5)*cos4
313 :     por mm5, mm7 ; correct out2
314 :     por mm4, mm7 ; correct out6
315 :     pmulhw mm1, mm6 ; mm1: tm65 = (t6 - t5)*cos4
316 :     por mm2, mm7 ; correct tp65
317 :    
318 :     movq [%1+2*16], mm5 ; => out2
319 :     movq mm5, mm3 ; save t4
320 :     movq [%1+6*16], mm4 ; => out6
321 :     movq mm4, mm0 ; save t7
322 :    
323 :     psubsw mm3, mm1 ; mm3: tm465 = t4 - tm65
324 :     psubsw mm0, mm2 ; mm0: tm765 = t7 - tp65
325 :     paddsw mm2, mm4 ; mm2: tp765 = t7 + tp65
326 :     paddsw mm1, mm5 ; mm1: tp465 = t4 + tm65
327 :    
328 :     movq mm4, [tan3 wrt rip] ; tan3 - 1
329 :     movq mm5, [tan1 wrt rip] ; tan1
330 :    
331 :     movq mm7, mm3 ; save tm465
332 :     pmulhw mm3, mm4 ; tm465*(tan3-1)
333 :     movq mm6, mm1 ; save tp465
334 :     pmulhw mm1, mm5 ; tp465*tan1
335 :    
336 :     paddsw mm3, mm7 ; tm465*tan3
337 :     pmulhw mm4, mm0 ; tm765*(tan3-1)
338 :     paddsw mm4, mm0 ; tm765*tan3
339 :     pmulhw mm5, mm2 ; tp765*tan1
340 :    
341 :     paddsw mm1, mm2 ; out1 = tp765 + tp465*tan1
342 :     psubsw mm0, mm3 ; out3 = tm765 - tm465*tan3
343 :     paddsw mm7, mm4 ; out5 = tm465 + tm765*tan3
344 :     psubsw mm5, mm6 ; out7 =-tp465 + tp765*tan1
345 :    
346 :     movq [%1+1*16], mm1 ; => out1
347 :     movq [%1+3*16], mm0 ; => out3
348 :     movq [%1+5*16], mm7 ; => out5
349 :     movq [%1+7*16], mm5 ; => out7
350 :     %endmacro
351 :    
352 :     ;-----------------------------------------------------------------------------
353 :     ; fMTX_MULT_XMM (~20c)
354 :     ; %1=dst, %2=src, %3 = Coeffs, %4/%5=rounders
355 :     ;-----------------------------------------------------------------------------
356 :    
357 :     %macro fMTX_MULT_XMM 5
358 :     movq mm0, [%2 + 0] ; mm0 = [0123]
359 :     ; the 'pshufw' below is the only SSE instruction.
360 :     ; For MMX-only version, it should be emulated with
361 :     ; some 'punpck' soup...
362 :     pshufw mm1, [%2 + 8], 00011011b ; mm1 = [7654]
363 :     movq mm7, mm0
364 :    
365 :     paddsw mm0, mm1 ; mm0 = [a0 a1 a2 a3]
366 :     psubsw mm7, mm1 ; mm7 = [b0 b1 b2 b3]
367 :    
368 :     movq mm1, mm0
369 :     punpckldq mm0, mm7 ; mm0 = [a0 a1 b0 b1]
370 :     punpckhdq mm1, mm7 ; mm1 = [b2 b3 a2 a3]
371 :    
372 :     movq mm2, qword [%3 + 0] ; [ M00 M01 M16 M17]
373 :     movq mm3, qword [%3 + 8] ; [ M02 M03 M18 M19]
374 :     pmaddwd mm2, mm0 ; [a0.M00+a1.M01 | b0.M16+b1.M17]
375 :     movq mm4, qword [%3 + 16] ; [ M04 M05 M20 M21]
376 :     pmaddwd mm3, mm1 ; [a2.M02+a3.M03 | b2.M18+b3.M19]
377 :     movq mm5, qword [%3 + 24] ; [ M06 M07 M22 M23]
378 :     pmaddwd mm4, mm0 ; [a0.M04+a1.M05 | b0.M20+b1.M21]
379 :     movq mm6, qword [%3 + 32] ; [ M08 M09 M24 M25]
380 :     pmaddwd mm5, mm1 ; [a2.M06+a3.M07 | b2.M22+b3.M23]
381 :     movq mm7, qword [%3 + 40] ; [ M10 M11 M26 M27]
382 :     pmaddwd mm6, mm0 ; [a0.M08+a1.M09 | b0.M24+b1.M25]
383 :     paddd mm2, mm3 ; [ out0 | out1 ]
384 :     pmaddwd mm7, mm1 ; [a0.M10+a1.M11 | b0.M26+b1.M27]
385 :     psrad mm2, 16
386 :     pmaddwd mm0, qword [%3 + 48] ; [a0.M12+a1.M13 | b0.M28+b1.M29]
387 :     paddd mm4, mm5 ; [ out2 | out3 ]
388 :     pmaddwd mm1, qword [%3 + 56] ; [a0.M14+a1.M15 | b0.M30+b1.M31]
389 :     psrad mm4, 16
390 :    
391 :     paddd mm6, mm7 ; [ out4 | out5 ]
392 :     psrad mm6, 16
393 :     paddd mm0, mm1 ; [ out6 | out7 ]
394 :     psrad mm0, 16
395 :    
396 :     packssdw mm2, mm4 ; [ out0|out1|out2|out3 ]
397 :     paddsw mm2, [%4] ; Round
398 :     packssdw mm6, mm0 ; [ out4|out5|out6|out7 ]
399 :     paddsw mm6, [%5] ; Round
400 :    
401 :     psraw mm2, 4 ; => [-2048, 2047]
402 :     psraw mm6, 4
403 :    
404 :     movq [%1 + 0], mm2
405 :     movq [%1 + 8], mm6
406 :     %endmacro
407 :    
408 :     ;-----------------------------------------------------------------------------
409 :     ; MAKE_FDCT_FUNC
410 :     ; %1 funcname, %2 macro for row dct
411 :     ;-----------------------------------------------------------------------------
412 :    
413 :     %macro MAKE_FDCT_FUNC 2
414 :     ALIGN 16
415 :     cglobal %1
416 :     %1:
417 :     %ifdef UNROLLED_LOOP
418 :     mov rcx, rdi ; fist arg
419 :     %else
420 :     push rbx
421 :     mov rcx, rdi ; first arg too
422 :     %endif
423 :    
424 :     fLLM_PASS rcx+0, rcx+0, 3
425 :     fLLM_PASS rcx+8, rcx+8, 3
426 :    
427 :     %ifdef UNROLLED_LOOP
428 :     lea rsi, [fdct_table wrt rip]
429 :     lea rdi, [fdct_rounding_1 wrt rip]
430 :     lea rax, [fdct_rounding_2 wrt rip]
431 :     %assign i 0
432 :     %rep 8
433 :     %2 rcx+i*16, rcx+i*16, rsi+i*64, rdi+i*8, rax+i*8
434 :     %assign i i+1
435 :     %endrep
436 :     %else
437 :     mov rax, 8
438 :     lea rdx, [fdct_table wrt rip] ; load offset, pic code
439 :     lea rbx, [fdct_rounding_1 wrt rip] ; same
440 :     lea rdi, [fdct_rounding_2 wrt rip] ; same too
441 : Isibaar 1.3 .loop:
442 : edgomez 1.1 %2 rcx, rcx, rdx, rbx, rdi
443 :     add rcx, 2*8
444 :     add rdx, 2*32
445 :     add rbx, 2*4
446 :     add rdi, 2*4
447 :     dec rax
448 :     jne .loop
449 :    
450 :     pop rbx
451 :     %endif
452 :    
453 :     ret
454 : Isibaar 1.3 ENDFUNC
455 : edgomez 1.1 %endmacro
456 :    
457 :     ;=============================================================================
458 :     ; Code
459 :     ;=============================================================================
460 :    
461 :     SECTION .text align=16
462 :    
463 :     ;-----------------------------------------------------------------------------
464 :     ; void fdct_xmm_skal(int16_t block[64]];
465 :     ;-----------------------------------------------------------------------------
466 :    
467 :     MAKE_FDCT_FUNC fdct_skal_x86_64, fMTX_MULT_XMM
468 : Isibaar 1.2
469 :     %ifidn __OUTPUT_FORMAT__,elf
470 :     section ".note.GNU-stack" noalloc noexec nowrite progbits
471 :     %endif
472 :    

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4