void put_pixels16_arm(uint8_t *block, const uint8_t *pixels, int line_size, int h);
+extern void ff_prefetch_arm(void *mem, int stride, int h);
+
CALL_2X_PIXELS(put_pixels16_x2_arm , put_pixels8_x2_arm , 8)
CALL_2X_PIXELS(put_pixels16_y2_arm , put_pixels8_y2_arm , 8)
CALL_2X_PIXELS(put_pixels16_xy2_arm, put_pixels8_xy2_arm, 8)
}
#endif
-#ifdef HAVE_ARMV5TE
-static void prefetch_arm(void *mem, int stride, int h)
-{
- __asm__ volatile(
- "1: \n\t"
- "subs %0, %0, #1 \n\t"
- "pld [%1] \n\t"
- "add %1, %1, %2 \n\t"
- "bgt 1b \n\t"
- : "+r"(h), "+r"(mem) : "r"(stride));
-}
-#endif
-
int mm_support(void)
{
return ENABLE_IWMMXT * MM_IWMMXT;
c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2_arm;
#ifdef HAVE_ARMV5TE
- c->prefetch = prefetch_arm;
+ c->prefetch = ff_prefetch_arm;
#endif
#ifdef HAVE_IWMMXT
#include "config.h"
#include "asm.S"
+ preserve8
+
#ifndef HAVE_PLD
.macro pld reg
.endm
#endif
+#ifdef HAVE_ARMV5TE
+function ff_prefetch_arm, export=1
+ subs r2, r2, #1
+ pld [r0]
+ add r0, r0, r1
+ bne ff_prefetch_arm
+ bx lr
+ .endfunc
+#endif
+
.macro ADJ_ALIGN_QUADWORD_D shift, Rd0, Rd1, Rd2, Rd3, Rn0, Rn1, Rn2, Rn3, Rn4
mov \Rd0, \Rn0, lsr #(\shift * 8)
mov \Rd1, \Rn1, lsr #(\shift * 8)