1 --- SDL_gfx-2.0.21/SDL_imageFilter.c~ 2010-06-17 00:20:49.914855745 +0200
2 +++ SDL_gfx-2.0.21/SDL_imageFilter.c 2010-06-17 00:28:27.684829066 +0200
3 @@ -4280,10 +4280,10 @@
4 "mov %2, %%edx \n\t" /* initialize ROWS counter */
5 "sub $2, %%edx \n\t" /* do not use first and last row */
7 - ".L10320: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMS counter */
8 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMS counter */
9 "sub $2, %%ecx \n\t" /* do not use first and last column */
10 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
14 "movq (%%esi), %%mm1 \n\t" /* load 8 bytes of the image first row */
15 "add %%eax, %%esi \n\t" /* move one row below */
16 @@ -4324,11 +4324,11 @@
17 "inc %%edi \n\t" /* move Dest pointer to the next pixel */
19 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
20 - "jnz .L10322 \n\t" /* check loop termination, proceed if required */
21 + "jnz 2b \n\t" /* check loop termination, proceed if required */
22 "add $2, %%esi \n\t" /* move to the next row in Src */
23 "add $2, %%edi \n\t" /* move to the next row in Dest */
24 "dec %%edx \n\t" /* decrease loop counter ROWS */
25 - "jnz .L10320 \n\t" /* check loop termination, proceed if required */
26 + "jnz 1b \n\t" /* check loop termination, proceed if required */
28 "emms \n\t" /* exit MMX state */
29 "popa \n\t":"=m" (Dest) /* %0 */
30 @@ -4523,10 +4523,10 @@
31 "mov %2, %%ebx \n\t" /* initialize ROWS counter */
32 "sub $4, %%ebx \n\t" /* do not use first 2 and last 2 rows */
34 - ".L10330: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
35 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
36 "sub $4, %%ecx \n\t" /* do not use first 2 and last 2 columns */
37 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
38 - ".L10332: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
39 + "2: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
40 "movd %%esi, %%mm6 \n\t" /* save ESI in MM6 */
42 "movq (%%esi), %%mm1 \n\t" /* load 8 bytes of the Src */
43 @@ -4626,11 +4626,11 @@
44 "inc %%edi \n\t" /* move Dest pointer to the next pixel */
46 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
47 - "jnz .L10332 \n\t" /* check loop termination, proceed if required */
48 + "jnz 2b \n\t" /* check loop termination, proceed if required */
49 "add $4, %%esi \n\t" /* move to the next row in Src */
50 "add $4, %%edi \n\t" /* move to the next row in Dest */
51 "dec %%ebx \n\t" /* decrease loop counter ROWS */
52 - "jnz .L10330 \n\t" /* check loop termination, proceed if required */
53 + "jnz 1b \n\t" /* check loop termination, proceed if required */
55 "emms \n\t" /* exit MMX state */
56 "popa \n\t":"=m" (Dest) /* %0 */
57 @@ -4851,10 +4851,10 @@
58 "add %%eax, %%edi \n\t" "add %%eax, %%edi \n\t" "mov %2, %%ebx \n\t" /* initialize ROWS counter */
59 "sub $6, %%ebx \n\t" /* do not use first 3 and last 3 rows */
61 - ".L10340: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
62 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
63 "sub $6, %%ecx \n\t" /* do not use first 3 and last 3 columns */
64 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
65 - ".L10342: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
66 + "2: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
67 "movd %%esi, %%mm6 \n\t" /* save ESI in MM6 */
69 "movq (%%esi), %%mm1 \n\t" /* load 8 bytes of the Src */
70 @@ -4982,11 +4982,11 @@
71 "inc %%edi \n\t" /* move Dest pointer to the next pixel */
73 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
74 - "jnz .L10342 \n\t" /* check loop termination, proceed if required */
75 + "jnz 2b \n\t" /* check loop termination, proceed if required */
76 "add $6, %%esi \n\t" /* move to the next row in Src */
77 "add $6, %%edi \n\t" /* move to the next row in Dest */
78 "dec %%ebx \n\t" /* decrease loop counter ROWS */
79 - "jnz .L10340 \n\t" /* check loop termination, proceed if required */
80 + "jnz 1b \n\t" /* check loop termination, proceed if required */
82 "emms \n\t" /* exit MMX state */
83 "popa \n\t":"=m" (Dest) /* %0 */
84 @@ -5307,10 +5307,10 @@
85 "add %%eax, %%edi \n\t" "add %%eax, %%edi \n\t" "add %%eax, %%edi \n\t" "mov %2, %%ebx \n\t" /* initialize ROWS counter */
86 "sub $8, %%ebx \n\t" /* do not use first 4 and last 4 rows */
88 - ".L10350: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
89 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
90 "sub $8, %%ecx \n\t" /* do not use first 4 and last 4 columns */
91 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
92 - ".L10352: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
93 + "2: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
94 "movd %%esi, %%mm6 \n\t" /* save ESI in MM6 */
96 "movq (%%esi), %%mm1 \n\t" /* load 8 bytes of the Src */
97 @@ -5529,11 +5529,11 @@
98 "inc %%edi \n\t" /* move Dest pointer to the next pixel */
100 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
101 - "jnz .L10352 \n\t" /* check loop termination, proceed if required */
102 + "jnz 2b \n\t" /* check loop termination, proceed if required */
103 "add $8, %%esi \n\t" /* move to the next row in Src */
104 "add $8, %%edi \n\t" /* move to the next row in Dest */
105 "dec %%ebx \n\t" /* decrease loop counter ROWS */
106 - "jnz .L10350 \n\t" /* check loop termination, proceed if required */
107 + "jnz 1b \n\t" /* check loop termination, proceed if required */
109 "emms \n\t" /* exit MMX state */
110 "popa \n\t":"=m" (Dest) /* %0 */
111 @@ -5669,10 +5669,10 @@
112 "mov %2, %%edx \n\t" /* initialize ROWS counter */
113 "sub $2, %%edx \n\t" /* do not use first and last row */
115 - ".L10360: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMS counter */
116 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMS counter */
117 "sub $2, %%ecx \n\t" /* do not use first and last column */
118 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
122 "movq (%%esi), %%mm1 \n\t" /* load 8 bytes of the image first row */
123 "add %%eax, %%esi \n\t" /* move one row below */
124 @@ -5705,11 +5705,11 @@
125 "inc %%edi \n\t" /* move Dest pointer to the next pixel */
127 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
128 - "jnz .L10362 \n\t" /* check loop termination, proceed if required */
129 + "jnz 2b \n\t" /* check loop termination, proceed if required */
130 "add $2, %%esi \n\t" /* move to the next row in Src */
131 "add $2, %%edi \n\t" /* move to the next row in Dest */
132 "dec %%edx \n\t" /* decrease loop counter ROWS */
133 - "jnz .L10360 \n\t" /* check loop termination, proceed if required */
134 + "jnz 1b \n\t" /* check loop termination, proceed if required */
136 "emms \n\t" /* exit MMX state */
137 "popa \n\t":"=m" (Dest) /* %0 */
138 @@ -5903,10 +5903,10 @@
139 "mov %2, %%ebx \n\t" /* initialize ROWS counter */
140 "sub $4, %%ebx \n\t" /* do not use first 2 and last 2 rows */
142 - ".L10370: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
143 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
144 "sub $4, %%ecx \n\t" /* do not use first 2 and last 2 columns */
145 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
146 - ".L10372: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
147 + "2: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
148 "movd %%esi, %%mm6 \n\t" /* save ESI in MM6 */
150 "movq (%%esi), %%mm1 \n\t" /* load 8 bytes of the Src */
151 @@ -6005,11 +6005,11 @@
152 "inc %%edi \n\t" /* move Dest pointer to the next pixel */
154 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
155 - "jnz .L10372 \n\t" /* check loop termination, proceed if required */
156 + "jnz 2b \n\t" /* check loop termination, proceed if required */
157 "add $4, %%esi \n\t" /* move to the next row in Src */
158 "add $4, %%edi \n\t" /* move to the next row in Dest */
159 "dec %%ebx \n\t" /* decrease loop counter ROWS */
160 - "jnz .L10370 \n\t" /* check loop termination, proceed if required */
161 + "jnz 1b \n\t" /* check loop termination, proceed if required */
163 "emms \n\t" /* exit MMX state */
164 "popa \n\t":"=m" (Dest) /* %0 */
165 @@ -6233,10 +6233,10 @@
166 "add %%eax, %%edi \n\t" "add %%eax, %%edi \n\t" "mov %2, %%ebx \n\t" /* initialize ROWS counter */
167 "sub $6, %%ebx \n\t" /* do not use first 3 and last 3 rows */
169 - ".L10380: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
170 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
171 "sub $6, %%ecx \n\t" /* do not use first 3 and last 3 columns */
172 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
173 - ".L10382: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
174 + "2: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
175 "movd %%esi, %%mm6 \n\t" /* save ESI in MM6 */
177 "movq (%%esi), %%mm1 \n\t" /* load 8 bytes of the Src */
178 @@ -6367,11 +6367,11 @@
179 "inc %%edi \n\t" /* move Dest pointer to the next pixel */
181 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
182 - "jnz .L10382 \n\t" /* check loop termination, proceed if required */
183 + "jnz 2b \n\t" /* check loop termination, proceed if required */
184 "add $6, %%esi \n\t" /* move to the next row in Src */
185 "add $6, %%edi \n\t" /* move to the next row in Dest */
186 "dec %%ebx \n\t" /* decrease loop counter ROWS */
187 - "jnz .L10380 \n\t" /* check loop termination, proceed if required */
188 + "jnz 1b \n\t" /* check loop termination, proceed if required */
190 "emms \n\t" /* exit MMX state */
191 "popa \n\t":"=m" (Dest) /* %0 */
192 @@ -6708,10 +6708,10 @@
193 "add %%eax, %%edi \n\t" "add %%eax, %%edi \n\t" "add %%eax, %%edi \n\t" "mov %2, %%ebx \n\t" /* initialize ROWS counter */
194 "sub $8, %%ebx \n\t" /* do not use first 4 and last 4 rows */
196 - ".L10390: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
197 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMNS counter */
198 "sub $8, %%ecx \n\t" /* do not use first 4 and last 4 columns */
199 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
200 - ".L10392: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
201 + "2: \n\t" "pxor %%mm7, %%mm7 \n\t" /* zero MM7 (accumulator) */
202 "movd %%esi, %%mm6 \n\t" /* save ESI in MM6 */
204 "movq (%%esi), %%mm1 \n\t" /* load 8 bytes of the Src */
205 @@ -6946,11 +6946,11 @@
206 "inc %%edi \n\t" /* move Dest pointer to the next pixel */
208 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
209 - "jnz .L10392 \n\t" /* check loop termination, proceed if required */
210 + "jnz 2b \n\t" /* check loop termination, proceed if required */
211 "add $8, %%esi \n\t" /* move to the next row in Src */
212 "add $8, %%edi \n\t" /* move to the next row in Dest */
213 "dec %%ebx \n\t" /* decrease loop counter ROWS */
214 - "jnz .L10390 \n\t" /* check loop termination, proceed if required */
215 + "jnz 1b \n\t" /* check loop termination, proceed if required */
217 "emms \n\t" /* exit MMX state */
218 "popa \n\t":"=m" (Dest) /* %0 */
219 @@ -7116,12 +7116,12 @@
220 "mov %2, %%edx \n\t" /* initialize ROWS counter */
221 "sub $2, %%edx \n\t" /* do not use first and last rows */
223 - ".L10400: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMS counter */
224 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMS counter */
225 "shr $3, %%ecx \n\t" /* EBX/8 (MMX loads 8 bytes at a time) */
226 "mov %%esi, %%ebx \n\t" /* save ESI in EBX */
227 "movd %%edi, %%mm1 \n\t" /* save EDI in MM1 */
228 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
232 "movq (%%esi), %%mm4 \n\t" /* load 8 bytes from Src */
233 "movq %%mm4, %%mm5 \n\t" /* save MM4 in MM5 */
234 @@ -7199,13 +7199,13 @@
235 "add $8, %%edi \n\t" /* move Dest pointer to the next 8 pixels */
237 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
238 - "jnz .L10402 \n\t" /* check loop termination, proceed if required */
239 + "jnz 2b \n\t" /* check loop termination, proceed if required */
240 "mov %%ebx, %%esi \n\t" /* restore most left current row Src address */
241 "movd %%mm1, %%edi \n\t" /* restore most left current row Dest address */
242 "add %%eax, %%esi \n\t" /* move to the next row in Src */
243 "add %%eax, %%edi \n\t" /* move to the next row in Dest */
244 "dec %%edx \n\t" /* decrease loop counter ROWS */
245 - "jnz .L10400 \n\t" /* check loop termination, proceed if required */
246 + "jnz 1b \n\t" /* check loop termination, proceed if required */
248 "emms \n\t" /* exit MMX state */
249 "popa \n\t":"=m" (Dest) /* %0 */
250 @@ -7386,12 +7386,12 @@
251 /* initialize ROWS counter */
252 "subl $2, %2 \n\t" /* do not use first and last rows */
254 - ".L10410: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMS counter */
255 + "1: \n\t" "mov %%eax, %%ecx \n\t" /* initialize COLUMS counter */
256 "shr $3, %%ecx \n\t" /* EBX/8 (MMX loads 8 bytes at a time) */
257 "mov %%esi, %%ebx \n\t" /* save ESI in EBX */
258 "mov %%edi, %%edx \n\t" /* save EDI in EDX */
259 ".align 16 \n\t" /* 16 byte alignment of the loop entry */
263 "movq (%%esi), %%mm4 \n\t" /* load 8 bytes from Src */
264 "movq %%mm4, %%mm5 \n\t" /* save MM4 in MM5 */
265 @@ -7481,13 +7481,13 @@
266 "add $8, %%edi \n\t" /* move Dest pointer to the next 8 pixels */
268 "dec %%ecx \n\t" /* decrease loop counter COLUMNS */
269 - "jnz .L10412 \n\t" /* check loop termination, proceed if required */
270 + "jnz 2b \n\t" /* check loop termination, proceed if required */
271 "mov %%ebx, %%esi \n\t" /* restore most left current row Src address */
272 "mov %%edx, %%edi \n\t" /* restore most left current row Dest address */
273 "add %%eax, %%esi \n\t" /* move to the next row in Src */
274 "add %%eax, %%edi \n\t" /* move to the next row in Dest */
275 "decl %2 \n\t" /* decrease loop counter ROWS */
276 - "jnz .L10410 \n\t" /* check loop termination, proceed if required */
277 + "jnz 1b \n\t" /* check loop termination, proceed if required */
279 "emms \n\t" /* exit MMX state */
280 "popa \n\t":"=m" (Dest) /* %0 */