annotate mp3lib/decode_3dnow.s @ 1020:72cacd3b8f30

Solaris 8 support - patch by Marcus Comstedt <marcus@idonex.se>
author arpi_esp
date Tue, 05 Jun 2001 02:26:56 +0000
parents 3b5f5d1c5041
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 / synth_1to1_3dnow works the same way as the c version of
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 / synth_1to1. this assembler code based 'decode-i586.s'
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 / (by Stefan Bieschewski <stb@acm.org>), two types of changes
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 / have been made:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 / - use {MMX,3DNow!} instruction for reduce cpu
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 / - remove unused(?) local symbols
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 /
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 / useful sources of information on optimizing 3DNow! code include:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 / AMD 3DNow! Technology Manual (Publication #21928)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 / English: http://www.amd.com/K6/k6docs/pdf/21928d.pdf
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 / (Japanese: http://www.amd.com/japan/K6/k6docs/j21928c.pdf)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 / AMD-K6-2 Processor Code Optimization Application Note (Publication #21924)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 / English: http://www.amd.com/K6/k6docs/pdf/21924b.pdf
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 /
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 / This code was tested only AMD-K6-2 processor Linux systems,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 / please tell me:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 / - whether this code works on other 3DNow! capable processors
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 / (ex.IDT-C6-2) or not
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 / - whether this code works on other OSes or not
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 /
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 / by KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp> - until 31.Mar.1998
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 / <kim@comtec.co.jp> - after 1.Apr.1998
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 / Enhancments for q-word operation by Michael Hipp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 .bss
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 .comm buffs,4352,4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 .data
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 .align 4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 bo:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 .long 1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 .text
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 .globl synth_1to1_3dnow
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 synth_1to1_3dnow:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 subl $12,%esp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 pushl %ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 pushl %edi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 pushl %esi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 pushl %ebx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 movl 32(%esp),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 movl 40(%esp),%esi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 movl $0,%edi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 movl bo,%ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 cmpl %edi,36(%esp)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 jne .L48
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 decl %ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 andl $15,%ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 movl %ebp,bo
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 movl $buffs,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 jmp .L49
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 .L48:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 addl $2,%esi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 movl $buffs+2176,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 .L49:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 testl $1,%ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 je .L50
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 movl %ecx,%ebx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 movl %ebp,16(%esp)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 pushl %eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60 movl 20(%esp),%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 leal (%ebx,%edx,4),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 pushl %eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 movl 24(%esp),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 incl %eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 andl $15,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 leal 1088(,%eax,4),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 addl %ebx,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 jmp .L74
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69 .L50:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 leal 1088(%ecx),%ebx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 leal 1(%ebp),%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 movl %edx,16(%esp)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 pushl %eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 leal 1092(%ecx,%ebp,4),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 pushl %eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 leal (%ecx,%ebp,4),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 .L74:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 pushl %eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 call dct64_3dnow
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80 addl $12,%esp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 movl 16(%esp),%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 leal 0(,%edx,4),%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83 movl $decwin+64,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 movl %eax,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 subl %edx,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86 movl $16,%ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88 .L55:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89 movq (%ecx),%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90 movq (%ebx),%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
91 movq 8(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92 movq 8(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 pfmul %mm3,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
95 movq 16(%ecx),%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
96 pfmul %mm1,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97 movq 16(%ebx),%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
98 pfadd %mm0,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
99
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
100 movq 24(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
101 pfmul %mm2,%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
102 movq 24(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
103 pfadd %mm3,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
104
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
105 movq 32(%ecx),%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
106 pfmul %mm1,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
107 movq 32(%ebx),%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
108 pfadd %mm0,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
109
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
110 movq 40(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
111 pfmul %mm2,%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
112 movq 40(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
113 pfadd %mm3,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
114
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
115 movq 48(%ecx),%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
116 pfmul %mm1,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
117 movq 48(%ebx),%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
118 pfadd %mm0,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
119
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
120 movq 56(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
121 pfmul %mm2,%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
122 movq 56(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
123 pfadd %mm3,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
124
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
125 pfmul %mm1,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
126 pfadd %mm0,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
127
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
128 movq %mm4,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
129 psrlq $32,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
130 pfsub %mm0,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
131
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
132 pf2id %mm4,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
133 movd %mm4,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
134
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
135 sar $16,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
136 movw %ax,(%esi)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
137
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
138 addl $64,%ebx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
139 subl $-128,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
140 addl $4,%esi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
141 decl %ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
142 jnz .L55
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
143
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
144 / --- end of loop 1 ---
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
145
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
146 movd (%ecx),%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
147 movd (%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
148 pfmul %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
149
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
150 movd 8(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
151 movd 8(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
152 pfmul %mm0,%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
153 pfadd %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
154
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
155 movd 16(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
156 movd 16(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
157 pfmul %mm0,%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
158 pfadd %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
159
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
160 movd 24(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
161 movd 24(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
162 pfmul %mm0,%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
163 pfadd %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
164
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
165 movd 32(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
166 movd 32(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
167 pfmul %mm0,%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
168 pfadd %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
169
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
170 movd 40(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
171 movd 40(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
172 pfmul %mm0,%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
173 pfadd %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
174
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
175 movd 48(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
176 movd 48(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
177 pfmul %mm0,%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
178 pfadd %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
179
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
180 movd 56(%ecx),%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
181 movd 56(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
182 pfmul %mm0,%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
183 pfadd %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
184
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
185 pf2id %mm2,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
186 movd %mm2,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
187
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
188 sar $16,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
189
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
190 movw %ax,(%esi)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
191
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
192 addl $-64,%ebx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
193 addl $4,%esi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
194 addl $256,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
195 movl $15,%ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
196
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
197 .L68:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
198 psubd %mm0,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
199
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
200 movq (%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
201 movq (%ecx),%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
202 pfmul %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
203 pfsub %mm2,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
204
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
205 movq 8(%ebx),%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
206 movq 8(%ecx),%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
207 pfmul %mm3,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
208 pfsub %mm4,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
209
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
210 movq 16(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
211 movq 16(%ecx),%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
212 pfmul %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
213 pfsub %mm2,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
214
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
215 movq 24(%ebx),%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
216 movq 24(%ecx),%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
217 pfmul %mm3,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
218 pfsub %mm4,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
219
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
220 movq 32(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
221 movq 32(%ecx),%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
222 pfmul %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
223 pfsub %mm2,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
224
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
225 movq 40(%ebx),%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
226 movq 40(%ecx),%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
227 pfmul %mm3,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
228 pfsub %mm4,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
229
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
230 movq 48(%ebx),%mm1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
231 movq 48(%ecx),%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
232 pfmul %mm1,%mm2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
233 pfsub %mm2,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
234
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
235 movq 56(%ebx),%mm3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
236 movq 56(%ecx),%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
237 pfmul %mm3,%mm4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
238 pfsub %mm4,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
239
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
240 pfacc %mm0,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
241
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
242 pf2id %mm0,%mm0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
243 movd %mm0,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
244
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
245 sar $16,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
246
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
247 movw %ax,(%esi)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
248
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
249 addl $-64,%ebx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
250 subl $-128,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
251 addl $4,%esi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
252 decl %ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
253 jnz .L68
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
254
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
255 / --- end of loop 2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
257 femms
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
258
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
259 movl %edi,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
260 popl %ebx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
261 popl %esi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
262 popl %edi
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
263 popl %ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
264 addl $12,%esp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
265 ret