diff options
Diffstat (limited to 'apps/codecs/Tremor/asm_mcf5249.h')
-rw-r--r-- | apps/codecs/Tremor/asm_mcf5249.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/apps/codecs/Tremor/asm_mcf5249.h b/apps/codecs/Tremor/asm_mcf5249.h index 7d366fa9ca..fd816a2e9b 100644 --- a/apps/codecs/Tremor/asm_mcf5249.h +++ b/apps/codecs/Tremor/asm_mcf5249.h | |||
@@ -306,39 +306,6 @@ void vect_mult_bw(ogg_int32_t *data, LOOKUP_T *window, int n) | |||
306 | "cc", "memory"); | 306 | "cc", "memory"); |
307 | } | 307 | } |
308 | 308 | ||
309 | #if 0 | ||
310 | /* this routine is subsumed by Jens' asm optimised memset which appears | ||
311 | to be more efficient anyway; will eventually be deleted */ | ||
312 | static inline | ||
313 | void mcf5249_vect_zero(ogg_int32_t *ptr, int n) | ||
314 | { | ||
315 | /* ensure ptr is aligned to 16-bytes */ | ||
316 | while(n>0 && (int)ptr%16) { | ||
317 | *ptr++ = 0; | ||
318 | n--; | ||
319 | } | ||
320 | asm volatile ("clr.l %%d0;" | ||
321 | "clr.l %%d1;" | ||
322 | "clr.l %%d2;" | ||
323 | "clr.l %%d3;" | ||
324 | /* loop start */ | ||
325 | "tst.l %[n];" | ||
326 | "bra 1f;" | ||
327 | "0: movem.l %%d0-%%d3, (%[ptr]);" | ||
328 | "lea (4*4, %[ptr]), %[ptr];" | ||
329 | "subq.l #4, %[n];" /* done 4 elements */ | ||
330 | "1: bgt 0b;" | ||
331 | : [n] "+d" (n), [ptr] "+a" (ptr) | ||
332 | : | ||
333 | : "%d0","%d1","%d2","%d3","cc","memory"); | ||
334 | /* clear remaining elements */ | ||
335 | while(n>0) { | ||
336 | *ptr++ = 0; | ||
337 | n--; | ||
338 | } | ||
339 | } | ||
340 | #endif | ||
341 | |||
342 | #endif | 309 | #endif |
343 | 310 | ||
344 | #endif | 311 | #endif |