annotate Plugins/Input/mpg123/decode_3dnow.s @ 130:7dc049844b73 trunk

[svn] Fix libmikmod test.
author nenolod
date Wed, 09 Nov 2005 19:57:44 -0800
parents 05d824e30afd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
127
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
1 #
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
2 # decode_3dnow.s - 3DNow! optimized synth_1to1()
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
3 #
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
4 # This code based 'decode_3dnow.s' by Syuuhei Kashiyama
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
5 # <squash@mb.kcom.ne.jp>,only two types of changes have been made:
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
6 #
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
7 # - remove PREFETCH instruction for speedup
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
8 # - change function name for support 3DNow! automatic detect
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
9 # - femms moved to before 'call dct64_3dnow'
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
10 #
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
11 # You can find Kashiyama's original 3dnow! support patch
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
12 # (for mpg123-0.59o) at
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
13 # http:#/user.ecc.u-tokyo.ac.jp/~g810370/linux-simd/ (Japanese).
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
14 #
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
15 # by KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp> - until 31.Mar.1999
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
16 # <kim@comtec.co.jp> - after 1.Apr.1999
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
17 #
61
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
18
127
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
19 ##/
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
20 ##/ Replacement of synth_1to1() with AMD's 3DNow! SIMD operations support
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
21 ##/
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
22 ##/ Syuuhei Kashiyama <squash@mb.kcom.ne.jp>
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
23 ##/
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
24 ##/ The author of this program disclaim whole expressed or implied
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
25 ##/ warranties with regard to this program, and in no event shall the
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
26 ##/ author of this program liable to whatever resulted from the use of
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
27 ##/ this program. Use it at your own risk.
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
28 ##/
61
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
29
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
30 .local buffs.40
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
31 .comm buffs.40,4352,32
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
32 .data
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
33 .align 4
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
34 .type bo.42,@object
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
35 .size bo.42,4
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
36 bo.42:
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
37 .long 1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
38 .text
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
39 .globl mpg123_synth_1to1_3dnow
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
40 .type mpg123_synth_1to1_3dnow,@function
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
41 mpg123_synth_1to1_3dnow:
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
42 subl $24,%esp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
43 pushl %ebp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
44 pushl %edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
45 xorl %ebp,%ebp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
46 pushl %esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
47 pushl %ebx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
48 movl 56(%esp),%esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
49 movl 52(%esp),%edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
50 movl 0(%esi),%esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
51 movl 48(%esp),%ebx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
52 addl %edi,%esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
53 movl %esi,16(%esp)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
54
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
55 femms
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
56
127
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
57 .L25:
61
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
58 testl %ebx,%ebx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
59 jne .L26
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
60 decl bo.42
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
61 movl $buffs.40,%ecx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
62 andl $15,bo.42
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
63 jmp .L27
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
64 .L26:
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
65 addl $2,16(%esp)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
66 movl $buffs.40+2176,%ecx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
67 .L27:
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
68 movl bo.42,%edx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
69 testb $1,%dl
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
70 je .L28
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
71 movl %edx,36(%esp)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
72 movl %ecx,%ebx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
73 movl 44(%esp),%esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
74 movl %edx,%edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
75 pushl %esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
76 sall $2,%edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
77 movl %ebx,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
78 movl %edi,24(%esp)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
79 addl %edi,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
80 pushl %eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
81 movl %edx,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
82 incl %eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
83 andl $15,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
84 leal 1088(,%eax,4),%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
85 addl %ebx,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
86 pushl %eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
87 call mpg123_dct64_3dnow
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
88 addl $12,%esp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
89 jmp .L29
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
90 .L28:
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
91 leal 1(%edx),%esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
92 movl 44(%esp),%edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
93 movl %esi,36(%esp)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
94 leal 1092(%ecx,%edx,4),%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
95 pushl %edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
96 leal 1088(%ecx),%ebx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
97 pushl %eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
98 sall $2,%esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
99 leal (%ecx,%edx,4),%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
100 pushl %eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
101 call mpg123_dct64_3dnow
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
102 addl $12,%esp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
103 movl %esi,20(%esp)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
104 .L29:
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
105 movl $mpg123_decwin+64,%edx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
106 movl $16,%ecx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
107 subl 20(%esp),%edx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
108 movl 16(%esp),%edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
109
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
110 movq (%edx),%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
111 movq (%ebx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
112 .align 32
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
113 .L33:
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
114 movq 8(%edx),%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
115 pfmul %mm1,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
116 movq 8(%ebx),%mm4
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
117 movq 16(%edx),%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
118 pfmul %mm4,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
119 movq 16(%ebx),%mm6
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
120 pfadd %mm3,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
121 movq 24(%edx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
122 pfmul %mm6,%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
123 movq 24(%ebx),%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
124 pfadd %mm5,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
125 movq 32(%edx),%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
126 pfmul %mm2,%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
127 movq 32(%ebx),%mm4
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
128 pfadd %mm1,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
129 movq 40(%edx),%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
130 pfmul %mm4,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
131 movq 40(%ebx),%mm6
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
132 pfadd %mm3,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
133 movq 48(%edx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
134 pfmul %mm6,%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
135 movq 48(%ebx),%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
136 pfadd %mm0,%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
137 movq 56(%edx),%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
138 pfmul %mm1,%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
139 movq 56(%ebx),%mm4
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
140 pfadd %mm5,%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
141 addl $64,%ebx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
142 subl $-128,%edx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
143 movq (%edx),%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
144 pfmul %mm4,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
145 movq (%ebx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
146 pfadd %mm3,%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
147 movq %mm2,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
148 psrlq $32,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
149 pfsub %mm3,%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
150 incl %ebp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
151 pf2id %mm2,%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
152 packssdw %mm2,%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
153 movd %mm2,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
154 movw %ax,0(%edi)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
155 addl $4,%edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
156 decl %ecx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
157 jnz .L33
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
158
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
159 movd (%ebx),%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
160 movd (%edx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
161 punpckldq 8(%ebx),%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
162 punpckldq 8(%edx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
163 movd 16(%ebx),%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
164 movd 16(%edx),%mm4
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
165 pfmul %mm1,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
166 punpckldq 24(%ebx),%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
167 punpckldq 24(%edx),%mm4
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
168 movd 32(%ebx),%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
169 movd 32(%edx),%mm6
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
170 pfmul %mm4,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
171 punpckldq 40(%ebx),%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
172 punpckldq 40(%edx),%mm6
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
173 pfadd %mm3,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
174 movd 48(%ebx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
175 movd 48(%edx),%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
176 pfmul %mm6,%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
177 punpckldq 56(%ebx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
178 punpckldq 56(%edx),%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
179 pfadd %mm5,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
180 pfmul %mm2,%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
181 pfadd %mm1,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
182 pfacc %mm1,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
183 pf2id %mm0,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
184 packssdw %mm0,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
185 movd %mm0,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
186 movw %ax,0(%edi)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
187 incl %ebp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
188 movl 36(%esp),%esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
189 addl $-64,%ebx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
190 movl $15,%ebp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
191 addl $4,%edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
192 leal -128(%edx,%esi,8),%edx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
193
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
194 movl $15,%ecx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
195 movd (%ebx),%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
196 movd -4(%edx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
197 punpckldq 4(%ebx),%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
198 punpckldq -8(%edx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
199 .align 32
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
200 .L46:
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
201 movd 8(%ebx),%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
202 movd -12(%edx),%mm4
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
203 pfmul %mm1,%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
204 punpckldq 12(%ebx),%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
205 punpckldq -16(%edx),%mm4
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
206 movd 16(%ebx),%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
207 movd -20(%edx),%mm6
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
208 pfmul %mm4,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
209 punpckldq 20(%ebx),%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
210 punpckldq -24(%edx),%mm6
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
211 pfadd %mm3,%mm0
127
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
212 movd 24(%ebx),%mm1
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
213 movd -28(%edx),%mm2
61
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
214 pfmul %mm6,%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
215 punpckldq 28(%ebx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
216 punpckldq -32(%edx),%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
217 pfadd %mm5,%mm0
127
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
218 movd 32(%ebx),%mm3
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
219 movd -36(%edx),%mm4
61
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
220 pfmul %mm2,%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
221 punpckldq 36(%ebx),%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
222 punpckldq -40(%edx),%mm4
127
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
223 pfadd %mm1,%mm0
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
224 movd 40(%ebx),%mm5
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
225 movd -44(%edx),%mm6
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
226 pfmul %mm4,%mm3
61
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
227 punpckldq 44(%ebx),%mm5
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
228 punpckldq -48(%edx),%mm6
127
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
229 pfadd %mm3,%mm0
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
230 movd 48(%ebx),%mm1
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
231 movd -52(%edx),%mm2
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
232 pfmul %mm6,%mm5
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
233 punpckldq 52(%ebx),%mm1
61
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
234 punpckldq -56(%edx),%mm2
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
235 pfadd %mm0,%mm5
127
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
236 movd 56(%ebx),%mm3
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
237 movd -60(%edx),%mm4
61
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
238 pfmul %mm2,%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
239 punpckldq 60(%ebx),%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
240 punpckldq (%edx),%mm4
127
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
241 pfadd %mm1,%mm5
05d824e30afd [svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
nenolod
parents: 61
diff changeset
242 addl $-128,%edx
61
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
243 addl $-64,%ebx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
244 movd (%ebx),%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
245 movd -4(%edx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
246 pfmul %mm4,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
247 punpckldq 4(%ebx),%mm0
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
248 punpckldq -8(%edx),%mm1
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
249 pfadd %mm5,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
250 pfacc %mm3,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
251 incl %ebp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
252 pf2id %mm3,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
253 movd %mm3,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
254 negl %eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
255 movd %eax,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
256 packssdw %mm3,%mm3
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
257 movd %mm3,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
258 movw %ax,(%edi)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
259 addl $4,%edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
260 decl %ecx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
261 jnz .L46
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
262
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
263 femms
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
264 movl 56(%esp),%esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
265 movl %ebp,%eax
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
266 subl $-128,0(%esi)
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
267 popl %ebx
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
268 popl %esi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
269 popl %edi
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
270 popl %ebp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
271 addl $24,%esp
fa848bd484d8 [svn] Move plugins to Plugins/
nenolod
parents:
diff changeset
272 ret