Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
bd68909753
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libpostproc/postprocess.c

+ 4
- 4
libpostproc/postprocess.c View File

@@ -166,28 +166,28 @@ static const char * const replaceTable[]=


#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"
: : "r" (p)
);
}

static inline void prefetcht0(void *p)
static inline void prefetcht0(const void *p)
{
__asm__ volatile( "prefetcht0 (%0)\n\t"
: : "r" (p)
);
}

static inline void prefetcht1(void *p)
static inline void prefetcht1(const void *p)
{
__asm__ volatile( "prefetcht1 (%0)\n\t"
: : "r" (p)
);
}

static inline void prefetcht2(void *p)
static inline void prefetcht2(const void *p)
{
__asm__ volatile( "prefetcht2 (%0)\n\t"
: : "r" (p)


Loading…
Cancel
Save