Commit bd689097 authored by Michael Niedermayer's avatar Michael Niedermayer

postprocess: prefetch* dont change anything, thus their arguments should be const

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fe5093aa
...@@ -166,28 +166,28 @@ static const char * const replaceTable[]= ...@@ -166,28 +166,28 @@ static const char * const replaceTable[]=
#if ARCH_X86 && HAVE_INLINE_ASM #if ARCH_X86 && HAVE_INLINE_ASM
static inline void prefetchnta(void *p) static inline void prefetchnta(const void *p)
{ {
__asm__ volatile( "prefetchnta (%0)\n\t" __asm__ volatile( "prefetchnta (%0)\n\t"
: : "r" (p) : : "r" (p)
); );
} }
static inline void prefetcht0(void *p) static inline void prefetcht0(const void *p)
{ {
__asm__ volatile( "prefetcht0 (%0)\n\t" __asm__ volatile( "prefetcht0 (%0)\n\t"
: : "r" (p) : : "r" (p)
); );
} }
static inline void prefetcht1(void *p) static inline void prefetcht1(const void *p)
{ {
__asm__ volatile( "prefetcht1 (%0)\n\t" __asm__ volatile( "prefetcht1 (%0)\n\t"
: : "r" (p) : : "r" (p)
); );
} }
static inline void prefetcht2(void *p) static inline void prefetcht2(const void *p)
{ {
__asm__ volatile( "prefetcht2 (%0)\n\t" __asm__ volatile( "prefetcht2 (%0)\n\t"
: : "r" (p) : : "r" (p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment