summaryrefslogtreecommitdiff
path: root/libpostproc/postprocess.c
diff options
context:
space:
mode:
authorTucker DiNapoli <t.dinapoli42@gmail.com>2015-04-22 16:27:26 -0400
committerMichael Niedermayer <michaelni@gmx.at>2015-04-22 23:32:35 +0200
commit6264b6227c779af9d2520722f6acb45a2c51cdfd (patch)
treed9f6dada4bb2b2774c1c9344f85001a3d703793c /libpostproc/postprocess.c
parent748d4816d92c735f662c7ac299e79ff0f6fe252e (diff)
postproc: Replaced inline asm for prefetching with prefetch functions
Prefetching functions are defined in postprocess_template using the RENAME macro so that prefetching is used when available. For x86 targets inline asm is used and the functions are non-empty only for cpus where prefetching is available. For non x86 targets the gcc bultin prefetch is used if it is available, otherwise no prefetching is done. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc/postprocess.c')
-rw-r--r--libpostproc/postprocess.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index 9d8978204e..af70bb3eeb 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -168,37 +168,6 @@ static const char * const replaceTable[]=
NULL //End Marker
};
-
-#if ARCH_X86 && HAVE_INLINE_ASM
-static inline void prefetchnta(const void *p)
-{
- __asm__ volatile( "prefetchnta (%0)\n\t"
- : : "r" (p)
- );
-}
-
-static inline void prefetcht0(const void *p)
-{
- __asm__ volatile( "prefetcht0 (%0)\n\t"
- : : "r" (p)
- );
-}
-
-static inline void prefetcht1(const void *p)
-{
- __asm__ volatile( "prefetcht1 (%0)\n\t"
- : : "r" (p)
- );
-}
-
-static inline void prefetcht2(const void *p)
-{
- __asm__ volatile( "prefetcht2 (%0)\n\t"
- : : "r" (p)
- );
-}
-#endif
-
/* The horizontal functions exist only in C because the MMX
* code is faster with vertical filters and transposing. */